الوصف: طريقة مختلفة للإعلان وليست مزعجة
... والإعلان يسقط من فوق الى منتصف الصفحة وبإمكان الزائر الضغط على اغلاق النافذة
ليختفي الإعلان.
طريقة التركيب: ضع
الكود بين علامتي الـ
<body> و </body>
الكود:
<script language="JavaScript1.2">
var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var bouncelimit=32 //(must be divisible by 8)
var direction="up"
function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
crossobj.top=scroll_top-250
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",50)
}
function dropin(){
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+40
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}
function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}
function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}
window.onload=initbox
</script></head>
<body>
<div id="dropin" style="position:absolute;visibility:hidden;left:260;top:100;width:385;height:118;background-color:#F5F5F5">
<div align="right"><a href="#" onClick="dismissbox();return false">[اقفل
النافذة] </a>
<b><span lang="ar-sa"><font face="Tahoma" size="2">إعــــــلان</font></span></b></div>
<center>
<p><a href="http://soft.vip600.com/modules.php?name=Downloads&d_op=viewdownload&cid=65" target="_blank">
<img title="برامج جوالات نوكيا 6600 و7610" alt="برامج جوالات نوكيا 6600 و7610" src="http://www.vip600.com/adv/vip600-mob.gif" border="0" width="468" height="60"></a></p>
</center>
</div>
ليست هناك تعليقات:
إرسال تعليق