Team:SYSU-China/Team/Member style.js
From 2013.igem.org
Line 4: | Line 4: | ||
$("div.inner_frame").stop(); | $("div.inner_frame").stop(); | ||
$("div.flash_button").stop(); | $("div.flash_button").stop(); | ||
- | $('this + "div.inner_frame | + | $('"+this + " div.inner_frame').animate({width: 450},300,function(){ |
$("div.flash_button").css({"background":"url(https://static.igem.org/mediawiki/2013/3/39/Stein_00.png) no-repeat 80% 20%"}); | $("div.flash_button").css({"background":"url(https://static.igem.org/mediawiki/2013/3/39/Stein_00.png) no-repeat 80% 20%"}); | ||
$("div.flash_button").animate({left:'+=3px'},10); | $("div.flash_button").animate({left:'+=3px'},10); |
Revision as of 01:08, 26 September 2013
$(document).ready(function(){
$("div.flash_button").mouseenter(function(){ $("div.inner_frame").stop(); $("div.flash_button").stop(); $('"+this + " div.inner_frame').animate({width: 450},300,function(){ $("div.flash_button").css({"background":"url() no-repeat 80% 20%"}); $("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").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,function(){ $("div.flash_button").css({"background":"none"}); $("div.inner_frame").animate({width: 0},300); }); }); });