SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I preload these images?

    I have some Javascript (.js attached as .txt) that works onMouseOver of an image both makes it shine and fades in another image at a different location on the screen.

    Here is how I am calling it:

    <img id="1" src="images/about.jpg" class="gradualshine" onMouseover="h('1','d'); d(450,245,'images/about_desc.jpg',500,35)" onMouseout="l('1'); l0('d')" alt="" border="0" width="171" height="162">

    ("d" is a div object that is not visible until this script activates it)

    This is being used on http://www.tccommerce.com.

    What I need to do is preload six images. What's happening is that the menu graphics load, then the user is moving the mouse over each one, but there is often a delay while the browser downloads "about_desc.jpg" and the images that correspond to the other menu options.

    I need to tweak this script to preload these images so it is seamless. Any help is greatly appreciated.
    Attached Files Attached Files


Bookmarks

Posting Permissions

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