RePost: Display Property Problem with Netscape
by Andy & Victoria <syndicate(at)ncweb.com>
|
Date: |
Tue, 30 Apr 2002 15:38:14 -0400 |
To: |
hwg-style(at)hwg.org |
|
todo: View
Thread,
Original
|
|
Sorry, about the second repost.
This correspodence includes the HTML tags which was omitted in my first
correspondence:
I'm trying to fiqure out how to script Netscape 6.2 to implement CSS2
Display Property dynamically.
Below is a simple script. When the browser first renders the document, it
displays:
"This is a SPAN in a sentence.", then a button below which reads "Erase".
So far, so good.
When the button is pressed, "This is a SPAN " should be dynamically erased,
and the remaining sentence
"in a sentence" should shift over to the left in its place. This code works
fine as expected with Explorer 6,
but not with Netscape. In fact, nothing happens when the button is pressed.
After typing "javascript"; into the URL box, the following error message
appears:
"Error: oSpan is not defined". oSpan is defined as written in the tag:
<SPAN ID="oSpan">.
Does anyone know what the error can be?
Thanks Again,
Andy
<span id="oSpan">This is a SPAN </span>in a sentence.
<form>
<input type="button" value="change" onclick="oSpan.style.display='none'">
</form>
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA