Forum Moderators: open

Message Too Old, No Replies

Netscape doesnt recognise "id"?

         

BootySlap

7:16 am on Jun 17, 2003 (gmt 0)

10+ Year Member



Im just creating a simple menu something like this:

<div id="popout">
blahblah
</div>

<a href=blah onmouseover="popout.style.visibility='visible';" onmouseout="popout.style.visibility='hidden';">

Now moving over the link makes the popout menu visible in Opera and IE, but NN7 doesnt make it visible! i.e it seems its having trouble recognising the popout id because it works for "this.style...."

Any ideas or need a better explanation?

Cheers!

tedster

7:32 am on Jun 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe try this:

document.getElementById(popout).style.visibility = 'visible';

BootySlap

7:50 am on Jun 17, 2003 (gmt 0)

10+ Year Member



thanks but still no workies :(

and that doesnt work in IE.

Nick_W

7:55 am on Jun 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<a href=blah onmouseover="popout.style.visibility='visible';" onmouseout="popout.style.visibility='hidden';"> 

NN7 is notoriously 'picky'. Could it be that your href value is unquoted?

Nick

BootySlap

8:02 am on Jun 17, 2003 (gmt 0)

10+ Year Member



it works guys thanks i missed the ' in the function

document.getElementById('popout').style.visibility

hartlandcat

8:01 pm on Jun 17, 2003 (gmt 0)

10+ Year Member



No idea why you have that problem, but Netscape most definately does recognise both the id and class attributes.

tedster

10:50 pm on Jun 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i missed the ' in the function

My apology. I missed them.