Hello pals,
HTML code:
<dt><a href="#" onmouseover="addButton(this);" onmouseout="removeButton(this);">CNN News<img src="images/cnn.gif" alt="cnn" style="width:67px; height:43px;"/></a></dt>
Javascript:
function addButton(selected){
var add = "CNN News<img src=\"images/cnn.gif\" alt=\"cnn\" style=\"width:67px; height:43px;\"/><img id=\"add\" src=\"images/add.gif\" alt=\"Add\" />";
selected.innerHTML = add;
}
function removeButton(selected){
var add = "CNN News<img src=\"images/cnn.gif\" alt=\"cnn\" style=\"width:67px; height:43px;\"/>";
selected.innerHTML = add;
}
Here my problem is:
when the mouse moved over image its not calling the addButton() but when mouse is outside of the image and on <a> element its calling the addButton() func.
<img> is a child of <a> element and its working fine in FF....
Any clues... Thanks in advance...