The script supports complex selectors (e.g., DIV.gallery A > IMG.thumbnail), proper cascade behaviour (as defined in REC-CSS1 and CSS21) and more.
A.popup { onclick: window.open(this.href); return false }
<a href="http://somesite"
onclick="onclick: window.open(this.href); return false">Our Link</a>
<a class="popup" href="http://somesite">Our Link</a>
A.popup { onclick: window.open(this.href, "", "toolbar=no"); return false }
The EventX code alone is ~4k (minimized). The basic script is ~5.5k (including comments and class functions). Below you can download a distribution package that contains the script itself, a demo page and a blank HTML template to get started.
Supports: IE5.01+, Firefox, Konqueror, Opera 7.5+, IE5 for Mac.
syntaxAlert option to check rule syntax (for setup and testing).EventX_09.zip is distributed under a Creative Commons License and is Copyright 2005 Shawn Brown. The manner of attribution that I request is minimal: don't remove my copyright or contact information from code comments.
| Version Number | Release Date | Features/Changes |
|---|---|---|
| 0.9 | 10-Oct-2005 |
|
| 0.8b | 27-Jun-2005 |
|
|
0.8 (first release) |
14-May-2005 |
|
The next release, EventX v1.0, will feature internal rule-grouping and more optimized DOM-tree walking. The rule syntax and ruleSets array interface will remain unchanged.