Hi there!
I am trying to add the fading effect with jQuery on my site like in
But cannot make it work.
I got some lines from Radiant but cannot make it work on my site.
Add this into a custom.js:
jQuery(function($){
jQuery("a").fadeTo("slow", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
jQuery("a").hover(function(){
jQuery(this).fadeTo("fast", 0.5); // This should set the opacity to 100% on hover
},function(){
jQuery(this).fadeTo("fast", 1.0); // This should set the opacity back to 30% on mouseout
});
});
After that, open your functions.php and add the following line
function my_scripts() { ?>
<script src="<?php bloginfo('url'); ?>custom.js"
type="text/javascript"></script>
<?php }
Make sure your custom.js is saved in the root directory.
But cannot make it work.
I am using BFNAV.
Need some help please!