Yorum yapmadan kodu ve resmi vereyim.
Görünüm : www.zekirdek.com
Kod:
<head>
<SCRIPT language=JavaScript>
// <!--
function MM_jumpMenu(selObj,restore){
eval("location.href='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function MM_reloadPage(init) {
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
element="<img src='http://img72.yukle.tc/images/6018ata.jpg'>"
el_width=0
el_height=0
ns4=document.layers
ie4=document.all
ns6=document.getElementById&&!document.all
if (ns4){document.write('<layer name="element" top='+el_height+' right='+el_width+'>'+element+'</layer>')}
else{document.write('<div id="element" style="position:absolute;bottom:'+el_height+';right:'+el_width+'">'+element+'</div>')}
el_width_start=el_height_start=0
function el_move(){
if(ie4){ydiff=el_height_start-document.body.scrollTop; xdiff=el_width_start-document.body.scrollLeft}
else{ydiff=el_height_start-pageYOffset; xdiff=el_width_start-pageXOffset}
if(ydiff!=0){movey=Math.round(ydiff/10);el_height_start-=movey}
if(xdiff!=0){movex=Math.round(xdiff/10);el_width_start-=movex}
if(ns4){document.layers.element.top=el_height_start+el_height;document.layers.element.right=el_width_start+el_width}
if(ie4){document.all.element.style.top=el_height_start+el_height;document.all.element.style.right=el_width_start+el_width}
if(ns6){document.getElementById("element").style.top=el_height_start+el_height;document.getElementById("element").style.right=el_width_start+el_width}}
elmove=setInterval("el_move()",15)
//-->
</SCRIPT>
</head>