<style type="text/css"> #hackerfriendinfobar{ position: fixed; left: 0; width: 100%; text-indent: 5px; padding: 5px 0; background-color: red; 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='<a href="javascript:hackerfriendinfobar.close()"><img src="https://img.webme.com/pic/h/hackerfriend/close.gif" style="width: 16px; height: 16px; float: right; border: 0; margin-right: 25px" /></a>' } 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">www.dogan.ile.biz Alttan Cıkan İnfo Bar .</div>') //infobar.setfrequency('session') //Bu kodu www.hackerfriend.net adresinden indirdiniz! infobar.initialize() </script>
Web Tasarım