dynamic mouse over action

Giganews Newsgroups
Subject: dynamic mouse over action
Posted by:  simon.tayl…@fdlearning.com (simon taylor)
Date: 15 Jul 2003

Hello and thanks for reading my posting.
My question is ......
Is it possible to change the mouseover action ? so if we have an image
thus

<IMG id="splot" onmouseover= "window.status ='forward'; return false;"
Title=forward onmouseout ="window.status=''; return false;"
src="Images/Navigate.gif" >

and I have a javascript function ...........

<script language=javascript>
function DoIT(){
  alert(document.getElementById("splot").title);
  document.getElementById("splot").title = "back";
  return false;
}
</script>

I can change the title to say "back" but how do I change the mouseover
action to change the status text to say back ?

The more I think about this the more I think this is a little nasty
but if someone has any insight I'd love to hear it !
once again many thanks
simon.

Replies