Change the color of body background when hovering on links
-
Hi Everybody,
I put the following script
<script>
jQuery(document).ready(function(){
jQuery("a").hover(function(){
jQuery("body").css('background-color','red');
});
jQuery("a").mouseleave(function(){
jQuery("body").css('background-color','white');
});});
</script>in “Custom <head> content” in order to change the color of body background when hovering on links.
That script only works with “a” links of nav menu, while for the “a” links in the #main-region we have problems.Could you help us resolve them?
It seems there is a conflict between loading of the dynamic content and our jquery event, isn’t it?Thanks
-
Hello baumiao please take a look at the other post where I answered your question:
http://laythemeforum.com/topic/741/change-body-bgcolor-on-hovering-a-a-link/2Sorry for the late reply :O