View Full Version : Simple onMouseOver / onMouseOut Query

03-21-2009, 02:10 PM
Hi, there.

I've used CSS to create an image gallery - full-size images display when thumbnails are 'hovered' over, but disappear once the cursor is moved off the thumbnail. I want the full-image to remain displayed when the thumbnail is no longer 'hovered', and have been advised that I could use a Javascript to do this - but have no idea how to integrate Javascript with my CSS scripts, below:


If any of you experts can shed any light on this, it would be most appreciated!

Also, I wonder if it is possible to have the first full-image display automatically when the page is loaded, but am unsure as to whether this needs to be coded as part of the Javascript or the CSS?

03-21-2009, 10:12 PM
Take a look at the codes posted here: http://www.webdeveloper.com/forum/showthread.php?t=205077

See if they will meet your needs or if further modifications are required. :thumbsup:

Good Luck!