/ Published in: jQuery
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// back to top button
$(function() {
$('#back_to_top').click(function() {
$('body,html').animate({scrollTop:0},800);
});
});
//menu fadein/fadeout anmiation.
$(function() {
$('ul li ul', this).hide();
var enterEvent = function() {
$('ul', this).fadeIn();
};
var leaveEvent = function() {
$('ul', this).hide();
};
$('#nav ul li').hover(enterEvent, leaveEvent);
});
// gallery menu open a new window
$(document).ready(function(){
$("#nav li.last").click(function(){
window.open('http://www.steveparishgallery.com');
return false;
});
});
Comments
 Subscribe to comments
                    Subscribe to comments
                
                