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.

Snow

+6
The End
Anita
Cornelia
Rahish
xaphania
Borislav
10 posters

Go down

Snow Empty Snow

Post by Borislav December 5th 2006, 6:19 pm

How can i have snow for my forum?
Borislav
Borislav
New Member

Male Posts : 16
Reputation : 0
Language : bulgarian

http://www.9dclass.phpbb9.com

Back to top Go down

Snow Empty Re: Snow

Post by xaphania December 5th 2006, 6:28 pm

I know this, because I tried it just yesterday for a site Smile

The first code gives small snow and the second gives larger snowflakes. Add them in a block on the portal or the header on your index page.

Code:

<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>

Code:

<marquee style="position: absolute; left: 120px; top: 50px; width: 25px; height: 450px;" scrollamount="3" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 170px; top: 70px; width: 25px; height: 300px;" scrollamount="4" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 220px; top: 90px; width: 25px; height: 250px;" scrollamount="5" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 270px; top: 30px; width: 25px; height: 370px;" scrollamount="6" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 320px; top: 30px; width: 25px; height: 340px;" scrollamount="7" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 240px; top: 30px; width: 25px; height: 70px;" scrollamount="2" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 250px; top: 30px; width: 25px; height: 50px;" scrollamount="3" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 290px; top: 30px; width: 25px; height: 60px;" scrollamount="2" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 100px; top: 130px; width: 25px; height: 80px;" scrollamount="3" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 360px; top: 30px; width: 25px; height: 330px;" scrollamount="2" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 390px; top: 50px; width: 25px; height: 400px;" scrollamount="3" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 440px; top: 70px; width: 25px; height: 300px;" scrollamount="4" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 470px; top: 100px; width: 25px; height: 300px;" scrollamount="2" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 560px; top: 70px; width: 25px; height: 300px;" scrollamount="4" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 590px; top: 100px; width: 25px; height: 300px;" scrollamount="2" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 520px; top: 170px; width: 25px; height: 300px;" scrollamount="4" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 610px; top: 200px; width: 25px; height: 300px;" scrollamount="2" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee> <marquee style="position: absolute; left: 650px; top: 250px; width: 25px; height: 340px;" scrollamount="3" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee><marquee style="position: absolute; left: 690px; top: 290px; width: 25px; height: 380px;" scrollamount="2" direction="down" behavior="scroll"><marquee style="position: absolute; left: 660px; top: 40px; width: 25px; height: 70px;" scrollamount="3" direction="down" behavior="scroll"><img src="http://profilecodeskit.com/images/snow.gif" /></marquee><a href="http://profilecodeskit.com/graphics/snow/"><br /></a></marquee>

I found this codes simply by doing a google search.

I hope this has helped!
xaphania
xaphania
Forumember

Female Posts : 371
Reputation : 20
Language : English, French
Location : England

http://hogwarts-experience.heavenforum.com

Back to top Go down

Snow Empty Re: Snow

Post by Rahish December 5th 2006, 7:05 pm

Where dio you add it to make it appear in the forum index.
Rahish
Rahish
Forumember

Male Posts : 46
Reputation : 0
Language : English
Location : Bolton

http://online.zikforum.com/

Back to top Go down

Snow Empty Re: Snow

Post by Borislav December 5th 2006, 7:21 pm

Could you find some more HTML scripts , because these are not very good ?
Borislav
Borislav
New Member

Male Posts : 16
Reputation : 0
Language : bulgarian

http://www.9dclass.phpbb9.com

Back to top Go down

Snow Empty Re: Snow

Post by xaphania December 5th 2006, 7:24 pm

Well you could just do what I did, google them. They're the best ones I found though...the big snowflakes came up a lot in the sites I went to.
xaphania
xaphania
Forumember

Female Posts : 371
Reputation : 20
Language : English, French
Location : England

http://hogwarts-experience.heavenforum.com

Back to top Go down

Snow Empty Re: Snow

Post by Cornelia December 6th 2006, 4:42 am

Hello.

If you want a rain of snowflakes or other pics, you can use the Script generator here : https://help.forumotion.com/viewtopic.forum?t=317

and choose "Image rain", and then you click on the Help button and go to the gallery to choose a picture. If you don't find a snowflake whicfh fits to what you want, you can look for transparent gif snowflakes on google.
Cornelia
Cornelia
Hyperactive

Female Posts : 4763
Reputation : 173
Language : I'M NOT A TECHIE OR A MOD, SO QUIT SENDING ME PMS FOR TECHIE STUFF OR LOST PASSWORDS !!!
Location : Absent on weekends until camping season ends

http://ishimaru-design.servhome.org

Back to top Go down

Snow Empty Re: Snow

Post by Anita December 15th 2006, 11:31 pm

Rahish wrote:Where dio you add it to make it appear in the forum index.

I see the snowcode is working on your forum, where did you add the code?
avatar
Anita
Forumember

Female Posts : 27
Reputation : 3
Language : Dutch
Location : The Netherlands

http://www.dutchmychemicalromanceforum.tk

Back to top Go down

Snow Empty Re: Snow

Post by The End November 28th 2008, 9:51 pm

this work

