Snow
+6
The End
Anita
Cornelia
Rahish
xaphania
Borislav
10 posters
Page 1 of 1
Re: Snow
I know this, because I tried it just yesterday for a site
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.
I found this codes simply by doing a google search.
I hope this has helped!
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!
Re: Snow
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.
Re: Snow
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.
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.
Re: Snow
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?
Re: Snow
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>
<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>
Re: Snow
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- Forumember
- Posts : 215
Reputation : 10
Language : Greek, English, German
Re: Snow
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
ken- Forumember
- Posts : 135
Reputation : 0
Language : english
Re: Snow
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?
Similar topics
» I need snow effect for forum but i need script where i can put my jpg. snow flakes.
» On/off button for snow + snow man
» Snow
» Help with snow
» Snow
» On/off button for snow + snow man
» Snow
» Help with snow
» Snow
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum