ToxikPaint
03-25-2003, 04:14 PM
The preload and rollover generator works fine...except it doesnt preload. I tried it and examined the source code...and all it does it make the images rollover. Any ideas anybody?
|
Click to See Complete Forum and Search --> : Preload & Rollover Generator ToxikPaint 03-25-2003, 04:14 PM The preload and rollover generator works fine...except it doesnt preload. I tried it and examined the source code...and all it does it make the images rollover. Any ideas anybody? Jona 03-25-2003, 04:24 PM Please give the URL to the generator, and/or give the code that it outputs. Preloading should look like this: <script> //preloading images... imageIDon = new Image(); imageIDon.src = "images/yourImageOn.jpg" imageIDoff = new Image(); imageIDoff.src = "images/yourImageOff.jpg" imageID2on = new Image(); //...etc... </script> You can check out my site: http://computermasterminds.tk/ to see a good example of preloaded images. ToxikPaint 03-28-2003, 07:51 PM Oops my bad... The Url to the generator: http://javascript.internet.com/generators/preload-images.html For example if it is filled out like this #1 = images/1.jpg MO1 = images/2.jpg URL = http://www.google.com it will output the following code <!-- TWO STEPS TO INSTALL PRELOAD IMAGES: 1. Paste the first into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin image1 = new Image(); image1.src = "images/2.jpg"; // End --> </script> </HEAD> <!-- STEP TWO: Insert this code into the BODY of your HTML document --> <BODY> <a href="http://www.google.com" onmouseover="image1.src='images/2.jpg';" onmouseout="image1.src='images/1.jpg';"> <img name="image1" src="images/1.jpg" border=0></a> </BODY> i dont see any preload :-/ ToxikPaint 03-29-2003, 01:10 AM Eh nevermind..I got it. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |