PDA

View Full Version : Rollover question



mrbadco
12-31-2005, 07:56 AM
Ive been searching the web for a easy mouse rollover script. I have 100 small "100 pixel" pictures on my web page. I want to roll my cursor over them and have them enlarge to 4x3 picture. I don't want any clicking just a rollover to make it easy to move on to the next picture. The 100 pixel pictures are close together, so I need the 4x3 picture to open on top of them. Ive seen this on a website but now I cant find it to ask the owner what script he was using. Any help would be greatly appreciated !!!!

12345c
01-01-2006, 11:25 PM
I think, it's not good idea, need 100 images with preloading (10K * 100 = 1 MB), 100 http connections, 100 AREA tags in code of page. Of course, _after_ loading it will work fine.

What is 4x3 picture? What is it resolution?

Iiro
01-02-2006, 08:21 AM
Simple rollover code:



<a href="yourpage.html"
onmouseover="yourimage.width='set the width here';
yourimage.height='your height here'"
onmouseout="yourimage.width='your width here';
yourimage.height='your height here'"><img
src="yourimage.gif" width="your width" height="yourheight" name="
yourimage" border="0"></a>


That should work.

mrbadco
01-03-2006, 04:23 AM
Thank you very much. cant wait to try it!!!