ForumAlemi adlı üyeden alıntı: mesajı görüntüle
selamlar,
smf de sağda kayan banner alanı nasıl oluşturabilirim, forumda aradım ama smf için düzgün bir sonuca ulaşamadım
şimdiden teşekkürler
smf de kodu nereye atacağını bilmiyorum ama sağda kaydırma kodu bu


gerekli yerleri kendine göre uyarlarsın

demo: http://site.mynet.com/eldoradoo/sagda_kayan_reklam.htm


<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="<a target=_blank href='http://www.byforum.org'><img border='0' src='http://www.byforum.org/demo/onarcade/templates/hphptube/images/sagreklam.gif'></a>"
el_width=0
el_height=6
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;top:'+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>