SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 08:42:12 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1] 2
  Print  
Author Topic: [Code] Rain/Snow on Forum  (Read 2410 times)
0 Members and 1 Guest are viewing this topic.
trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« on: October 04, 2007, 05:38:07 pm »

I Love My Comp Classes lol

Example: fatboy.smfforfree3.com

THIS NEEDS TO GO IN THE HEADER
Code:
<style>
.drop { position: absolute; width: 3;  filter: flipV(), flipH(); font-size: 40; color: blue }
</style>
<script language="javascript">

snow = false;    // false-rain;   true-snow
snowsym = " * "  //These are the symbols for each
rainsym = " ' "  //You can put images here.
howmany = 10     //How many drops

/DO NOT EDIT BELOW THIS/
if(snow){sym = snowsym; speed=1; angle=10; drops=howmany}
else{sym = rainsym; speed=50; drops=howmany; angle=6}
movex = -speed/angle; movey = speed; count = 0;

function moverain(){
for(move = 0; move < drops; move++){
xx[move]+=movex;  yy[move]+=mv[move];
hmm = Math.round(Math.random()*1);
if(xx[move] < 0){xx[move] = maxx+10;}
if(yy[move] > maxy){yy[move] = 10;}
drop[move].left = xx[move]
drop[move].top = yy[move]+document.body.scrollTop;
}setTimeout('moverain()','1')}

</script>



FOOTER
Code:
<script language="javascript">

if (document.all){
drop = new Array(); xx = new Array(); yy = new Array(); mv = new Array()
ly = "document.all[\'"; st = "\'].style"
for(make = 0; make < drops; make++){
document.write('<div id="drop'+make+'" class=drop>'+sym+'</div>');
drop[make] = eval(ly+'drop'+make+st);
maxx = document.body.clientWidth-40
maxy = document.body.clientHeight-40
xx[make] = Math.random()*maxx;
yy[make] = -100-Math.random()*maxy;
drop[make].left = xx[make]
drop[make].top = yy[make]
mv[make] = (Math.random()*5)+speed/4;
drop[make].fontSize = (Math.random()*10)+20;
if(snow){col = 'white'}else{col = 'blue'}
drop[make].color = col;
}
window.onload=moverain
}
</script>
Logged


Ad Machine - Free advertising and tips on how to promote your board.
Agent Moose
Moderator
*****
Offline Offline

Posts: 669


Do not PM me for Code Support or Request


View Profile
« Reply #1 on: October 04, 2007, 05:45:08 pm »

This doesnt work for me.  I am useing FF
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
Gordie
SMF For Free Hero
*
Offline Offline

Posts: 591


I'm around somewhere!!!


View Profile WWW
« Reply #2 on: October 04, 2007, 05:47:57 pm »

It doesn't work with firefox,but it does with IE&. BTW...I love the blue text in your stylesheet.
Logged


LaundryLady
Global Moderator
*
Offline Offline

Posts: 3083


Multi-Tasking Maven


View Profile
« Reply #3 on: October 04, 2007, 05:50:42 pm »

I am still looking for a code that will work in FF.  I have one, but all the images sit in the corner stacked on top of each other and won't fall.
Logged
Gordie
SMF For Free Hero
*
Offline Offline

Posts: 591


I'm around somewhere!!!


View Profile WWW
« Reply #4 on: October 04, 2007, 05:58:25 pm »

You need to give them a little "push"  2funny
That's the sad part...I LOVE Firefox,but it does have it's negative points
Logged


trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« Reply #5 on: October 04, 2007, 06:06:20 pm »

That blue from my style sheet is 7077fa
Logged


Ad Machine - Free advertising and tips on how to promote your board.
mom
SMF For Free Member
*
Offline Offline

Posts: 56


PogoBabies


View Profile WWW
« Reply #6 on: October 05, 2007, 10:46:11 am »

I am new at this...so you have to put a code in the header and the footer?  I can use something other than snow and rain..right?
Logged

I am strong...so bring it on!
trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« Reply #7 on: October 05, 2007, 03:45:14 pm »

if you configure it right, it has lots of possibilities
Logged


Ad Machine - Free advertising and tips on how to promote your board.
rileyks
SMF For Free Sponsors
*
Offline Offline

Posts: 445


View Profile
« Reply #8 on: October 05, 2007, 03:51:27 pm »

Ok..I am sorry...when I go to the site I don't see rain or snow.  Am I missing something?
Logged

Gordie
SMF For Free Hero
*
Offline Offline

Posts: 591


I'm around somewhere!!!


View Profile WWW
« Reply #9 on: October 05, 2007, 04:05:11 pm »

Are you using firefox? Because firefox will not display the animation.
Logged


Melody670
SMF For Free Full Member
*
Offline Offline

Posts: 139


View Profile
« Reply #10 on: January 23, 2008, 03:43:55 pm »

I'm using IE6 and it didn't work for me either.
Logged
blahs
SMF For Free Sr. Member
*
Offline Offline

Posts: 252


5 out of 4 people have trouble with fractions!


View Profile WWW
« Reply #11 on: March 07, 2008, 06:37:56 pm »

dosent work im using internet explorer!
Logged
Cyrus
SMF For Free Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #12 on: April 18, 2008, 09:41:37 am »

Forum Url: http://xfile.smfforfree2.com
It doesn't work for me and I am using

Microsoft Internet Explorer!

I usually use Macintosh Safari, Does anyone know if it works for that?
Logged
puchisana
SMF For Free Member
*
Offline Offline

Posts: 32


View Profile
« Reply #13 on: September 03, 2008, 03:54:46 pm »

It was working on another forum I had, but its not working on the one I have now, what should i put?
Logged
Jesus Freak
SMF For Free Member
*
Offline Offline

Posts: 36



View Profile WWW
« Reply #14 on: September 15, 2008, 02:20:27 pm »

It's not working 4 me and I'm using IE.
Logged

JJ Brothers

Best Site EVER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

jjbrothers.smfforfree4.com


Pages: [1] 2
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.279 seconds with 18 queries.