Results 1 to 3 of 3

Thread: Pre-loading images

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 1999
    Posts
    50

    Question

    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

  2. #2
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281
    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,



  3. #3

    Thread Starter
    Member
    Join Date
    Oct 1999
    Posts
    50
    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 )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width