3 ms·
It's trivially implemented in something like Jquery. Just give related elements the same class name. $('.someClass-xx') .mouseover(function () { $('.so
by noblethrasher 18y ago
It's trivially implemented in something like Jquery. Just give related elements the same class name.
$('.someClass-xx')
.mouseover(function () {
$('.someClass-xx').each(function () {/* Do Stuff */})
})
.mouseout(function () {
$('.someClass-xx').each(function () {/* Do Stuff */})
})
I only say it's better to implement in js because css forces you to tie behavior to markup in this case. Good implementation separates content/markup (html), presentation (css), and behavior (js).
- hellyeahdude 18y agoWow thats great! Thanks for that! Great code!