[Javascript] How can I change this using CSS
Mike Dougherty
mdougherty at pbp.com
Wed Jul 20 15:30:16 CDT 2005
I second the notion of using functions
On Wed, 20 Jul 2005 13:17:43 -0700
"Ian Skinner" <ian.skinner at bloodsource.org> wrote:
> This is getting pretty complicated for inline calls; can't you do something like to use
>functions here? You are really getting into nested quotes and equal signs and just seems to be
>getting ugly.
>
> The only possible fix I can see is that the event handlers need quotes. If I was hand typing
>the html I would write something like this, if I was for some reason not using a function.
>
> <div onmouseover="this.className=this.className.replace('on','cat');" ...>
>
> Notice the quotes surrounding the value of the onmouseover property. How you get that into a
>doc.write property is beyond me. Unless you can concatenate it together in a variable and then
>pass that variable to the document.write: document.write(divString);
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
More information about the Javascript
mailing list