How do you put css inside a javascript?
by Danny Griffin <danny(at)tillmanallengreer.com>
|
Date: |
Fri, 05 May 2000 14:34:44 -0400 |
To: |
Hwg-Techniques(at)mail.hwg.org |
|
todo: View
Thread,
Original
|
|
I am using a javascript that scrolls HTML code vertically. The HTML must
be entered in the following format:
var messages=new Array()
messages[0]="Message One Goes Here."
messages[1]="Message Two Goes Here."
messages[2]="Message Three Goes Here."
messages[3]="And so on ..."
I am trying to format those messages with CSS. I have placed the
javascript in a table cell and placed a CLASS="name" in the <TD> tag. That
works fine for IE, but Netscape loses the formatting after the first message.
I have also tried putting <SPAN> tags inside the quotation marks, before
and after the messages. However, Netscape will not read the text at all in
that scenario.
Any ideas?
Thanks in advance,
Danny Griffin
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA