Forum Moderators: not2easy
<style type="text/css">
img.info {
onload:document.getElementById('h44').src='http://www.x.com/ms.php?u=foobar;
}
</style>
<img src="location" id="h44" class="info">
I want to be able to have the onload event handler do different things depending on the class that I assign.
Can event handlers be defined in css?
Can I include the id tag in the CSS?
Can any possible attribute that a particular tag can have be defined in a CSS script?