470,849 Members | 1,211 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

weep

<th class="box" colspan="4" align="center" style="cursor: default;" valign="middle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ente r User ID and Password&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img id="img1" name="img1" src="controls.gif" usemap="#map1" align="absbottom" border="0" onmouseover="javascript:if (window.status == 'Help About...'){ window.status='Help About...'; } else if (window.status == 'Leave fast (sort of)'){ window.status = 'Leave fast (sort of)'; } else { window.status = 'Help About...'; } return true;" onmouseout="javascript:window.status=window.defaul tStatus; return true;/>
<map name="map1" onmouseover="javascript: return true; }" onmouseout="javascript:window.status=window.defaul tStatus; return true;">
<area tabindex="9" accesskey="/" shape="rect" coords="0,12,14,0" href="help.htm" target="_new"
onmouseover="javascript:window.status='Help About...'; return true;"
onmouseout="javascript:window.status=window.defaul tStatus; return true;"/>
<area tabindex="10" accesskey="x" shape="rect" coords="15,12,29,0" href="#"
onclick="javascript:self.close(); return false;"
onmouseover="javascript:window.status='Leave fast (sort of)'; return true;"
onmouseout="javascript:window.status=window.defaul tStatus; return true;"/>
</map></th>

Doesn't work. The status is not changed to what I am telling it to be it is always:

shortcut to help.htm or shortcut to #. There is no way to get JavaScript to work correctly in this regard. Using the normal rules of logic. Microsoft Internet Explorer 5.5 SP2 Windows 2000 SP2.

--
George Hester
__________________________________
Jul 20 '05 #1
9 1355
George Hester wrote:
shortcut to help.htm or shortcut to #. There is no way to get
JavaScript to work correctly in this regard. Using the normal rules
of logic.


Your logic has produced too much errors to mention. Take a close look at the
following example and take it from there:

<script type="text/javascript">
function statusMsg(msg) {
window.status = msg;
return true;
}
</script>
.....
<a href="help.html"
onmouseover="return statusMsg('Get Help')"
onmouseout="return statusMsg('')">test</a>
JW

Jul 20 '05 #2
In article <Ot********************@twister.nyroc.rr.com>,
he********@hotmail.com says...
<th class="box" colspan="4" align="center" style="cursor: default;" valign="middle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ente r User ID and Password&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img id="img1" name="img1" src="controls.gif" usemap="#map1" align="absbottom" border="0" onmouseover="javascript:if (window.status == 'Help About...'){ window.status='Help About...'; } else if (window.status == 'Leave fast (sort of)'){ window.status = 'Leave fast (sort of)'; } else { window.status =

'Help About...'; } return true;" onmouseout="javascript:

You don't need JavaScript here, for starters.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #3
On Sat, 10 Jan 2004 07:04:14 GMT, George Hester <he********@hotmail.com>
wrote:

<snipped code>
Doesn't work. The status is not changed to what I am telling it to be
it is always:

shortcut to help.htm or shortcut to #. There is no way to get
JavaScript to work correctly in this regard. Using the normal rules of
logic. Microsoft Internet Explorer 5.5 SP2 Windows 2000 SP2.


I don't know about anybody else, but for me, that HTML you posted came out
to be an unreadable mess. Please *format* your posts to make them at least
somewhat understandable.

Furthermore, as Mr Jenkins said, don't use

[event name]="javascript: ..."

to specify the language of your intrinsic events. That should be done with
a META element.

Finally, if you are using more than a couple of statements in an intrinsic
event, use a function rather than inline code. It's *so* much easier to
read, and therefore, to debug.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #4
It don't work. Try your suggestion. Thanks.

--
George Hester
__________________________________
"Janwillem Borleffs" <jw@jwscripts.com> wrote in message news:3f***********************@news.euronet.nl...
George Hester wrote:
shortcut to help.htm or shortcut to #. There is no way to get
JavaScript to work correctly in this regard. Using the normal rules
of logic.


Your logic has produced too much errors to mention. Take a close look at the
following example and take it from there:

