Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts

Saturday, June 11, 2011

jQuery Image RollOver


$(function() {
$('img[data-hover]').hover(function() {
$(this).attr('tmp', $(this).attr('src')).attr('src', $(this).attr('data-hover')).attr('data-hover', $(this).attr('tmp')).removeAttr('tmp');
}).each(function() {
$('').attr('src', $(this).attr('data-hover'));
});;
});



Friday, June 18, 2010

jQuery Pirobox

Need an awesome way to display your pictures on your site. Check out pirobox.

http://www.pirolab.it/pirobox/

Tuesday, May 18, 2010

jQuery: html anchor (slide the scrollbar)

As we know, anchor tags are great to navigate within a page. However it can also be very disorienting. A simple way to resolve this issue is to create a simple animation that slides down to the target section of the page, rather than jumping to it.

Position Absolute has figured out a way to do this in jQuery in 3 simple steps.

Get the source code at position-absolute.com

View a demo of the code in action