Click to See Complete Forum and Search --> : Pre-loading images
spyder
Jun 19th, 2000, 12:31 AM
Greetings All,
Is there an Easy way to preload images in VBScript like there is in Javascript.
I have a Page that Does image swapping based on mouseover event. But this is causing the page to "download" the image Everytime it swaps.
Thanks in advance.
Devin
compuGEEK
Jun 20th, 2000, 11:05 PM
If you use this:
<IMG SRC="YourImage.jpg" ALT="My Image" WIDTH=1 HEIGHT=1>
Your picture will be loaded as a 1 x 1 dot and it can be hidden against something else like another image. Cool thing is that it doesn't require any scripting language!
Later,
spyder
Jun 21st, 2000, 12:57 AM
Yeah, that would work however :-)
I need to use the Scripting because there are "Image maps" used, Mainly where/ what they Click on needs to be done and the image needs to change depending on where the mouse pointer is.
a perfect Example would be an Image of the US and having the state "highlight" depending on where the mouse in on the image. ( similar to a Java Rollover image )
I have this Working but it is constantly trying to download the image.
Does that Help Clear it up a bit?
Devin ( Spyder )
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.