[thelist] Javascript inside of Javascript... :)
Christian Anderson
ckanderson at powersurfr.com
Mon Sep 17 08:10:22 CDT 2001
Yeah, moreover.com :)
That mousover thing has to go in the <td> tag. I guess I should have
mentioned that... so when I try it as <TD bgcolor=EEEEFF
onMouseover="onColor(this);" onMouseout="offColor(this);"> it doesnt work.
Why why why?? :)
www.photokyo.com
> >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+'"');
More information about the thelist
mailing list