Suppose I want to execute the same routine when "mouseover" is fired for
three diffent P elements:

<p name="p1" onmouseover="myRoutine(this)">....</p>
<p name="p2" onmouseover="myRoutine(this)">....</p>
<p name="p3" onmouseover="myRoutine(this)">....</p>


Is it possible to assign this behaviour using classes?
<p name="p1" class="myClass">....</p>
<p name="p2" class="myClass">....</p>
<p name="p3" class="myClass">....</p>

and then myClass.onmouseover = ......


Thanks!

Re: Assign behavior to class by Murray

Murray
Fri Jun 03 11:20:24 CDT 2005

No.

--
Murray
============

"Kirsten" <norep@norep.com> wrote in message
news:%23VixBeFaFHA.4032@TK2MSFTNGP10.phx.gbl...
> Suppose I want to execute the same routine when "mouseover" is fired for
> three diffent P elements:
>
> <p name="p1" onmouseover="myRoutine(this)">....</p>
> <p name="p2" onmouseover="myRoutine(this)">....</p>
> <p name="p3" onmouseover="myRoutine(this)">....</p>
>
>
> Is it possible to assign this behaviour using classes?
> <p name="p1" class="myClass">....</p>
> <p name="p2" class="myClass">....</p>
> <p name="p3" class="myClass">....</p>
>
> and then myClass.onmouseover = ......
>
>
> Thanks!
>
>



Re: Assign behavior to class by Kevin

Kevin
Fri Jun 03 11:47:01 CDT 2005

I ain't got no class either.

--
;-),

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Murray" <forums@HAHAgreat-web-sights.com> wrote in message
news:uYZsvhFaFHA.2308@TK2MSFTNGP14.phx.gbl...
> No.
>
> --
> Murray
> ============
>
> "Kirsten" <norep@norep.com> wrote in message
> news:%23VixBeFaFHA.4032@TK2MSFTNGP10.phx.gbl...
>> Suppose I want to execute the same routine when "mouseover" is fired for
>> three diffent P elements:
>>
>> <p name="p1" onmouseover="myRoutine(this)">....</p>
>> <p name="p2" onmouseover="myRoutine(this)">....</p>
>> <p name="p3" onmouseover="myRoutine(this)">....</p>
>>
>>
>> Is it possible to assign this behaviour using classes?
>> <p name="p1" class="myClass">....</p>
>> <p name="p2" class="myClass">....</p>
>> <p name="p3" class="myClass">....</p>
>>
>> and then myClass.onmouseover = ......
>>
>>
>> Thanks!
>>
>>
>
>



Re: Assign behavior to class by Mike

Mike
Fri Jun 03 12:01:04 CDT 2005

No, classes refers to styling, not scripts


"Kirsten" <norep@norep.com> wrote in message
news:%23VixBeFaFHA.4032@TK2MSFTNGP10.phx.gbl...
: Suppose I want to execute the same routine when
"mouseover" is fired for
: three diffent P elements:
:
: <p name="p1" onmouseover="myRoutine(this)">....</p>
: <p name="p2" onmouseover="myRoutine(this)">....</p>
: <p name="p3" onmouseover="myRoutine(this)">....</p>
:
:
: Is it possible to assign this behaviour using classes?
: <p name="p1" class="myClass">....</p>
: <p name="p2" class="myClass">....</p>
: <p name="p3" class="myClass">....</p>
:
: and then myClass.onmouseover = ......
:
:
: Thanks!
:
:



Re: Assign behavior to class by Kevin

Kevin
Fri Jun 03 13:50:39 CDT 2005

I ain't got no style neither.

--
;-),

Kevin Spencer
Microsoft MVP
.Net Developer
Ambiguity has a certain quality to it.

"Mike Mueller" <I-have-one@somewhere.else> wrote in message
news:e$z4U3FaFHA.3184@TK2MSFTNGP15.phx.gbl...
> No, classes refers to styling, not scripts
>
>
> "Kirsten" <norep@norep.com> wrote in message
> news:%23VixBeFaFHA.4032@TK2MSFTNGP10.phx.gbl...
> : Suppose I want to execute the same routine when
> "mouseover" is fired for
> : three diffent P elements:
> :
> : <p name="p1" onmouseover="myRoutine(this)">....</p>
> : <p name="p2" onmouseover="myRoutine(this)">....</p>
> : <p name="p3" onmouseover="myRoutine(this)">....</p>
> :
> :
> : Is it possible to assign this behaviour using classes?
> : <p name="p1" class="myClass">....</p>
> : <p name="p2" class="myClass">....</p>
> : <p name="p3" class="myClass">....</p>
> :
> : and then myClass.onmouseover = ......
> :
> :
> : Thanks!
> :
> :
>
>



Re: Assign behavior to class by Steve

Steve
Fri Jun 03 14:04:52 CDT 2005

You can manipulate styles with a mouseover event, but you can't fire a script function with a style
"event."

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

"Kirsten" <norep@norep.com> wrote in message news:%23VixBeFaFHA.4032@TK2MSFTNGP10.phx.gbl...
> Suppose I want to execute the same routine when "mouseover" is fired for
> three diffent P elements:
>
> <p name="p1" onmouseover="myRoutine(this)">....</p>
> <p name="p2" onmouseover="myRoutine(this)">....</p>
> <p name="p3" onmouseover="myRoutine(this)">....</p>
>
>
> Is it possible to assign this behaviour using classes?
> <p name="p1" class="myClass">....</p>
> <p name="p2" class="myClass">....</p>
> <p name="p3" class="myClass">....</p>
>
> and then myClass.onmouseover = ......
>
>
> Thanks!
>
>



Re: Assign behavior to class by Steve

Steve
Fri Jun 03 14:09:14 CDT 2005

Example:

<td class="class1" onmouseover="this.className='class2'" onmouseout="this.className='class1'"
onmousedown="this.className='class3'">

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

"Kirsten" <norep@norep.com> wrote in message news:%23VixBeFaFHA.4032@TK2MSFTNGP10.phx.gbl...
> Suppose I want to execute the same routine when "mouseover" is fired for
> three diffent P elements:
>
> <p name="p1" onmouseover="myRoutine(this)">....</p>
> <p name="p2" onmouseover="myRoutine(this)">....</p>
> <p name="p3" onmouseover="myRoutine(this)">....</p>
>
>
> Is it possible to assign this behaviour using classes?
> <p name="p1" class="myClass">....</p>
> <p name="p2" class="myClass">....</p>
> <p name="p3" class="myClass">....</p>
>
> and then myClass.onmouseover = ......
>
>
> Thanks!
>
>