This content has been marked as final. Show 7 replies
Thanks for your suggestion, that is what I' am doing right now; it works but is cumbersome. I would like some coding to expand the image.
I like the code and the result of your solution, Peter. It works just fine for me in RH6. Thanks!
Glad it helped and thanks for confirming it works in RH6. I think I'll add that link to my site as I too thought it was a nice bit of code.
I just found two gotchas with this method.
It doesn't work if the image filename has any spaces in it.
It has problems with different size images.
In Dreamweaver, you have to remove the size attributes of the image and then it works, subject to no spaces. In RH, even removing the size attributes it seems to apply the size of the first image to the rollover image.
I'll look at it again later but for now, beware.
In RH the script seems OK provided you have no spaces in the image file name and the images are the same size.
If the rollover image is larger, you can make it work by removing all the size attributes but RH "helpfully" adds that code back in. I haven't tested with a smaller image but my guess is it will stretch it.
Maybe another script is needed.