View Full Version : onclick swap image and back

08-20-2007, 09:16 PM
Hi all.
I have a web consisting of 2 frames -- a top, navigation frame (top.htm) and a bottom content frame (main.htm). The top navigation frame has 5 navigation images -- each of which calls up its appropriate page (Pg1-5) in the bottom content frame.
I want each navigation button to have a mouseover effect (image_on) and, when clicked, image_on should stay on while any previously clicked navigation images swap to image_off. Of course, clicking on the image should call up the appropriate page in the content frame as well.
Does anyone know what to do?

08-21-2007, 02:55 AM
Try out this little demo:


You can configure as many links as you like on nav.htm just by adding additional styles and markup. The script doesn't need to be edited. Any questions, just ask.

08-21-2007, 04:12 PM
Awsome !!!..it works gud. Thank you very much for your quick valuable response.