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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login