Layouts, Patterns and Tutorials
Wednesday, 2009-11-25, 5:37 Am
Welcome Guest | RSS
Main | Registration | Login
PotatoKorner™
Site menu
Login form
E-mail:
Password:
Link Us Back
 





 











  












Site friends











tsakunakune:| The web is a playground.

  • Create your own site
  • Our poll
    Rate my site
    1. Excellent
    2. Good
    3. Not bad
    Total of answers: 284

    Statistics


    [ New messages · Members · Forum rules · Search · RSS ]
    Page 1 of 11
    Layouts, Patterns and Tutorials » MISCELLANEOUS - Friendster » Tips And Tricks » Falling Image Script - Modified (do not repost without permission nor dare to rip)
    Falling Image Script - Modified
    switpotatoDate: Monday, 2009-02-09, 3:45 Am | Message # 1
    Admin
    Group: Admin
    Messages: 690
    Status: Online
    just edit the image link

    Available for users only

    Code


    /*******************************************************
    * JSnow v0.2 by Altan d.o.o. (http://www.altan.hr/snow/index.html)
    * This JavaScript code can be freely redistributed as long as this
    * copyright notice is keept unchanged. This code is used on AS-IS
    * basis and you use it on your own risk. Author of this code is not
    * responsible for any damage that this code may make.
    * modified by : Angell de Ville
    ********************************************************/
    var imgTotal = 10;
    var ie4up = (document.all) ? 1 : 0;
    var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
    function iecompattest(){
    return (document.compatMode && document.compatMode!="BackCompat")?document.documentElement:document.body
    }
    if(ns6up){
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
    }
    else if(ie4up){
    doc_width = iecompattest().clientWidth;
    doc_height = iecompattest().clientHeight;
    }
    dx = new Array();
    xp = new Array();
    yp = new Array();
    am = new Array();
    stx = new Array();
    sty = new Array();
    for(i=0;i<imgTotal;++i){
    dx[i] = 0;
    xp[i] = Math.random()*(doc_width-50);
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;
    stx[i] = 0.02 + Math.random()/10;
    sty[i] = 0.7 + Math.random();
    document.getElementById("navigation").style.cssText = "z-index:1 !important";
    var div = document.createElement("div");
    div.id = "dot"+i;
    div.style.cssText = "position:absolute;top:-100;left:0;visibility:visible;z-index:"+i;
    div.innerHTML = "<img src='http://i44.tinypic.com/25kubz7.gif' border='0'>";
    document.body.appendChild(div);
    }
    function snowIE_NS6(){
    doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
    doc_height = (ie4up && !window.opera)?iecompattest().scrollHeight : iecompattest().offsetHeight;
    for(i=0;i<10;++i){
    yp[i] += sty[i];
    if(yp[i]>doc_height-50){
    xp[i] = Math.random()*(doc_width-am[i]-30);
    yp[i] = 0;
    stx[i] = 0.02 + Math.random()/10;
    sty[i] = 0.7 + Math.random();
    }
    dx[i] += stx[i];
    document.getElementById("dot"+i).style.top = yp[i]+"px";
    document.getElementById("dot"+i).style.left = xp[i]+am[i]*Math.sin(dx[i])+"px";
    }
    setTimeout("snowIE_NS6()",10);
    }
    if(ie4up||ns6up){
    snowIE_NS6();
    }

    Preview


    If U Have Any Query
    not related to LINKER issue..
    Please Use Forum Board
    Dont PM Me

     
    ™†_dAniLo-23_†™Date: Thursday, 2009-10-22, 7:14 Am | Message # 2
    Sergeant
    Group: Friends
    Messages: 24
    Status: Offline
    nice 0ne..,

    a big cLap f0r here..,

    tnx ate swit..,

    bUt the imAge m0ves sl0wly..,

    aUn..,

    i Like Ur pr0fiLe..,

    simpLe bUt eLEgant..,


    < [ ™†_dAnNiLyn-08_†™ ] >
     
    Layouts, Patterns and Tutorials » MISCELLANEOUS - Friendster » Tips And Tricks » Falling Image Script - Modified (do not repost without permission nor dare to rip)
    Page 1 of 11
    Search:

    Copyright MyCorp © 2009
    Site managed by uCoz system