Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] How can I change this using CSS
- From: mdougherty at pbp.com (Mike Dougherty)
- Subject: [Javascript] How can I change this using CSS
- Date: Wed Jul 20 15:28:07 2005
I second the notion of using functions
On Wed, 20 Jul 2005 13:17:43 -0700
"Ian Skinner" <ian.skinner@xxxxxxxxxxxxxxx> 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
- References:
- [Javascript] How can I change this using CSS
- From: Ian Skinner
- [Javascript] How can I change this using CSS
- Prev by Date: [Javascript] How can I change this using CSS
- Next by Date: [Javascript] How can I change this using CSS
- Previous by thread: [Javascript] How can I change this using CSS
- Next by thread: [Javascript] How can I change this using CSS
- Index(es):