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).