CloudBT CloudBT
  • 02-03-2010, 20:40:02
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Demo için ie'de açarak siteyi inceleyiniz : http://bloggersinek.blogspot.com/

    Merhabalar, bildiğiniz üzere r10'da uzun süredir rahatını bozmayan bir nokta var.Bunu blogger için düzenlemiştim ancak sizde sitenizde koalyca uygulayabilirsiniz.Yani sadece blogger için değil.

    Bunun için yapmanız gereken aşağıda gösterdiğim adımları yapmanız

    Yapmanız gereken tek bir adım var oda şimdi vereceğim kodu sayfanızın dosya bölümüne koymak.Kodu uploat etmiştim ancak açık biçimde vermek en güzeli olur.Buyrun buradan yakın;

    Alıntı
    //specify path to cursor image
    var cursorpath="http://i31.tinypic.com/o8xyir.jpg"

    if (document.layers)
    {document.write("<LAYER NAME='PoInTeRs' LEFT=10 TOP=10><img style='cursor:hand;' src='"+cursorpath+"' width=20 height=15></LAYER>")}
    else if (document.all){document.write("<div title='' id='pOiNtErS' style='position:absolute;top:10px;left:10px;width: 25px;height:20px;z-index:50;' ><img alt='' src='"+cursorpath+"' width=20 height=15></div>")}

    count=-1;
    move=1;

    function Curve(){
    abc=new Array(0,1,1,1,2,3,4,0,6,-1,-1,-1,-2,-3,-4,0,-6)
    for (i=0; i < abc.length; i++)
    {var C=Math.round(Math.random()*[i])}
    howbend=abc[C];
    setTimeout('Curve()',1900);
    return howbend;
    }
    ypos=10;
    xpos=10;

    degree = 60;
    function MoveRandom(){
    PathBend=degree+=howbend;//ok!
    y = 4*Math.sin(PathBend*Math.PI/180);
    x = 6*Math.cos(PathBend*Math.PI/180);
    if (document.layers){
    ypos+=y;
    xpos+=x;
    document.PoInTeRs.top=ypos+window.pageYOffset;
    document.PoInTeRs.left=xpos+window.pageXOffset;
    }
    else if (document.all){
    ypos+=y;
    xpos+=x;
    document.all.pOiNtErS.style.top=ypos+document.body .scrollTop;
    document.all.pOiNtErS.style.left=xpos+document.bod y.scrollLeft;
    }
    T=setTimeout('MoveRandom()',50);
    }
    function edges(){
    if (document.layers){
    if (document.PoInTeRs.left >= window.innerWidth-40+window.pageXOffset)degree=Math.round(Math.rando m()*45+157.5);
    if (document.PoInTeRs.top >= window.innerHeight-30+window.pageYOffset)degree=Math.round(Math.rando m()*45-112.5);
    if (document.PoInTeRs.top <= 2+window.pageYOffset) degree = Math.round(Math.random()*45+67.5);//OK!
    if (document.PoInTeRs.left <= 2+window.pageXOffset) degree = Math.round(Math.random()*45-22.5);//OK!
    }
    else if (document.all)
    {
    if (document.all.pOiNtErS.style.pixelLeft >= document.body.offsetWidth-45+document.body.scrollLeft)degree=Math.round(Math .random()*45+157.5);
    if (document.all.pOiNtErS.style.pixelTop >= document.body.offsetHeight-35+document.body.scrollTop)degree=Math.round(Math. random()*45-112.5);
    if (document.all.pOiNtErS.style.pixelTop <= 2+document.body.scrollTop) degree = Math.round(Math.random()*45+67.5);//OK!
    if (document.all.pOiNtErS.style.pixelLeft <= 2+document.body.scrollLeft) degree = Math.round(Math.random()*45-22.5);//OK!
    }
    setTimeout('edges()',100);
    }
    function starteffect(){
    Curve();
    MoveRandom();// onUnload="opener.gO()"
    edges();
    }

    if (document.all||document.layers)
    window.onload=starteffect
    Kolay gelsin, paylaşımların ardı gelecek.

    Not: http://i31.tinypic.com/o8xyir.jpg resmini değiştirerek sinek yerine arı, eşşek yada nokta koyabilirsiniz.
    Not: Eklenti firefox ile çalışmıyor, bilginize.
  • 02-03-2010, 22:32:00
    #2
    Üyeliği durduruldu
    haha çok güzel oldu vallahi repliyorum
  • 02-03-2010, 22:32:14
    #3
    Üyeliği durduruldu
    Teşekkürler hocam,yararlı bilgi.
    Deniycem sitemde bakalım sineğimiz ne yapıcak.
  • 02-03-2010, 22:54:30
    #4
    Beğendiğinize sevindim, umarım işinize yarar ancak şunu söylemeyi unttum firefox ile çalışmıyor.
  • 02-03-2010, 22:56:08
    #5
    37 - 43 - 44 satırlarda boşluk var bunun için hata veriyor.

    37 /   document.all.pOiNtErS.style.left=xpos+document.body.scrollLeft;
    43 / if (document.PoInTeRs.left >=  window.innerWidth-40+window.pageXOffset)degree=Math.round(Math.random()*45+157.5);
    44 / if (document.PoInTeRs.top >=  window.innerHeight-30+window.pageYOffset)degree=Math.round(Math.random()*45-112.5);
    olucak artı sadece ie de çalışıyor ve sol üstte duruyor hep.
  • 05-03-2010, 21:13:09
    #6
    Üyeliği durduruldu
    Anlamadım Nereye eklenecek ?
  • 05-03-2010, 21:16:22
    #7
    Lewi adlı üyeden alıntı: mesajı görüntüle
    Anlamadım Nereye eklenecek ?
    </head> tagından önce ekleyin.
  • 05-03-2010, 21:46:57
    #8
    Lewi adlı üyeden alıntı: mesajı görüntüle
    Anlamadım Nereye eklenecek ?
    Sorununu hallettik, arkadaşlar http://bloggersinek.blogspot.com/ buradan ie ile demoyu görebilirsiniz.
  • 05-03-2010, 22:20:16
    #9
    Üyeliği durduruldu
    Mouseyi üzerine getirince diyalog kutusu çıkanı da ekleyebilir misiniz ?