Team:SYSU-China/Team/Member style.js
From 2013.igem.org
$(document).ready(function(){
$("div.flash_button").mouseenter(function(){ $("div.inner_frame").stop(); $("div.flash_button").stop(); $("div.inner_frame").animate({width: 600},300,function(){ $("div.flash_button").css({"background":"url() no-repeat 90% 10%"}); $("div.flash_button").animate({left:'+=3px'},10); $("div.flash_button").animate({left:'-=3px'},10); $("div.flash_button").animate({top:'+=3px'},10); $("div.flash_button").animate({top:'-=3px'},10); }); }); $("div.flash_button").mouseout(function(){ $("div.inner_frame").stop(); $("div.flash_button").stop(); $("div.flash_button").css({"background":"none"}); $("div.inner_frame").animate({width: 0},300); }); });