PDA

View Full Version : onmouseover/out in netscape's layer


kdjoergensen
09-26-2000, 04:35 PM
Technically this should work in netscape, as onmouseover/onmouseout are recognized eventhandlers for the NS4.0+ DOM.
<LAYER NAME="DIVID" onmouseover="this.bgcolor='red'" onmouseout="this.bgcolor='blue'"> LAYER TEXT</LAYER>

It will chance color upon mouseover, but I have much difficulty in getting it to change back. It appear as if the new color 'sticks' and wont change back. Should mention, that the layer tag is put inside a table cell, and I am using IE's dom to change the background of the table cell itself (as IE's dom let you do that), whereas netscape will not. Since IE ignores the Layer Tag, I had hoped that the layer background change would have been able to act as 'stand in'.
Any one have had similiar problems ? or do you have a working script where netscape layers change background color onmouseover/out in tables ?

Kenneth

Isaac
09-27-2000, 03:31 AM
Your only problem is that you have the layers inside a table. Netscape dosen't mix tables a layers very well for some reson, but if you can put the layers outside a table then it should work just fine for you.
Sorry, but that's the facts.



------------------
Isaac
Big Resources Inc. (http://www.bigresources.com)
Big Resource Network
isaac@123webmaster.net
ICQ# 71401549