Activity Stream
48,167 MEMBERS
61126 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    OH GOD!!!!!
    Website's:
    HotNewHipHop.com

    Default Make it snow on your website!

    Make it snow for the holidays!

    Step 1: Save and upload to your site one of the following 3 images (depending on the effect you want), by right clicking the image, and choosing "save as":



    Step 2: Having done that, simply add the below chunk of code to the Header section of your page: (In vbulletin add this to the header to have it in all pages or add it to forumhome to have it only in the index)

    Copy and paste this code and add it to header or wherever you want:
    Code: 
    <script type="text/javascript">
    
    /******************************************
    * Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
    * Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
    * Last updated Nov 9th, 05' by DD. This notice must stay intact for use
    ******************************************/
      
      //Configure below to change URL path to the snow image
      var snowsrc="snow.gif"
      // Configure below to change number of snow to render
      var no = 10;
      // Configure whether snow should disappear after x seconds (0=never):
      var hidesnowtime = 0;
      // Configure how much snow should drop down before fading ("windowheight" or "pageheight")
      var snowdistance = "pageheight";
    
    ///////////Stop Config//////////////////////////////////
    
      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
        }
    
      var dx, xp, yp;    // coordinate and position variables
      var am, stx, sty;  // amplitude and step variables
      var i, doc_width = 800, doc_height = 600; 
      
      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();
      snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
      for (i = 0; i < no; ++ i) {  
        dx[i] = 0;                        // set coordinate variables
        xp[i] = Math.random()*(doc_width-50);  // set position variables
        yp[i] = Math.random()*doc_height;
        am[i] = Math.random()*20;         // set amplitude variables
        stx[i] = 0.02 + Math.random()/10; // set step variables
        sty[i] = 0.7 + Math.random();     // set step variables
            if (ie4up||ns6up) {
          if (i == 0) {
            document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
          } else {
            document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
          }
        }
      }
    
      function snowIE_NS6() {  // IE and NS6 main animation function
        doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
            doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")?  iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
        for (i = 0; i < no; ++ i) {  // iterate for every dot
          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";  
        }
        snowtimer=setTimeout("snowIE_NS6()", 10);
      }
    
        function hidesnow(){
            if (window.snowtimer) clearTimeout(snowtimer)
            for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
        }
            
    
    if (ie4up||ns6up){
        snowIE_NS6();
            if (hidesnowtime>0)
            setTimeout("hidesnow()", hidesnowtime*1000)
            }
    
    </script>
    IMPORTANT!
    Make sure that the "snowsrc" variable in the above code correctly references the full URL path to the image used. Enjoy!

    for example right now is: var snowsrc="snow.gif"

    you may change that to:
    var snowsrc="yoursite.com/images/snow.gif" or where ever you placed the image.
    Remember to rename the snow images to snow.gif if you plan to use any other image, or simply point the path to that image!


    Source: DynamicDrive

    DEMO
    bxflow Reviewed by bxflow on . Make it snow on your website! Make it snow for the holidays! Step 1: Save and upload to your site one of the following 3 images (depending on the effect you want), by right clicking the image, and choosing "save as": http://www.dynamicdrive.com/dynamicindex3/snow.gif http://www.dynamicdrive.com/dynamicindex3/snow2.gif http://www.dynamicdrive.com/dynamicindex3/snow3.gif Step 2: Having done that, simply add the below chunk of code to the Header section of your page: (In vbulletin add this to the Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Thanx for the share...BX..

  4.     
    #3
    Member

    Default This is cool

    I might put this on for my website, but some people its SLOW for them.

  5.     
    #4
    Member
    Such effects are the second most annoying thing on websites ( right behind music background and flash ads with sound ) - don't use it on your sites if you like your visitors.
    .

  6.     
    #5
    Banned
    Website's:
    GFXFire.com Max-Share.org WarezShares.com
    Cool effect, saved it for the future but one thing is for sure, I wouldn't use it on my site cause like Ivan said, it's annoying.

  7.     
    #6
    Member
    Website's:
    MyRapidleech.Net
    Works With phpBB ?

    Please let me know will add to my site
    Respected: Mr-R-T, Belle, eLight, iPowerz, Vizoomer, Cory, Rohit, AllSolo

    MyRapidleech.net - Windows Encoding RDP,500GB HDD,Unmetered Bandwidth at $30/mo (DE)

  8.     
    #7
    mmm mmm!
    Nice effects, thanks for sharing m8.
    HATERS GONNA probably bring up some valid points considering I am an ignorant little twat so far up my own ass that i blame my problems on everyone and if you criticize me you're automatically wrong.

  9.     
    #8
    Member
    Website's:
    StoneArcade.com
    i was actually just getting this from another source as well lol.. good share though man

  10.     
    #9
    Member
    nice share

  11.     
    #10
    Banned
    Website's:
    google.com knownsrv.com
    thanks dude

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Let it snow on every site
    By agroni112 in forum General Discussion
    Replies: 4
    Last Post: 26th Dec 2011, 01:54 PM
  2. X'mas special | Stunning Snow Sculptures !!
    By XxX in forum General Discussion
    Replies: 4
    Last Post: 21st Dec 2010, 08:51 PM
  3. Good Snow Effect
    By Jesse in forum Tutorials and Guides
    Replies: 3
    Last Post: 16th Jan 2010, 03:55 PM
  4. How to Add snow on your logos with Photoshop
    By Flash in forum Tutorials and Guides
    Replies: 17
    Last Post: 11th Jan 2010, 05:21 AM
  5. Christmas Snow Effect
    By Mr Happy in forum Webmaster Resources
    Replies: 1
    Last Post: 11th Dec 2009, 12:24 AM

Tags for this Thread

BE SOCIAL