السلام عليكم
هذا الكود
كود PHP:
<script language=javascript>
<!--//
var url = "http://www.com";
var wwidth = "800";
var wheight = "600";
var wleft = "10";
var wtop = "5";
//sets the cookie
function setcookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) + ((expires == null) ? "" : "; expires=" +
expires.toGMTString()) + ((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) + ((secure == null) ? "" : "; secure");
}
function getcookie(name,value) {
var search = name + "="
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length
return unescape(document.cookie.substring(offset, end))
}
}
}
var name = getcookie("popupad");
var now = new Date()
now.setTime(now.getTime() + 31 * 24 * 60 * 60 * 1000)
if (!name) {
open(url,'HB',"toolbar=1,location=1,status=1,menubar=1,scrollbars=1,resizable=1, width=" + wwidth + ",height=" + wheight + ", left=" + wleft + ", top=" + wtop);
setcookie("popupad", now)
}
//-->
</script>
أريده يفتح الإعلان في الخلف
وليس في الوجه
يعني هذا كود فتحه
لما يفتح شخص الموقع
وتطلع نافذة البوب أب تطلع في الخلف
وليس كما هو الحال تطلع في الأمام وتكون فعاله
ولو في طريقة تخليه يفتح بعرض وطول الصفحة
يعني 100 %