Sign In/My Account | View Cart  
advertisement

Article:
 CSS 3 Selectors
Subject: Call javascript function from inside a css class...
Date: 2003-06-24 23:08:07
From: Stephane Clinckart
Response to: "Template" Selectors?

Hi,


I want to define and implement function in my css classes.


--> So, if I want to change the functionnality, or add some new functionality, I can do from the .css


The only way I find to do this is :


<style>
a.button5 {background-image:url("button_off.gif");}
a.button5:hover {background-image:url("javascript:alert(this);")}
</style>
</head>


<body>
<tr>
<td>
TEST
</td>
</tr>
</body>


Can I use another way to do it? Is there plan to implement this functionnality in a newer version of the css???


Thanks a lot.


Stephane Clinckart
Email : Clinckar@eib.org


No Previous Message Previous Message Move up to Parent Message Up Next Message Next Message


Sponsored By: