to avoid inevitable cross-browser compatibility issue's with javascript/css I would recommend using jQuery.
For example, to highlight an element via the jQuery framework this is all that it takes...
$("div").click(function () {
$(this).effect("highlight", {}, 3000);
});