Click to See Complete Forum and Search --> : window.status help.


The Wand
12-07-2006, 01:16 PM
Hello,

I've produced an image map using HTML and all is working ok on that front. I have tried adding the window.status function in the anchor tag but it doesn't seem to work, do I need some sort of function in the <head> tag ?. Any help would be appreciated.

Code is as follows....

<html>
<head>
<title>AFC Yew Tree</title>
</head>
<body bgcolor="#6699FF">
<img src="Menu1.gif" usemap="#1" border="0">
<map name="1">

<area shape="rect" coords="0,0,207,70"
href="News.htm" target="right"
onMouseOver="window.status='Link to News' ; return true"
onMouseOut="window.status='' ; return true">

<area shape="rect" coords="0,70,207,145"
href="Results.htm" target="right"
onMouseOver="window.status='Link to Results' ; return true"
onMouseOut="window.status='' ; return true">

<area shape="rect" coords="0,145,207,210"
href="League.htm" target="right"
onMouseOver="window.status='Link to League' ; return true"
onMouseOut="window.status='' ; return true">

<area shape="rect" coords="0,210,207,270"
href="Stats.htm" target="right"
onMouseOver="window.status='Link to Player Stats' ; return true"
onMouseOut="window.status='' ; return true">

<area shape="rect" coords="0,270,207,330"
href="Social.htm" target="right"
onMouseOver="window.status='Link to Social Events' ; return true"
onMouseOut="window.status='' ; return true">

<area shape="rect" coords="0,330,207,391"
href="Contact.htm" target="right"
onMouseOver="window.status='Link to Contact US' ; return true"
onMouseOut="window.status='' ; return true">

</map>
</body>
</html>

_Aerospace_Eng_
12-07-2006, 01:33 PM
Got link? Note: The ability to change the statusbar text in Firefox is disabled by default.

Tweak4
12-07-2006, 01:40 PM
Honestly, I wouldn't even bother. With more and more people thinking about security, malware, etc, people rely on being able to see where a link is going to take them before clicking it. In fact, some browsers (Firefox is the only one I'm sure of offhand) include a security setting that prevents JS from being able to change the window.status text.

_Aerospace_Eng_
12-07-2006, 01:43 PM
Opera doesn't allow it and it doesn't even give the users an option to allow it.

The Wand
12-08-2006, 12:46 AM
Thanks for your input, I won't be using the window.status property anymore. Just out of interest though can anyone see why this code wouldn't work ?.