• 18-03-2009, 13:03:41
    #1
    Üyeliği durduruldu
    arkadaslar sayfanın sağına sabir reklam uygulaması veriyorum fixed uygulaması ile ama ie 6.0 da sorun yaşiyorum olayı değişik bir şekilde yapma yöntemi varmı acaba sorun yaşamadn?
  • 18-03-2009, 13:21:13
    #2
    Bu kodu dene birde

    Alıntı
    <script language=javascript>
    element='<a target=_blank href=http://www.SITEADRESI.com><img border=0 src=RESIMADRESI.jpg width=160></a>';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+' left='+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_hei ght; document.layers.element.right=el_width_start+el_wi dth; }
    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_he ight_start+el_height; document.getElementById("element").style.right=el_ width_start+el_width; }
    }
    elmove=setInterval('el_move()',14);
    </script>
  • 18-03-2009, 13:26:47
    #3
    Üyeliği durduruldu
    malesef sayfada reklam resmi bile gözükmedi...
  • 18-03-2009, 13:30:57
    #4
    Birde bu var. Umarım işe yarar.

    <style type="text/css">
    
    #topbar{
    position:absolute;
    border: 0px solid black;
    padding: 0px;
    background-color: white;
    width: 111px;
    visibility: hidden;
    z-index: 0;
    }
    
    </style>
    
    <script type="text/javascript">
    var persistclose=1 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
    var startX = 10 //set x offset of bar in pixels
    var startY = 5 //set y offset of bar in pixels
    var verticalpos="fromtop" //enter "fromtop" or "frombottom"
    
    function iecompattest(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }
    
    function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = "";
    if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) {
    offset += search.length
    end = document.cookie.indexOf(";", offset);
    if (end == -1) end = document.cookie.length;
    returnvalue=unescape(document.cookie.substring(offset, end))
    }
    }
    return returnvalue;
    }
    
    function closebar(){
    if (persistclose)
    document.cookie="remainclosed=1"
    document.getElementById("topbar").style.visibility="hidden"
    }
    
    function staticbar(){
    barheight=document.getElementById("topbar").offsetHeight
    var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
    var d = document;
    function ml(id){
    var el=d.getElementById(id);
    if (!persistclose || persistclose && get_cookie("remainclosed")=="")
    el.style.visibility="visible"
    if(d.layers)el.style=el;
    el.sP=function(x,y){this.style.right=x+"px";this.style.top=y+"px";};
    el.x = startX;
    if (verticalpos=="fromtop")
    el.y = startY;
    else{
    el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
    el.y -= startY;
    }
    return el;
    }
    window.stayTopright=function(){
    if (verticalpos=="fromtop"){
    var pY = ns ? pageYOffset : iecompattest().scrollTop;
    ftlObj.y += (pY + startY - ftlObj.y)/8;
    }
    else{
    var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
    ftlObj.y += (pY - startY - ftlObj.y)/8;
    }
    ftlObj.sP(ftlObj.x, ftlObj.y);
    setTimeout("stayTopright()", 0);
    }
    ftlObj = ml("topbar");
    stayTopright();
    }
    
    if (window.addEventListener)
    window.addEventListener("load", staticbar, false)
    else if (window.attachEvent)
    window.attachEvent("onload", staticbar)
    else if (document.getElementById)
    window.onload=staticbar
    </script>
    
    
    <div id="topbar">
    Reklam kodunuzu buraya ekleyin
    </div>
  • 18-03-2009, 14:01:47
    #5
    Üyeliği durduruldu
    tmamdır usta sagol halldetım o kodlar işe yaradı