weep

G

George Hester

<th class="box" colspan="4" align="center" style="cursor: default;" valign="middle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enter 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.defaultStatus; return true;/>
<map name="map1" onmouseover="JavaScript: return true; }" onmouseout="JavaScript:window.status=window.defaultStatus; 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.defaultStatus; 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.defaultStatus; 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.
 
J

Janwillem Borleffs

George said:
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
 
H

Hywel Jenkins

<th class="box" colspan="4" align="center" style="cursor: default;" valign="middle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enter 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.
 
M

Michael Winter

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
 
G

George Hester

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 said:
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
 
G

George Hester

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top