[thelist] Javascript inside of Javascript... :)
Anthony Baratta
Anthony at Baratta.com
Mon Sep 17 00:28:02 CDT 2001
>
>Here is a sample of the javascript code:
>
>document.writeln("<TR><TD bgcolor=EEEEFF><A
>HREF='"+global_article[counter].url+"' >");
> document.writeln('<FONT SIZE='+headline_font_size+'
>FACE="'+headline_font+'" COLOR="#'+headline_fgcolor+'"');
>
>document.writeln('>'+global_article[counter].headline_text+'...</FONT></A><b
>r>');
>
>and the mouseover thing I want to include in there is:
>
>onMouseover="onColor(this);" onMouseout="offColor(this);"
Moreover.com, eh? ;-)
Just sneak it in like this:
document.writeln("<TR><TD bgcolor=EEEEFF><A
HREF='"+global_article[counter].url+"' ");
document.writeln('onMouseover="onColor(this);"
onMouseout="offColor(this);"'+'>');
document.writeln('<FONT SIZE='+headline_font_size+'FACE="'+headline_font+'"
COLOR="#'+headline_fgcolor+'"');
---
Anthony Baratta
President
Keyboard Jockeys
"Conformity is the refuge of the unimaginative."
More information about the thelist
mailing list