i know that there are some pics here to use for falling objects but i was wondering that if u could use your own or whether u had to do something special to the image u created before it could be used with this code.
if so, the part that u have to replace do u type the entire url or let's say the last part of your url is hearts.gif then is that all u would type?
MaGiCSuN
04-24-2003, 03:59 PM
I'm taking as example the snow falling script in the javascript section form lissa's site
you have this part of the code:
var no = 15; // snow number
var speed = 9; // smaller number moves the snow faster
var snowflake = "snow.gif";
the 'var snowflake" part is the most important part for you. For example you made an .gif (it's the easiest to use .gif because you can make those transparent, that looks nicer on your site) called sunny.gif. It's an image from a sun for example. Then you will have the bold part changed:
var snowflake = "snow.gif";
into
var snowflake = "sunny.gif";
now when you do this, the image must be in the same folder as the page is where you use this script on!
If you have this image uploaded somewhere else that allows directlinking then you would have something like this:
var snowflake = "http://yourhostname.com/youraccountname/sunny.gif";
and if you have the image in a folder named images for example you use this code for it
var snowflake = "images/sunny.gif";
I hope this helped answering your questions. :) So it kinda depends on where you have got the .gif image uploaded and in wich folder. For making .gif transparent search the forum, it will have tons of threads about it that will explain how to make those kind of .gifs
Love,
Mirna