For Question 1:
Give your images a class (for example scrolling_image
) and on mouse over increase the size, and mouse out will return it back to normal:
$( "scrolling_image" ).mouseover(function() {
$(this).animate({
"width": "300px",
"height": "300px"
}, 2000, function() {
// Animation complete.
});
});
$( "scrolling_image" ).mouseout(function() {
$(this).animate({
"width": "100px",
"height": "100px"
}, 2000, function() {
// Animation complete.
});
});
As for your second question, please read the Documentation: