");
rollingDiv.bind("mouseover", function() {
$(this).stopRolling();
});
rollingDiv.bind("mouseout", function() {
$(this).resumeRolling();
});
var opacity = 0.6;
$('img', rollingDiv.getRollingItems()).css("opacity", opacity);
$('img', rollingDiv.getRollingItems()).hover(
function() {
$(this).animate({
width: "140",
height: "110",
opacity: 1
}, 300);
$("#rollingHeadComment").html("
" + $(this).attr('alt') + "");
},
function() {
$(this).animate({
width: "130",
height: "100",
opacity: opacity
}, 300);
$("#rollingHeadComment").html("
...");
}
);
/*
* Millisecond of rolling animation
* Millisecond of viewing
* The frame count of animation
*/
rollingDiv.startRolling(30, 0, 50);
});