Team:Amsterdam/Header

From 2011.igem.org

(Difference between revisions)
Line 140: Line 140:
.paging a:hover {font-weight: bold;}
.paging a:hover {font-weight: bold;}
 +
/On Hover
 +
$(".image_reel a").hover(function() {
 +
    clearInterval(play); //Stop the rotation
 +
}, function() {
 +
    rotateSwitch(); //Resume rotation timer
 +
});
 +
//On Click
 +
$(".paging a").click(function() {
 +
    $active = $(this); //Activate the clicked paging
 +
    //Reset Timer
 +
    clearInterval(play); //Stop the rotation
 +
    rotate(); //Trigger rotation immediately
 +
    rotateSwitch(); // Resume rotation timer
 +
    return false; //Prevent browser jump to link anchor
 +
});
</style>
</style>

Revision as of 14:17, 19 August 2011