Advertise Here

Author Topic: [Code] Rain/Snow on Forum  (Read 11698 times)

0 Members and 1 Guest are viewing this topic.

Offline trevix

  • SMF For Free Sr. Member
  • *
  • Posts: 302
    • View Profile
    • Canvas

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
[Code] Rain/Snow on Forum
« on: October 04, 2007, 05:38:07 pm »
I Love My Comp Classes lol

Example: *removed dead link

THIS NEEDS TO GO IN THE HEADER
Code: [Select]
<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: [Select]
<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>
« Last Edit: January 21, 2009, 08:36:28 am by simply sibyl »

Ad Machine - Free advertising and tips on how to promote your board.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Code] Rain/Snow on Forum
« Reply #1 on: October 04, 2007, 05:45:08 pm »
This doesnt work for me.  I am useing FF
Check out Revolution X's Brand new Code Index!

Offline x-Treme

  • SMF For Free Hero
  • *
  • Posts: 592
  • formally known as Gordie!!!
    • View Profile
    • xTreme Arcade

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Code] Rain/Snow on Forum
« 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.

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: [Code] Rain/Snow on Forum
« 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.


And I Play:  Mafia-Mandemz

Offline x-Treme

  • SMF For Free Hero
  • *
  • Posts: 592
  • formally known as Gordie!!!
    • View Profile
    • xTreme Arcade

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Code] Rain/Snow on Forum
« 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

Offline trevix

  • SMF For Free Sr. Member
  • *
  • Posts: 302
    • View Profile
    • Canvas

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Rain/Snow on Forum
« Reply #5 on: October 04, 2007, 06:06:20 pm »
That blue from my style sheet is 7077fa

Ad Machine - Free advertising and tips on how to promote your board.

Offline mom

  • SMF For Free Member
  • *
  • Posts: 99
  • PogoBabies
    • View Profile
    • Sistahood of the Baggy Pants

  • Total Badges: 26
    Badges: (View All)
    Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [Code] Rain/Snow on Forum
« 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?

Offline trevix

  • SMF For Free Sr. Member
  • *
  • Posts: 302
    • View Profile
    • Canvas

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Rain/Snow on Forum
« Reply #7 on: October 05, 2007, 03:45:14 pm »
if you configure it right, it has lots of possibilities

Ad Machine - Free advertising and tips on how to promote your board.

Offline rileyks

  • SMF For Free Sponsors
  • *
  • Posts: 530
    • View Profile

  • Total Badges: 16
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Rain/Snow on Forum
« 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?

Offline x-Treme

  • SMF For Free Hero
  • *
  • Posts: 592
  • formally known as Gordie!!!
    • View Profile
    • xTreme Arcade

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: [Code] Rain/Snow on Forum
« Reply #9 on: October 05, 2007, 04:05:11 pm »
Are you using firefox? Because firefox will not display the animation.

Offline Melody670

  • SMF For Free Full Member
  • *
  • Posts: 149
    • View Profile

  • Total Badges: 16
    Badges: (View All)
    Level 4 Fifth year Anniversary Windows User Topic Starter Combination
Re: [Code] Rain/Snow on Forum
« Reply #10 on: January 23, 2008, 03:43:55 pm »
I'm using IE6 and it didn't work for me either.

Offline blahs

  • SMF For Free Full Member
  • *
  • Posts: 245
  • 5 out of 4 people have trouble with fractions!
    • View Profile
    • Silabsoft

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Rain/Snow on Forum
« Reply #11 on: March 07, 2008, 06:37:56 pm »
dosent work im using internet explorer!

Offline Cyrus

  • SMF For Free Newbie
  • *
  • Posts: 4
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 First Post
Re: [Code] Rain/Snow on Forum
« 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?

Offline puchisana

  • SMF For Free Member
  • *
  • Posts: 37
    • View Profile

  • Total Badges: 9
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: [Code] Rain/Snow on Forum
« 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?

Offline Jesus Freak

  • SMF For Free Member
  • *
  • Posts: 56
    • View Profile
    • The Unofficial NFL Club

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Rain/Snow on Forum
« Reply #14 on: September 15, 2008, 02:20:27 pm »
It's not working 4 me and I'm using IE.
The Unofficial NFL Club

All Pro Football Fans NEED to come here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

thenflclub.smfforfree3.com

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1327 Views
Last post December 19, 2007, 12:48:40 am
by tashawn
0 Replies
1170 Views
Last post March 30, 2008, 01:17:36 pm
by Fid54601
3 Replies
1421 Views
Last post June 16, 2008, 11:41:13 pm
by Supernovadelta
2 Replies
1613 Views
Last post August 07, 2009, 11:00:54 am
by DzinestaR
1 Replies
6393 Views
Last post December 09, 2011, 11:44:24 am
by Mago