السلام عليكم ورحمة الله
رغم أن هذا ليس مكان السؤال ولكن بما أنك جيت هنا لا يمكن نردك
هذا للبوب اب الأوتوماتيكي :
ضع هذا الكود في منظقة الرأس أو <head>
كود:
<script>
/*
Popup Window Script
By Website Abstraction (http://wsabstract.com)
Over 200+ free scripts here
*/
var onoff="on"
function openpopup(){
var popurl="http://wsabstract.com/popwin/thankyou.htm"
winpops=window.open(popurl,"","width=400,height=338,resizable,")
}
function get_cookie(Name) {
//this function is used only if you had selected popup to load ONCE per session
//You may remove this function if variable "onoff" above is set to "off"
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function loadpopup(){
if (onoff=="on"){
if (get_cookie('alreadypopped')==''){
openpopup()
document.cookie="alreadypopped=yes"
}
}
else
openpopup()
}
loadpopup()
</script>
وبالنسبة للشاشات الصغيرة
ضع هذا الكود في منظقة الرأس أو <head>
كود:
<sCRIPT LANGUAGE = "JavaScript"> <!--
function SmallWindow1(wintype) {
SmallWin=window.open(wintype,"SmallWin","toolbar=no,directories=no,status=no,scrollbars=yes,menubar=no,width=200,height=160"); SmallWin.window.focus() }
// -->
</SCRIPT>
ثم ضع هذا في منطقة المحتوى أو <body>
كود:
<A HREF="JavaScript:SmallWindow1('http://www.yoursite.com')">
مع تغيير العنوان طبعا لعنوانك وإذا كانت صفحة داخل الموقع فقم بكتابة إسم الصفحة مع نوعها فقط مثل music.html
أخوك جنتل