Guest mlckiwigirl Posted October 28, 2005 Share Posted October 28, 2005 I have been working on a small project where I want an image to appear after the cursor hovers over a smaller image. I also wanted the larger images to load when the page loads, not when the user hover their cursor over the thumbnail.I have managed to figure out how to change an image by mouseover.The bottom image on this page illustrates this:http://www.thenaturalstructure.com/test.htmlWhat I want to happen from this is when the cursor hovers over the small image I want the larger image to pop-up within a customised frame. Once the cursor moves away from the smaller image the large image would disappear.From what I have read frames maybe the best way to go. I have found a few examples but it difficult to understand the code at this point.examples:http://www.istockphoto.com/file_search.php...file&text=beadshttp://www.premiumwanadoo.com/dhteumeuleu/index.phpIf anyone could give me some tips to get me started I would be really grateful.Maria Link to comment Share on other sites More sharing options...
bradley.lee Posted October 28, 2005 Share Posted October 28, 2005 You need to use the 'preload' command use this link to the w3 tryit pagehttp://www.w3schools.com/dhtml/tryit.asp?f...l_image_preloadHope it helps Link to comment Share on other sites More sharing options...
Jack McKalling Posted November 6, 2005 Share Posted November 6, 2005 And what about the window.createPopup() (IE only) function?It can be showed at hover and not-showed at mouseout p = window.createPopup() p.specificationsfunction ShowPopup(State){ if (State == "show") p.show(width,height,horizposition,verticposition) else if (State == "hide") p.show(0,0,0,0)}<element onmouseover='ShowPopup("show")' onmouseout='ShowPopup("hide")'> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now