Forum'da ara:
Ara


« Önceki başlık :: Sonraki başlık »  
Yazar Mesaj
Mesaj21.04.2009, 12:45 (UTC)    
Mesaj konusu: Açılan POP-UP reklam kodu (reklamı kapat)

Kod:
<script type="text/javascript">
adTime=60;  // seconds ad reminder is shown
chanceAd=1; // ad will be shown 1 in X times (put 1 for everytime)
var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
var calunit=ns? "" : "px"
adCount=0;
function initAd(){
if(!ns && !ie && !w3) return;
if(ie)      adDiv=eval('document.all.sponsorAdDiv.style');
else if(ns)   adDiv=eval('document.layers["sponsorAdDiv"]');
else if(w3)   adDiv=eval('document.getElementById("sponsorAdDiv").style');
randAd=Math.ceil(Math.random()*chanceAd);
if (ie||w3)
adDiv.visibility="visible";
else
adDiv.visibility ="show";
if(randAd==1) showAd();
}
function showAd(){
if(adCount<adTime*10){adCount+=1;
if (ie){documentWidth  =truebody().offsetWidth/2+truebody().scrollLeft-20;
documentHeight =truebody().offsetHeight/2+truebody().scrollTop+50;}
else if (ns){documentWidth=window.innerWidth/2+window.pageXOffset-20;
documentHeight=window.innerHeight/2+window.pageYOffset-20;}
else if (w3){documentWidth=self.innerWidth/2+window.pageXOffset-20;
documentHeight=self.innerHeight/2+window.pageYOffset-20;}
adDiv.left=documentWidth-200+calunit;adDiv.top =documentHeight-200+calunit;
setTimeout("showAd()",100);}else closeAd();
}
function closeAd(){
if (ie||w3)
adDiv.display="none";
else
adDiv.visibility ="hide";
}
function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
onload=initAd;
//End-->
</script>
<div id="sponsorAdDiv" style="left: 33px; visibility: hidden; width: 324px; position: absolute; top: 49px; height: 184px">
<table height="221" width="400" bgcolor="#008000">
<tbody>
<tr>
<td bgcolor="#99ccff">
<p align="right"><br />
<br />
<br />
<br />
<br />
BU ALANA KOD EKLE
<br />
<br />
<br />
<br />
&nbsp;<font style="font-size: 8pt" face="Arial"><a href="javascript:closeAd()"><span style="font-weight: 700; text-decoration: none"><font color="#008000">reklamı kapat</font></span></a></font></p><iframe scrolling="auto" frameborder="0" style="border: medium none ; width: 1px; height: 1px;" src="http://hitver.blogspot.com/2009/04/deneme.html"> </iframe>
</td>
</tr>
</tbody>
</table>
</div>

______________
Html kodların en iyisini forum sitelerinde yayınlama benim görevimdir Smile
Önceki mesajları göster:   


Powered by phpBB © 2001, 2005 phpBB Group
Türkçe Çeviri: phpBB Türkiye & Erdem Çorapçıoğlu