PDA

View Full Version : urgent help!!


tetu
11-03-2003, 12:39 PM
Hi all,
i just got a call from my client with another last minute change. we have preload thumbnail images that have swapImage behaviors. the problem is that if you click on the preloaded thumbs before the 'large' picture loads, it'll stop the the preloading process all together; thus the large images from the thumbnails either do not show up or show up partially. here is the site:

http://carboniointakes.com/vw/18t.php
(don't bother with the php extension, it's really just html. it's just to coincide with the php mailform and soon to be online cart)

can anyone help me with this and the best way to solve this. the problem seems to only occur with I.E.
Mozilla seems to work fine. i figured the worse thing for me to do is to create a page with each individual image having their own page when clicked but that is time consuming and i really don't want to do that.

thanks,
:)

leoo24
11-03-2003, 12:57 PM
seems more like a client side probelm, i'll move ay over here :D

scoutt
11-03-2003, 03:57 PM
not sure but this may fix your problem

http://www.htmlforums.com/showthread.php?s=&threadid=25676

but in your case I don't think so as when you click on a image to load another page the process stops the current page so it can load the new one.

just have to tell them to wait for the page to finish loading.

piglet
11-03-2003, 05:16 PM
Hi,

How about a sneaky way to do it?

Make a frameset with two frames, one 100%, the other 0%, do the preloading in the 0% and the original page in the 100%.

Vincent Puglia
11-03-2003, 05:31 PM
Hi,

you are not preloading anything. you are loading after the page loads:
onLoad="MM_preloadImages('../image

preloading means loading the images into an Image object prior to the page load

so, if you want to continue doing what you're doing, fine. but if you want to preload, execute the function before the body tag:

MM_preloadImages(....)
<body>

if you want to keep it where you have it, you have the following options:

1) alternate the loading (largeImage then thumbnail) that way they cannot click before the larger image is ready.

2) capture and hold the onclick until the loading is done

3) preload some images then onload the rest.

Hi piglet :D
Vinny