Template:OUC-China.CommonCSS

From 2011.igem.org

(Difference between revisions)
Line 242: Line 242:
$($(this).attr("href")).stop(true,true).animate({opacity:0.9}, 200);
$($(this).attr("href")).stop(true,true).animate({opacity:0.9}, 200);
var bg = $($(this).attr("href")).attr("tag");
var bg = $($(this).attr("href")).attr("tag");
-
              console.log("(-"+tag+"px 0px)");
+
$("#mainnav").animate({backgroundPosition:"(-"+bg+"px 0px)"}, {duration:200});
-
$("#mainnav").animate({backgroundPosition:"(-"+tag+"px 0px)"}, {duration:200});
+
});
});
$(".navitem").click(function(){
$(".navitem").click(function(){

Revision as of 05:22, 5 October 2011