silverstripe-cms/javascript/hover.js

13 lines
203 B
JavaScript
Raw Normal View History

function hover_over() {
Element.addClassName(this, 'over');
}
function hover_out() {
Element.removeClassName(this, 'over');
}
hover_behaviour = {
onmouseover : hover_over,
onmouseout : hover_out
}