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