Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with Element behaviors

0 views
Skip to first unread message

Philip

unread,
Aug 17, 2006, 1:10:02 PM8/17/06
to
Hi,

I want to encapsulate code to change BUTTON elements on a webpage in one
place.

Here is the code in my HTC FIle:
>>> CODE >>>
<public:attach event=onmouseover
onevent="this.className='SAFButtonRollover';"/>
<public:attach event=onmouseout onevent="this.className='SAFButton';" />
<public:attach event=onmousedown onevent="this.className='SAFButtonDown';" />
<public:attach event=onmouseup onevent="this.className='SAFButton';" />
<<< END <<<

The different CSS Classes are defined in a global stylesheet.

And in the code for each button I have added this style attribute with the
url:

class="SAFButton; behavior:url(ClientScripts/behaviours/SAFButton.htc);"

but it is not working.

How can I have my buttons have the class SAFButton, and use the behavior to
change all the styles when the events are triggered?

Also, does the url need to be in quotes?

Thanks for any help or advice.

Philio

0 new messages