PDA

View Full Version : mouseover and click function



rich1234
06-09-2007, 11:06 AM
Hi there,
I have looked at various scripts on dynamic drive. Can anyone tell if there is a script that has the functions on this website page.
http://www.richardfurlongart.co.uk/frameGALL1.html

maybe this one could be adapted

http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

ie. mouseover link gets a small thumb, then onclick gets a larger image.

If there is not one, I think it would be a nice addition to some great scripts on the site

Thanks in advance.

richard

jscheuer1
06-09-2007, 04:15 PM
That actually is a script like Image Thumbnail Viewer II being used inside of a frameset and could be done using Image Thumbnail Viewer II inside of a frameset.

All you would need to do (once you setup your frameset) is add onclick events to the triggers (the circles on the example page) to load the larger image into the frame, for example:


<a href="some.jpg" rel="enlargeimage::mouseover" rev="loadarea::http://www.dynamicdrive.com" title="This is an example" onclick="parent.window.frames['main'].location='some_bigger_jpg.htm';return false;"><img src="circle.gif"></a>

Where 'main' is the name of the frame this and the Image Thumbnail Viewer II is in and that you want to fill with the page containing the larger image.