Currently I have 6 images (anchors) across my page and have some javascript
for OnMouseOver and OnMouseExit which highlights the image as you move the
mouse over it (see http://www.leicesterchurchmusic.org).
When you click a button, I would like to be able to:
- Change the image to a different button
- Change the last image I clicked back to a normal button
- Button shall not change for over/exit if it is clicked.
For one button, this is the code I have so far.
<A target="main" href="./home.html"
onmouseover="im age1.src='./images/navbutton_home_ over.gif';"
onmouseout="ima ge1.src='./images/navbutton_home. gif';" ><IMG name="image1"
src="./images/navbutton_home. gif" border="0"></A>
1.
I can use OnClick and change the image, but as soon as I move the mouse, it
reverts back again because of the existing mouseover/exit functions. How do
I stop this?
2.
Obviously when I click a different button, the same thing shoudl happen, but
I'll have to revert the other button back to normal. How do I do this?
Any help would be appreciated.
Many thanks,
Steve :)
--
for OnMouseOver and OnMouseExit which highlights the image as you move the
mouse over it (see http://www.leicesterchurchmusic.org).
When you click a button, I would like to be able to:
- Change the image to a different button
- Change the last image I clicked back to a normal button
- Button shall not change for over/exit if it is clicked.
For one button, this is the code I have so far.
<A target="main" href="./home.html"
onmouseover="im age1.src='./images/navbutton_home_ over.gif';"
onmouseout="ima ge1.src='./images/navbutton_home. gif';" ><IMG name="image1"
src="./images/navbutton_home. gif" border="0"></A>
1.
I can use OnClick and change the image, but as soon as I move the mouse, it
reverts back again because of the existing mouseover/exit functions. How do
I stop this?
2.
Obviously when I click a different button, the same thing shoudl happen, but
I'll have to revert the other button back to normal. How do I do this?
Any help would be appreciated.
Many thanks,
Steve :)
--
Comment