U
Une Bévue
Say i've two selector/property :
td#content dl dt {background-color: <#content dl dt color>,
thead tr { background-color: <thead tr color> }
i know how to set colors individually but i'd like rather having a
mechanism doing it "for free" ;-)
that's to say when i set a new color to the selector 'td#content dl dt',
i want some kind of special event handler firing an event in order to
set the 'thead tr' color automatically, using JS of course.
that's what i call 'binding'.
i presume this isn't possible using selectors but rather using DOM
elemnt right ?
then, perhaps i'm dreaming, i could attach a way to fire an event on a
particular 'td#content dl dt' DOM's Element saying
'contentDlDtColorChanged' and attach an event handler to bind the color
of this Element to other elements provided i do have an Array saying
what are the other element to bind ?
td#content dl dt {background-color: <#content dl dt color>,
thead tr { background-color: <thead tr color> }
i know how to set colors individually but i'd like rather having a
mechanism doing it "for free" ;-)
that's to say when i set a new color to the selector 'td#content dl dt',
i want some kind of special event handler firing an event in order to
set the 'thead tr' color automatically, using JS of course.
that's what i call 'binding'.
i presume this isn't possible using selectors but rather using DOM
elemnt right ?
then, perhaps i'm dreaming, i could attach a way to fire an event on a
particular 'td#content dl dt' DOM's Element saying
'contentDlDtColorChanged' and attach an event handler to bind the color
of this Element to other elements provided i do have an Array saying
what are the other element to bind ?