WEB DESIGN BÖLÜMÜ > Php-Html Kodlar

Sayfa altina sabit reklam kodlari

(1/1)

admin:
Sayfanizin altina sabit reklam veya yazi yazmak istiyorsaniz asagidaki kodlarin icerisinde yazi bolumunun bulundugu yeri silip istediginizi yazip sayfanizin kodlarina eklerseniz sayfa altinda sabit reklamlariniz gorunecektir

--- Kod: ---<style type="text/css">
#hackerfriendinfobar{
position: fixed;
left: 0;
width: 100%;
text-indent: 5px;
padding: 50px 0;
background-color:#B20000 ;
border-bottom: 1px solid black;
font: bold 12px Verdana;
}
* html #hackerfriendinfobar{ /*IE6 hack*/
position: absolute;
width: expression(document.compatMode=="CSS1Compat"? document.documentElement.clientWidth+"px" : body.clientWidth+"px");
}
</style> <script type="text/javascript">
function hackerfriendinfobar(){
this.displayfreq="always"
this.content=''
}
hackerfriendinfobar.prototype.setContent=function(data){
this.content=this.content+data
document.write('<div id="hackerfriendinfobar" style="bottom: -500px">'+this.content+'</div>')
}
hackerfriendinfobar.prototype.animatetoview=function(){
var barinstance=this
if (parseInt(this.barref.style.bottom)<0){
this.barref.style.bottom=parseInt(this.barref.style.bottom)+5+"px"
setTimeout(function(){barinstance.animatetoview()}, 50)
}
else{
if (document.all && !window.XMLHttpRequest)
this.barref.style.setExpression("bottom", 'document.compatMode=="CSS1Compat"? document.documentElement.scrollbottom+"px" : body.scrollbottom+"px"')
else
this.barref.style.bottom=0
}
}
hackerfriendinfobar.close=function(){
document.getElementById("hackerfriendinfobar").style.display="none"
if (this.displayfreq=="session")
document.cookie="infobarshown=1;path=/"
}
hackerfriendinfobar.prototype.setfrequency=function(type){
this.displayfreq=type
}
hackerfriendinfobar.prototype.initialize=function(){
if (this.displayfreq=="session" && document.cookie.indexOf("infobarshown")==-1 || this.displayfreq=="always"){
this.barref=document.getElementById("hackerfriendinfobar")
this.barheight=parseInt(this.barref.offsetHeight)
this.barref.style.bottom=this.barheight*(-1)+"px"
this.animatetoview()
}
}
window.onunload=function(){
this.barref=null
}
</script> <script type="text/javascript">
<!--Invocation code-->
var infobar=new hackerfriendinfobar()
infobar.setContent('<div align="center">BURAYA ISTEDIGINIZ REKLAM KODUNU VEYA YAZIYI YAZINIZ</div>')
//infobar.setfrequency('session') //
infobar.initialize()
</script>


--- Kod sonu ---

Navigasyon

[0] Mesajlar

Yukari git
Asagi git
Tam sürüme git
Seo4Smf 2.0 © SmfMod.Com | Smf Destek