Forum Moderators: open

Message Too Old, No Replies

Nestcape 7 and visibility

help

         

ARTmi

4:00 pm on Feb 6, 2004 (gmt 0)



Hi!
I have a problem with span visibility in netscape 7. I have hidden span in page and I try to show and hide it from script.
I have tried ex.:
document.getElementById('span_name').visibility = 'visible';

BlobFisk

4:18 pm on Feb 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, ARTmi!

Try removing the underscore from your ID name and see if it works. AFAIK, underscores are not permitted in ID or Class names (nor can they start with a number). Also, check the case to make sure it matches in your CSS, in your HTML and in your JS.

HTH

dnimrodx

7:52 pm on Feb 6, 2004 (gmt 0)

10+ Year Member



Instead of:

[i]document.getElementById('span_name').visibility = 'visible';[/i]

use

document.getElementById('span_name').visibility = [b]'show'[/b]; 

I am pretty sure it will work.

BTW: Allow me to Welcome you to Webmaster World!

moonbather

12:57 pm on Feb 9, 2004 (gmt 0)

10+ Year Member



Soyez le bienvenu!


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

BlobFisk

2:00 pm on Feb 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



dnimrodx,

According to the W3C CSS2.1 specs, the visibility property [w3.org] takes the following values:

  • visible
  • hidden
  • collapse
  • inherit

I have seen show used in the past, but visible is what I've always used without problem.

HTH

dnimrodx

4:07 pm on Feb 9, 2004 (gmt 0)

10+ Year Member



I have seen show used in the past, but visible is what I've always used without problem.

My apologies. I had not noticed the post was about Netscape v7 as I was posting about version 4, thus not following the W3C CSS2 specs.

It had been a looong day, yesterday, when I posted that -- too much caffeine and no sleep at all! :)