Template:OUC-China.CommonCSS

From 2011.igem.org

(Difference between revisions)
 
(3 intermediate revisions not shown)
Line 83: Line 83:
left: 0;
left: 0;
z-index:1111;
z-index:1111;
 +
                overflow: hidden;
}
}
#mainnavbar {
#mainnavbar {
Line 176: Line 177:
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/Notebook\">Notebook & Data<\/a><\/li>";
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/Notebook\">Notebook & Data<\/a><\/li>";
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/aadb\">Experiments on HB101<\/a><\/li>";
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/aadb\">Experiments on HB101<\/a><\/li>";
-
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/fv\">Function Verification<\/a><\/li>";
+
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/fv\">Experiments on devices<\/a><\/li>";
-
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/2011\">2011 Biobrick standardization and documentation<\/a><\/li>";
+
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/2011\">2011 OUC Wuxingbricks documentation<\/a><\/li>";
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/Finalresults\">Final results<\/a><\/li>";
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/Finalresults\">Final results<\/a><\/li>";
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/Judging\">Judging form<\/a><\/li>";
strVar += " <li><a href=\"\/Team:OUC-China\/Result\/Judging\">Judging form<\/a><\/li>";
Line 227: Line 228:
var hideSubNav = function(){
var hideSubNav = function(){
$(".navmenus").stop(true,true).animate({opacity:0}, 200);
$(".navmenus").stop(true,true).animate({opacity:0}, 200);
 +
        $(".navmenus").css("height",10);
  if((window.location+"").match("Team:OUC-China/Team")){
  if((window.location+"").match("Team:OUC-China/Team")){
  $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/3/3b/OUC-China.daohang.jpg.jpg) -840px 0 no-repeat");
  $("#mainnav").css("background","url(https://static.igem.org/mediawiki/2011/3/3b/OUC-China.daohang.jpg.jpg) -840px 0 no-repeat");
Line 244: Line 246:
$(".navitem").mouseenter(function(){
$(".navitem").mouseenter(function(){
$(".navmenus").stop(true,true).animate({opacity:0}, 200);
$(".navmenus").stop(true,true).animate({opacity:0}, 200);
 +
                $(".navmenus").css("height","auto");
$($(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");
Line 257: Line 260:
hideSubNav();
hideSubNav();
});
});
-
$(".mainnavbar").mouseleave(function(){
+
$(".mainnav").mouseleave(function(){
hideSubNav();
hideSubNav();
});
});

Latest revision as of 15:41, 5 October 2011