Connecting Tech Pros Worldwide Help | Site Map

onmouseover only activates in firefox if I reload

Martin Chen
Guest
 
Posts: n/a
#1: Dec 6 '05
First, apologies up front, I just started futzing with javascript so be
prepared for naivate.
I have a web page, in a frame set, that has a table-menu bar in javascript.
It relies on the "movein" function attached to "onmouseover" to trigger the
chaninging of the elements background color, text color, and pointer when
the mouse moves over an element. On IE the code below works fine. In
firefox none of the movein function doesn't seem to be triggered (none of
the above effects occur) UNLESS I force a reload of the frame. Then
everyting works fine. Any ideas?

-----------------------------------------------
<script type="text/javascript">
<!--
function movein(which,html){
which.style.background='#4376A9'
which.style.color='#FFFF00'
which.style.cursor='pointer'

}
-->
</script>
-------------------------------------------
.....

Here I have one of the elments of a table that uses this function:
------------------------------
<td width="184" font color="#FFFFFF" class="menu" bordercolor="#C0C0C0"
id="choice1" style="background-color:#336699; cursor:pointer; color:FFFFFF;
font-size:10pt;"
onmouseover="movein(choice1,' ')"
onmouseout="moveout(choice1)"
onclick="parent.main.location.href='frmain.htm'">
Home
</td>

-------------------


Martin Chen
Guest
 
Posts: n/a
#2: Dec 6 '05

re: onmouseover only activates in firefox if I reload


The page in question was the "contents" page of my frame set. If I give
that URL directly (so I'm executing the contents frame with the menubar
outside of the frameset) then it all works fine. So I guess there's some
focus type issue the frames or something and this interacts with javascript
in some odd way but only for firefox?


Closed Thread