crw150
Technical User
- May 27, 2005
- 20
Hi,
I have a page with numerous thumbnails (see At present, clicking a thumbnail makes an enlarged version of the photo open in a new window. But I need to change this to a mouseover event so that on hover, a larger version of the image appears, then goes away when you mouseout. I have a script that will do this, written like the one at
But the problem is that my script sets every enlarged image to size 250 x 250. Which won't work for me because my enlarged images are all different sizes. I don't see any way to resize them all to the same dimensions as some are landscape and some are portrait.
I'm terrible at Javascript, but I think (?) the way to fix my script is to set a variable for width and height on the large images? However, I'm not sure how to do that. AND, in my HTML how and where do I indicate what the width and height for each enlarged image should be?
Could someone please point me to an example? Or suggest keywords to search?
I hope this makes sense. I'm very JS challenged and very confused!
Thanks,
CRW
I have a page with numerous thumbnails (see At present, clicking a thumbnail makes an enlarged version of the photo open in a new window. But I need to change this to a mouseover event so that on hover, a larger version of the image appears, then goes away when you mouseout. I have a script that will do this, written like the one at
But the problem is that my script sets every enlarged image to size 250 x 250. Which won't work for me because my enlarged images are all different sizes. I don't see any way to resize them all to the same dimensions as some are landscape and some are portrait.
I'm terrible at Javascript, but I think (?) the way to fix my script is to set a variable for width and height on the large images? However, I'm not sure how to do that. AND, in my HTML how and where do I indicate what the width and height for each enlarged image should be?
Could someone please point me to an example? Or suggest keywords to search?
I hope this makes sense. I'm very JS challenged and very confused!
Thanks,
CRW