|
-
Feb 22nd, 2001, 03:59 PM
#1
Thread Starter
Fanatic Member
heres the code:
***********
<a href="#"onMouseOver="showMenu('NorthLayer')>
***********
function showMenu(menuName)
if(ns)
{
eval("document" + layerRef + "['" + menuName + "']" + styleRef + ".visibility = '" + showRef + "'");
*******
this is where the layerRef,styleRef,showRef come from
if (ns){ // for netscape
layerRef = ".getElementById";
styleRef = ".style";
showRef = "visible";
hideRef = "hidden";
}
********
in IE this(the ie version,very simmalar to this) I get dynamic dropdown menus
in Netscape I get nothing. this is Netscape 6 I am trying to get this to work in.
I can get an alert to show up from the showMenu function so I know I am reaching it, but my layer just won't show up..
any suggestions?
thanks
-
Feb 25th, 2001, 04:32 PM
#2
Fanatic Member
I think this is your problem:
styleRef = ".style";
I do not believe Netscape uses 'style'.
Take the "." out of ".visibility"
change styleRef = ".";
In your IE code use styleRef = ".style."; with a "." on either side of style.
-
Feb 26th, 2001, 01:13 PM
#3
Thread Starter
Fanatic Member
well,
I sortof got it to work, the code now looks like this
eval("document.getElementById('NorthLayer').style.left = '" + position + "px" +"'");
the problem I am having now is the images don't allways 'show' upon Mouseover and Mouseoff.
I meen, they swap just fine then, randomly they will just 'disapear'.
I don't get it
thanks for your help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|