I am using a simple image swap routine in a fragment using:
What is the best way to preload the images imageSwap2.jpg, imageSwap3.jpg etc to prevent lag on the mouseover?
Tried using
but to no apparent effect
HTML Code:
<img src="imageSwap1.jpg" name="swapImage" id="swapImage" ...> <a ... onmouseover="document.swapImage.src='imageSwap1.jpg'"> <a ... onmouseover="document.swapImage.src='imageSwap2.jpg'"> ... etc
Tried using
HTML Code:
Image2= new Image(200,200) Image2.src = "imageSwap2.jpg" .. etc
Comment