Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

raindrops alteration ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Ihave found a nice script that makes it rain. The raindrops are made with colors and pixels. What I'd like to know is....if it's possible....how would I alter it to make tiny images rain down instead of the colors and pixels.

Ideas anyone ? or is this too hard or not possible to alter ?

thanks,
erasmuse
 
where is the script? we cannot help you much till we can see it... :) jared@aauser.com
 
It just uses commas by the looks so if you replace that comma with an image, youare away laughing.I have marked them in blue, note you can omit the surrounding font tags too..

if (ns4up) {

if (i == 0) {

document.write(&quot;<layer name=\&quot;dot&quot;+ i +&quot;\&quot; left=\&quot;1\&quot; &quot;);

document.write(&quot;top=\&quot;1\&quot; visibility=\&quot;show\&quot;><font color=\&quot;blue\&quot;>&quot;);

document.write(&quot;,</font></layer>&quot;);

}

else {

document.write(&quot;<layer name=\&quot;dot&quot;+ i +&quot;\&quot; left=\&quot;1\&quot; &quot;);

document.write(&quot;top=\&quot;1\&quot; visibility=\&quot;show\&quot;><font color=\&quot;blue\&quot;>&quot;);

document.write(&quot;,</font></layer>&quot;);

}

}

else

if (ie4up) {

if (i == 0) {

document.write(&quot;<div id=\&quot;dot&quot;+ i +&quot;\&quot; style=\&quot;POSITION: &quot;);

document.write(&quot;absolute; Z-INDEX: &quot;+ i +&quot;; VISIBILITY: &quot;);

document.write(&quot;visible; TOP: 15px; LEFT: 15px;\&quot;><font color=\&quot;blue\&quot;>&quot;);

document.write(&quot;,</font></div>&quot;);

}

else {

document.write(&quot;<div id=\&quot;dot&quot;+ i +&quot;\&quot; style=\&quot;POSITION: &quot;);

document.write(&quot;absolute; Z-INDEX: &quot;+ i +&quot;; VISIBILITY: &quot;);

document.write(&quot;visible; TOP: 15px; LEFT: 15px;\&quot;><font color=\&quot;blue\&quot;>&quot;);

document.write(&quot;,</font></div>&quot;);

}

}

}
&quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer&quot;
 
Thanks Bangers !

I'll be trying it soon and will let you know how it worked !

erasmuse
 
Ok...what did I put wrong ? It's now raining image file names (G) - I keep playing with it but am new at JavaScript and can't seem to put my finger on it :(

Here's what I typed into the image line - that seems to be where the problem is:


document.write(&quot;image1.src='new1.jpg';</layer>&quot;);


thanks !
erasmuse
 
Well....I found another script that I altered fine. It is now raining bears ! BUT...I still need to head off and find a tutorial on how to make a transparent gif. - when the little bears rain over the big one - the white backgroung shows :(

I appreciate your help so much and would still like to learn what I did wrong on the first script typing in the image. Mistakes are still my best way to learn !(G) I just love JavaScript but have a long way to go before I understand it all - a definite beginner but eager to learn :)

Here's the url where it's raining bears at the moment if you would like to look:


Thanks !

erasmuse
 
back to the original script, if you just replace the commas with:

<img src=\&quot;new1.jpg\&quot;>

that will work theEclipse
eclipse_web@hotmail.com
**\\||It was recently discovered that research causes cancer in rats||//**
 
I had tried that but forgot the slashes !

Thank you so much ! It is easier to learn if you can see what you did wrong :)

erasmuse
 
no problem, I'll be here all weekend, and don't forget to tip your waitress!>:):O> theEclipse
eclipse_web@hotmail.com
**\\||It was recently discovered that research causes cancer in rats||//**
 
Sure thing Eclipse ! But what do I leave for a tip ?

Some sage advice ?

a free bearmaking class ?

You choose ! :)))

Thanks again !

erasmuse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top