<MARQUEE style="Z-INDEX: 1; LEFT: 127px; WIDTH: 16px; POSITION: absolute; TOP: 150px; HEIGHT: 512px" scrollAmount=1 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 165px; WIDTH: 16px; POSITION: absolute; TOP: 170px; HEIGHT: 382px" scrollAmount=7 direction=down><SPAN class=falling2>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 212px; WIDTH: 16px; POSITION: absolute; TOP: 190px; HEIGHT: 346px" scrollAmount=4 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 263px; WIDTH: 16px; POSITION: absolute; TOP: 180px; HEIGHT: 528px" scrollAmount=3 direction=down><SPAN class=falling2>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 325px; WIDTH: 16px; POSITION: absolute; TOP: 160px; HEIGHT: 450px" scrollAmount=5 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 235px; WIDTH: 16px; POSITION: absolute; TOP: 190px; HEIGHT: 277px" scrollAmount=7 direction=down><SPAN class=falling2>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 140px; WIDTH: 16px; POSITION: absolute; TOP: 150px; HEIGHT: 246px" scrollAmount=7 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 287px; WIDTH: 16px; POSITION: absolute; TOP: 170px; HEIGHT: 274px" scrollAmount=5 direction=down><SPAN class=falling2>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 111px; WIDTH: 16px; POSITION: absolute; TOP: 230px; HEIGHT: 235px" scrollAmount=3 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 358px; WIDTH: 16px; POSITION: absolute; TOP: 190px; HEIGHT: 439px" scrollAmount=3 direction=down><SPAN class=falling2>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 390px; WIDTH: 16px; POSITION: absolute; TOP: 150px; HEIGHT: 527px" scrollAmount=3 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 437px; WIDTH: 16px; POSITION: absolute; TOP: 170px; HEIGHT: 447px" direction=down><SPAN class=falling2>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 477px; WIDTH: 16px; POSITION: absolute; TOP: 200px; HEIGHT: 384px" scrollAmount=7 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 552px; WIDTH: 16px; POSITION: absolute; TOP: 170px; HEIGHT: 494px" direction=down><SPAN class=falling2>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 595px; WIDTH: 16px; POSITION: absolute; TOP: 200px; HEIGHT: 446px" scrollAmount=4 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 535px; WIDTH: 16px; POSITION: absolute; TOP: 170px; HEIGHT: 393px" scrollAmount=4 direction=down><SPAN class=falling2>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 612px; WIDTH: 16px; POSITION: absolute; TOP: 200px; HEIGHT: 336px" scrollAmount=2 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 646px; WIDTH: 16px; POSITION: absolute; TOP: 250px; HEIGHT: 384px" direction=down><SPAN class=falling2>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 694px; WIDTH: 16px; POSITION: absolute; TOP: 290px; HEIGHT: 521px" scrollAmount=4 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 650px; WIDTH: 16px; POSITION: absolute; TOP: 180px; HEIGHT: 201px" direction=down><SPAN class=falling2>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 688px; WIDTH: 16px; POSITION: absolute; TOP: 160px; HEIGHT: 252px" scrollAmount=5 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 725px; WIDTH: 16px; POSITION: absolute; TOP: 200px; HEIGHT: 441px" scrollAmount=3 direction=down><SPAN class=falling2>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 752px; WIDTH: 16px; POSITION: absolute; TOP: 150px; HEIGHT: 528px" scrollAmount=2 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 900px; WIDTH: 16px; POSITION: absolute; TOP: 150px; HEIGHT: 528px" scrollAmount=2 direction=down><SPAN class=falling1>.</SPAN></MARQUEE>
<MARQUEE style="Z-INDEX: 1; LEFT: 798px; WIDTH: 16px; POSITION: absolute; TOP: 180px; HEIGHT: 438px" scrollAmount=3 direction=down><SPAN class=falling2>.</SPAN></MARQUEE><A style="DISPLAY: block" href="http://mypsacehotline.com"></A>
The End
The End
Forumember

Posts : 61
Reputation : 1
Language : Shqip

http://www.kosova-forum.tk

Back to top Go down

Snow Empty Re: Snow

Post by Junior-B November 29th 2008, 11:39 am

This is a good code :

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>
Junior-B
Junior-B
Forumember

Male Posts : 215
Reputation : 10
Language : Greek, English, German

Back to top Go down

Snow Empty Re: Snow

Post by ken November 30th 2008, 10:31 pm

Rahish wrote:Where dio you add it to make it appear in the forum index.

i used one of these codes with slight mod added a xmas tune(let it snow) and put it in a widget, set permissions to guests only, so it all stops once you log in as it can be a little annoying.

looks and sounds great Very Happy
avatar
ken
Forumember

Posts : 135
Reputation : 0
Language : english

Back to top Go down

Snow Empty Re: Snow

Post by nikki_kev December 10th 2008, 6:50 pm

I have put snow on my forum - it there any way of makng it bigger as the flakes are tiny?

x
nikki_kev
nikki_kev
Forumember

Female Posts : 75
Reputation : 0
Language : English
Location : Buckinghamshire

http://www.thenannydog.com

Back to top Go down

Snow Empty Re: Snow

Post by durogista December 17th 2008, 6:53 am

This is a good code :

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("
} 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>

how can i make it smaller?
avatar
durogista
Forumember

Male Posts : 29
Reputation : 0
Language : English, Tagalog
Location : Banga Aklan,( near Boracay)

http://acacians.forumotion.com

Back to top Go down

Back to top

- Similar topics

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