Connecting Tech Pros Worldwide Help | Site Map

onmouseover only activates in firefox if I reload

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 6th, 2005, 04:55 PM
Martin Chen
Guest
 
Posts: n/a
Default onmouseover only activates in firefox if I reload

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>

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



  #2  
Old December 6th, 2005, 05:35 PM
Martin Chen
Guest
 
Posts: n/a
Default but seems to work w/o frames

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?


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.