The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

falling snow

+2
skullorz
metalslugx
6 posters

Go down

falling snow Empty falling snow

Post by metalslugx December 14th 2008, 6:09 am

hi guys do you think we can put falling snow at forumotion??cause i see other forum's working but i don't know exactly where to put all the codes and stuff... Neutral
metalslugx
metalslugx
Forumember

Female Posts : 47
Reputation : 0
Language : english

http://mcrasiaforum.forumotion.com

Back to top Go down

falling snow Empty Re: falling snow

Post by skullorz December 14th 2008, 6:27 am

<script src=http://s2.wordpress.com/wp-content/plugins/snow/snowstorm.js type=text/javascript></script>


See that?
Go into General, then go into Configuration.
Next, if you see Site Description, put the code up there into it.

I made my explanation better.


Last edited by skullorz on December 14th 2008, 6:28 am; edited 1 time in total (Reason for editing : Fixed HTML)
avatar
skullorz
New Member

Posts : 3
Reputation : 0
Language : English

Back to top Go down

falling snow Empty Re: falling snow

Post by metalslugx December 14th 2008, 6:34 am

and then??erm oh wow...it's snowing hahaha
metalslugx
metalslugx
Forumember

Female Posts : 47
Reputation : 0
Language : english

http://mcrasiaforum.forumotion.com

Back to top Go down

falling snow Empty Re: falling snow

Post by CharleX December 14th 2008, 6:40 am

Administrator Panel--> Display--> Homepage--> Generalities--> Homepage Message--> Message Content--> Insert the following code:
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
    ******************************************/
    //Here you can add your own picture for snow. Just change the url
    var snowsrc="http://i71.servimg.com/u/f71/12/41/10/67/snow10.gif"
    //how many snowflakes there will be (currently 10)
    var no = 10;
    //How fast will the snow disappear (0 is never)
    var hidesnowtime = 0;
    //The height the snow will reach before it disappears ("windowheight" or "pageheight")
    var snowdistance = "windowheight";
    ///////////////////////////////End of Settings///////////////////////////////////
    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;
    var am, stx, sty;
    var i, doc_width = 800, doc_height = 600;
 
    if (ns6up)
    {
      doc_width = self.innerWidth;
      doc_height = self.innerHeight;
    }
    else
    if (ie4up)
    {
      doc_width = document.body.clientWidth;
      doc_height = document.body.clientHeight;
    }

    dx = new Array();
    xp = new Array();
    yp = new Array();
    am = new Array();
    stx = new Array();
    sty = new Array();

    for (i = 0; i < no; ++ 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();
      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()
    {
      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)
      {
          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>

Forgive me if this doesn't work. Crying or Very sad
CharleX
CharleX
Forumember

Male Posts : 492
Reputation : 0
Language : English and Korean
Location : On The Comp

Back to top Go down

falling snow Empty Re: falling snow

Post by metalslugx December 14th 2008, 6:55 am

it works tq. just that the snow never reach the bottom
metalslugx
metalslugx
Forumember

Female Posts : 47
Reputation : 0
Language : english

http://mcrasiaforum.forumotion.com

Back to top Go down

falling snow Empty Re: falling snow

Post by astrodene December 14th 2008, 11:28 am

If you want the snow to continue falling when you scroll change
Code:
var snowdistance = "windowheight";

to
Code:
var snowdistance = "pageheight";
astrodene
astrodene
Forumember

Male Posts : 181
Reputation : 0
Language : English
Location : Third Star on the Left and on til Morning!

http://historicnavalfiction.net

Back to top Go down

falling snow Empty Re: falling snow

Post by Mr.Killerguitar December 14th 2008, 1:15 pm

This really fits in?

Because I had the problem that the message was too long last time I updated the one on one of my forums and it was just a few sentences...

This code is even longer
Mr.Killerguitar
Mr.Killerguitar
Forumember

Male Posts : 388
Reputation : 6
Language : German, English, some indo-european stuff
Location : Land der Dichter und Denker, Germany

http://steal-this-site.forumieren.de/

Back to top Go down

falling snow Empty Re: falling snow

Post by kirk December 15th 2008, 3:20 am

here's 2 codes in one. one is for small snow that falls at the top. then the other is for larger snowflakes that fall through the whole forum.. several at a time. not too many and not too less.but both together work well.

the whole code fits fine. i have it on our forum along with a video game and text
and all of it works fine..

hope that helps.

Code:
<script type="text/javascript">

/******************************************
* Εφέ χιονιού για τα φόρουμ σας.
* Ευχαριστούμε τον dj laz που φιλοξενεί την φωτογραφία χιονιού στην ιστοσελίδα του (www.djlaz.com.gr)
* Jorfan:
Μόνο εγγεγραμμένοι χρήστες μπορούν να διαβάσουν τις υπογραφές σε αυτό το forum!
Γραφτείτε ή Συνδεθείτε στο φόρουμ!

| Website: http://staff.forumup.gr
* Original script By Altan d.o.o. (http://www.altan.hr/snow/index.html)
******************************************/
 
  //Άν θέλετε δική σας φωτογραφία για τις νιφάδες χιονιού αλλάξτε την διεύθυνση της φωτογραφίας
  var snowsrc="http://www.djlaz.com.gr/images/snow.gif"
  // Αριθμός νιφάδων χιονιού
  var no = 10;
  // Ρύθμιση μετά απο x δευτερόλεπτα (0=ποτέ):
  var hidesnowtime = 0;
  // Ρυθμίστε πόσο χιόνι θα πέσει πρίν να εξαφανιστεί ("windowheight" or "pageheight")
  var snowdistance = "pageheight";

///////////Τέλος ρυθμίσεων//////////////////////////////////

  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("staff.forumup.gr")!=-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>

<div id="snow" style="font-family: comic sans ms,arial,times new roman; color: rgb(204, 204, 204); font-weight: bold; font-style: normal; background-color: transparent; z-index: 2;"><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 120px; top: 50px; width: 8px; height: 850px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 170px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="5" style="position: absolute; left: 220px; top: 90px; width: 8px; height: 650px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="6" style="position: absolute; left: 270px; top: 30px; width: 8px; height: 770px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="7" style="position: absolute; left: 320px; top: 30px; width: 8px; height: 740px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 240px; top: 30px; width: 8px; height: 470px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 140px; top: 30px; width: 8px; height: 500px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 290px; top: 30px; width: 8px; height: 460px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 100px; top: 130px; width: 8px; height: 480px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 360px; top: 30px; width: 8px; height: 730px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 390px; top: 50px; width: 8px; height: 800px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 440px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 470px; top: 100px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 560px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 590px; top: 100px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 520px; top: 170px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 610px; top: 200px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 650px; top: 250px; width: 8px; height: 740px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 690px; top: 290px; width: 8px; height: 780px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 660px; top: 40px; width: 8px; height: 470px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 690px; top: 60px; width: 8px; height: 490px;"><b>°</b></marquee></div>
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum