Team:SYSU-China/Team/Member style.js

From 2013.igem.org

(Difference between revisions)
Line 5: Line 5:
$("div.flash_button").stop();
$("div.flash_button").stop();
$("div.inner_frame").animate({width: 600},300,function(){
$("div.inner_frame").animate({width: 600},300,function(){
-
$("div.flash_button").css({"background":"url(https://static.igem.org/mediawiki/2013/3/39/Stein_00.png) no-repeat 90% 10%"});
+
$("div.flash_button").css({"background":"url(https://static.igem.org/mediawiki/2013/3/39/Stein_00.png) no-repeat 90% 20%"});
$("div.flash_button").animate({left:'+=3px'},10);
$("div.flash_button").animate({left:'+=3px'},10);
$("div.flash_button").animate({left:'-=3px'},10);
$("div.flash_button").animate({left:'-=3px'},10);

Revision as of 05:59, 25 September 2013

$(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(Stein_00.png) no-repeat 90% 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").css({"background":"none"}); $("div.inner_frame").animate({width: 0},300); }); });