|
EXAMPLE
You should see some musical notes
gently falling down your screen. The images can be snow flakes, stars or
anything you decide.
1) Insert this script anywhere inside the <BODY> section of your page.
2) Define the number of images to render
in this section of the script:
var no = 10;
3) Define the image name and its location
in this section of the script:
document.write("<layer
name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><a href=\"http://inet.hr/\"><img
src=\"images/dot.gif\" border=\"0\"></a></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img
src=\"images/dot.gif\"
document.write("<div
id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://inet.hr/\"><img
src=\"images/dot.gif\" 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=\"images/dot.gif\" border=\"0\"></div>");
And here:
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
It may be easier to leave the image name to dot.gif
and upload your own GIF using the name dot.gif and placing that in a
subdirectory of where the script is called /images.
For examples of this script, you can also visit Altan's
web site.
|