<script type="text/javascript">
function statusMsg(msg) {
window.status = msg;
return true;
}
</script>
....
<a href="help.html"
onmouseover="return statusMsg('Get Help')"
onmouseout="return statusMsg('')">test</a>


JW


Jul 20 '05 #5
thx

--
George Hester
__________________________________
"Hywel Jenkins" <hy**********@hotmail.com> wrote in message news:MP************************@news.individual.ne t...
In article <Ot********************@twister.nyroc.rr.com>,
he********@hotmail.com says...
<th class="box" colspan="4" align="center" style="cursor: default;" valign="middle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ente r User ID and Password&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img id="img1" name="img1" src="controls.gif" usemap="#map1" align="absbottom" border="0" onmouseover="javascript:if (window.status == 'Help About...'){ window.status='Help About...'; } else if (window.status == 'Leave fast (sort of)'){ window.status = 'Leave fast (sort of)'; } else { window.status =

'Help About...'; } return true;" onmouseout="javascript:

You don't need JavaScript here, for starters.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php

Jul 20 '05 #6
Try your suggestion. It doesn't work. Use an image map and see if you can get the status bar to change to what you want it to be when the mouse is over one of the areas of the map. It won't work.

--
George Hester
__________________________________
"Michael Winter" <M.******@blueyonder.co.invalid> wrote in message news:op**************@news-text.blueyonder.co.uk...
On Sat, 10 Jan 2004 07:04:14 GMT, George Hester <he********@hotmail.com>
wrote:

<snipped code>
Doesn't work. The status is not changed to what I am telling it to be
it is always:

shortcut to help.htm or shortcut to #. There is no way to get
JavaScript to work correctly in this regard. Using the normal rules of
logic. Microsoft Internet Explorer 5.5 SP2 Windows 2000 SP2.


I don't know about anybody else, but for me, that HTML you posted came out
to be an unreadable mess. Please *format* your posts to make them at least
somewhat understandable.

Furthermore, as Mr Jenkins said, don't use

[event name]="javascript: ..."

to specify the language of your intrinsic events. That should be done with
a META element.

Finally, if you are using more than a couple of statements in an intrinsic
event, use a function rather than inline code. It's *so* much easier to
read, and therefore, to debug.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)

Jul 20 '05 #7
George Hester wrote:
It don't work. Try your suggestion. Thanks.


Did some research and it appears that IE doesn't support this in maps. I
have found a nice workaround suggested by Laurent Bugnion from a previous
thread in this newsgroup, see:

http://tinyurl.com/3g9ko
JW

Jul 20 '05 #8
Janwillem Borleffs wrote:
Did some research and it appears that IE doesn't support this in
maps. I have found a nice workaround suggested by Laurent Bugnion
from a previous thread in this newsgroup, see:

http://tinyurl.com/3g9ko


However, it seems to work when you assign both the onmouseover and
onmousemove events. The onmouseover event should be assigned to support
Mozilla.

See: http://www.jwscripts.com/playground/status.php
JW

Jul 20 '05 #9
Hi Jan. The issue is the href attribute in the Area tags. With that attribute the onmouseover and onmouseout events do fire but the windows.status='' doesn't work. The way I found to fix it is use onclick in the <AREA> in place of the href and then the window.status='' in the onmouseover and onmouseout work.

--
George Hester
__________________________________
"Janwillem Borleffs" <jw@jwscripts.com> wrote in message news:40***********************@news.wanadoo.nl...
George Hester wrote:
It don't work. Try your suggestion. Thanks.


Did some research and it appears that IE doesn't support this in maps. I
have found a nice workaround suggested by Laurent Bugnion from a previous
thread in this newsgroup, see:

http://tinyurl.com/3g9ko


JW


Jul 20 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

77 posts views Thread by Hunn E. Balsiche | last post: by
198 posts views Thread by Sridhar R | last post: by
18 posts views Thread by Tim Mierzejewski | last post: by
10 posts views Thread by George Hester | last post: by
1 post views Thread by Neal | last post: by
73 posts views Thread by Martin Johansen | last post: by
9 posts views Thread by Achim Schneider | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.