Click to See Complete Forum and Search --> : Need to have Image Remain On Click


Four_of_Five
02-01-2003, 11:29 AM
I'll probably figure this out...eventually...however, i need to get this over with soon:p (and see if i can explain this one...

Ok so here goes... i have images as "buttons" on my "menu page" so that when a button is moused-overed on it changes to a different image as well as play sound when clicked which just works fine except what I want to do is have the On-mouseover image "remain" after I've clicked on it.
Coz, it goes back to the "visible" image after I've removed the mouse-over.

That way, site visitors will know (if ever they do notice it) that they're on that page...

Here's part of the script which i think needs to be changed:

<div align="left">
<table border="0" cellspacing="0" width="110" cellpadding="0">
<tr>
<td align="left">
<a href="ABOUT_US_NTCR3.htm" onmouseout="BNB_mouseoff('main')" onmouseover="BNB_mouseon('main');return true ">
<img src="main1.gif" name="main" VSPACE=0 border=0 alt="ABOUT US" onMouseOver="playSound(2)" onMouseOut="stopSound(2)" onClick="playSound(4)" align="left" width="130" height="40"></a> </td>
</tr>

What htmline do i need to insert into the script?

meow
02-01-2003, 11:52 AM
If I understand you right, take away this:
onmouseout="BNB_mouseoff('main')"

Four_of_Five
02-01-2003, 06:16 PM
Originally posted by meow
If I understand you right, take away this:
onmouseout="BNB_mouseoff('main')"

Thanks, hmmm...but actually, im prefer to have it remain when "Clicked" but not when "MousedOff"...

Hmmm...does this mean I'll add something like "onmouseclick"?? :rolleyes: