Changing text
by John Starkey <jstarkey(at)advancecreations.com>
|
| Date: |
Mon, 6 Nov 2000 23:51:44 -0700 (MST) |
| To: |
hwg-languages(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
I've been fighting this for two hours. Hep me, hep me???
I'm trying to toggle a line of text between +1 and +2 using JS.
function togLit()
{
if (a==0 || a=1)
{
name.outerHTML="<font size=+1>HELLLLP</font>";
a=1;
}
else
{
name.outerHTML="<font size=+2>HELLLLP</font>";
a=2;
}
}
It's actually about 80 lines of code total, but well....
Anyway. The second time around it won't change the outerHTML. Is there a
better way to do this? It seems that name.outerHTML!="name.outerHTML" once
you've used it. Does it become something else? Like mod.name.outerHTML or
something, in JS's eyes.
Thanks,
John
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.