Team:Hong Kong-CUHK/js/common.js

From 2014.igem.org

Revision as of 18:10, 14 October 2014 by Lilyy (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
function changemenu(){if($(".left-menu").is(":visible")){$(".left-menu").hide();$(".right-menu").hide();document.getElementById("ooswitch").style.backgroundColor="rgb(46,43,52)"}else{$(".left-menu").show();$(".right-menu").show();document.getElementById("ooswitch").style.backgroundColor="rgb(228,45,51)"}}$(document).ready(function(){var e=$("
").attr("id","onofflogo");var t=$("<a></a>");var n=$("<img></img>").attr("id","ooswitch").attr("src","PB_LogoOff.gif").attr("height","15").css("backgroundColor","rgb(46,43,52)");t.click(changemenu);t.append(n);e.append(t);$("#globalWrapper").prepend(e)});