+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    asianbridge Guest

    Default Any one has snow falling script?

    any one has snow falling script in the website and script must be work in php and html



    thanks

  2. WebmasterServe Adverts:
  3. #2
    Join Date
    Jul 2010
    Location
    On Earth
    Posts
    29
    Downloads
    0
    Uploads
    0

    Default

    Hi
    why do you need a script
    i have a snowfall gif image
    its more easier to install on websites

  4. #3
    asianbridge Guest

    Default

    but how ? script is working on whole website but image will not work as script works

  5. #4
    Join Date
    Jul 2010
    Location
    On Earth
    Posts
    29
    Downloads
    0
    Uploads
    0

    Default

    you can convert image to php file and then use it

  6. #5
    Join Date
    Jul 2010
    Location
    On Earth
    Posts
    29
    Downloads
    0
    Uploads
    0

    Default

    To make it snow on your web page you first need to select the code from the text box below (there is a highlight all button beneath it to make this easier) and copy it into a file called snow.js.

    // Snow Effect Javascript
    // ********* 19th November 2004, 20th July 2006 by Stephen Chapman
    // permission to use this Javascript on your web page is granted
    // provided that all of the code in this script (including these
    // comments) is used without any alteration
    // you can change the number of snow flakes if you like

    var num_flakes = 10;
    var snowflakes = new Array("snowflake.gif","snowflake1.gif");

    // DOM test
    var aDOM = 0, ieDOM = 0, nsDOM = 0; var stdDOM = document.getElementById;
    if (stdDOM) aDOM = 1; else {ieDOM = document.all; if (ieDOM) aDOM = 1; else {
    var nsDOM = ((navigator.appName.indexOf('Netscape') != -1)
    && (parseInt(navigator.appVersion) ==4)); if (nsDOM) aDOM = 1;}}
    function findDOM(objectId, wS) {
    if (stdDOM) return wS ? document.getElementById(objectId).style:
    document.getElementById(objectId);
    if (ieDOM) return wS ? document.all[objectId].style: document.all[objectId];
    if (nsDOM) return document.layers[objectId];
    }

    // window size tests
    function findLivePageWidth() {return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth :700;}function findLivePageHeight() {return window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body != null? document.body.clientHeight :500;}
    function posX() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset:document.documentElement.scroll Left? document.documentElement.scrollLeft:document.body. scrollLeft? document.body.scrollLeft:0;}
    function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scroll Top? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0; }

    // make it snow
    var speed = 50;var movw = new Array();var movh = new Array();var move = new Array();var stepw = new Array();var steph = new Array();var posw = new Array();var posh = new Array();var dir = new Array();var winWidth;var winHeight;
    function startSnow() {winWidth = findLivePageWidth()-75;winHeight = findLivePageHeight()-50;
    for (var i = 0; i < num_flakes; i++){move[i] = 0;movh[i] = 12+ Math.random()*2;movw[i] = 11+ Math.random()*4;posw[i] = Math.random()*(winWidth-35)+12;posh[i] = Math.random()*winHeight; stepw[i] = 0.02 + Math.random()/10;steph[i] = 0.7 + Math.random();dir[i] = (Math.random()>0.5)?1:-1;document.write('<div id="snow'+ i +'" style="position: absolute; z-index: '+ i +'; visibility:hidden; "><img src="'+snowflakes[Math.floor(Math.random()*snowflakes.length)]+ '" border="0"></div>');}setTimeout("moreSnow()", speed);}
    function moreSnow() {for (var i = 0; i < num_flakes; i++) {if (posh[i] > winHeight-50) {posw[i] = 10+ Math.random()*(winWidth-movw[i]-30);posh[i] = 0;dir[i]=(Math.random()<0.5)?1:-1;stepw[i] = 0.02 + Math.random()/9;steph[i] = 1.3 + Math.random();} move[i] += stepw[i] *dir[i]; if (Math.abs(move[i]) > 3) {dir[i]=-dir[i]; posh[i]+=Math.abs(movh[i]*move[i]);posw[i]+=movw[i]*move[i]; move[i]=0;} objstyle = findDOM('snow'+i,1); objstyle.left = (posX()+posw[i] + movw[i]*move[i])+'px'; objstyle.top = (posY()+posh[i] + movh[i]*(Math.abs(Math.cos(move[i])+move[i])))+'px';objstyle.visibility = 'visible';} setTimeout("moreSnow()", speed);}

  7. #6

    Default

    I hate this script, I immediately close websites with it. There is really no use in adding this script to any website?

  8. #7
    Join Date
    Jul 2010
    Location
    On Earth
    Posts
    29
    Downloads
    0
    Uploads
    0

    Default

    oh is that script really bad

  9. #8
    Join Date
    Jul 2010
    Location
    Pakistan
    Posts
    18
    Downloads
    0
    Uploads
    0

    Default

    dont put these sort of javascript, but if u need i have the link :)


    rainbow.arch.scriptmania.com/scripts/bg/snow_fall_1.html

+ Reply to Thread

Similar Threads

  1. Great PTC Script - Bux.to - Only $9.99
    By crymtyme in forum Buy Sell Websites
    Replies: 2
    Last Post: 06-09-2009, 05:51 PM
  2. Replies: 1
    Last Post: 12-29-2008, 12:02 PM
  3. Free Link Bid Script Red Template
    By temi in forum Webmaster Marketplace
    Replies: 0
    Last Post: 09-19-2008, 09:14 AM
  4. New free link bid script
    By temi in forum General Webmaster Discussions
    Replies: 2
    Last Post: 03-20-2008, 09:38 AM
  5. Scripts for sale!
    By freeadvts in forum Webmaster Marketplace
    Replies: 0
    Last Post: 11-08-2006, 05:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110