0

hi, i have a problem with my code. i am trying to shift pictures as the mouse hovers over the link..but nothing happens!

<div id="FAQ">

 
<ul> 
 <b> FAQ
<li><a href="#" onMouseOver="document.dadfadsfasdf.src='Answers_14.gif ' ">What does the Bronze membership include?</a> </li> 
<li><a href="#" onMouseOver="document.dadfadsfasdf.src='Answers_06.gif' ">What does the Silver membership include?</a> </li>
<li><a href="#" onMouseOver="document.dadfadsfasdf.src='Answers_34.gif' ">What does the Gold membership include?</a> </li> 
<li><a href="#" onMouseOver="document.dadfadsfasdf.src='Answers_18.gif' ">How long is the Bronze membership for?</a> </li>
<li><a href="#" onMouseOver="document.dadfadsfasdf.src='Answers_27.gif' ">How long is the Silver membership for?</a> </li> 
<li><a href="#" onMouseOver="document.dadfadsfasdf.src='Answers_21.gif' ">How long is the Gold membership for?</a> </li>
<li><a href="#" onMouseOver="document.dadfadsfasdf.src='Answers_03.gif' ">How much does the Bronze membership cost?</a> </li> 
<li><a href="#" onMouseOver="document.dadfadsfasdf.src='Answers_06.gif' ">How much does the Silver membership cost?</a> </li>
<li><a href="#" onMouseOver="document.dadfadsfasdf.src='Answers_30.gif' ">How much does the Gold membership cost?</a> </li> 
<li><a href="#" onMouseOver="document.dadfadsfasdf.src='Answers_10.gif' ">Do i get a discount if i am a student?</a> </li>

 </ul>
</b>
</div>

<div id="AnswerImage">
<img src="Sliced/images/Answers2_03.gif" name="dadfadsfasdf" />
</div>
2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by NewOrder
1

New Order,

In document head:

<script type="text/javascript">
function swapImage(imgID, src){
	var img = document.getElementById(imgID) || document.all[imgID] || document[imgID] || null;
	if(img) {
		img.src = src;
		img.alt = src;//for testing
	}
};
</script>

Then compose each link as follows:

<li><a href="#" onMouseOver="swapImage('dadfadsfasdf','Answers_14.gif'); ">What does the Bronze membership include?</a></li>

Airshow

Edited by Airshow: n/a

0

that doesnt seem to work.

does anyone know the onMouse function and how to use it?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.