If you ever wanted to highlight a

block on your website while hovering over it – this two code snippets might the solution for your problem:



... content of the div block you want to highlight ...

The implementation of the two JavaScript functions for the onmouseover/out events should look like this:


function boxOffHover(divBlock) {
divBlock.style.background='#cccccc';
}
function boxOnHover(divBlock) {
divBlock.style.background='#f3f3f3';
}


SPEAK / ADD YOUR COMMENT
Comments are moderated.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Return to Top