Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: onMouseOver, AREA HREF and status


Message #1 by "setiady" <setiady@i...> on Thu, 21 Nov 2002 13:38:45 +0700
Well, the first thing to think about: DON'T BE LAZY.  Use window.status
instead of just status.

Second, both function should return true.

HTH

> -----Message d'origine-----
> De : setiady [mailto:setiady@i...]
> Envoy=C3=A9 : jeudi 21 novembre 2002 07:39
> =C3=80 : javascript
> Objet : [javascript] onMouseOver, AREA HREF and status
>
>
> dear friends..
>     I had this problem, I set the status for event
> onMouseOver of an image
> link like this:
> <SCRIPT LANGUAGE=3D"JAVASCRIPT">
> function MouseOver() {
>  status =3D "This is the best thing in the world";
>  return true;
> }
> function MouseOut() {
>  status =3D "Unfortunately, please visit next time";
>  return false;
> }
> </SCRIPT>
> <BODY>
> <IMG SRC=3D"a.bmp" USEMAP=3D"#a_ok">
> <MAP NAME=3D"a_ok">
> <AREA HREF=3D"something.html" SHAPE=3D"rect" COORDS=3D"200,0,400,100"
>  onMouseOver =3D "return MouseOver();" onMouseOut=3D"return 
MouseOut();">
> </BODY>
> The status doesn't change when the mouse is over, instead it
> prints the
> link, what is the mistake?
>

  Return to Index