3 ms·
Basically, this function is just an onMouseOver event, which then inspects the element and displays text from the "desc" tab in the right place. I've been thin
by bobm_kite9 11y ago
Basically, this function is just an onMouseOver event, which then inspects the element and displays text from the "desc" tab in the right place.
I've been thinking for a while that it would be nice if we could add events to the CSS syntax, something like:
a[desc] {
onMouseOver: asideFunction();
}
I _kind_ of worry that this is subverting the purpose of the css, but since it also handles hover and selected behaviour, it seems like the line isn't well-drawn anyway as to where styling ends and where behaviour begins.
What do other people think?
- codingdave 11y agoI think that would be mixing presentation with functionality in a way that would become a maintenance nightmare.