Team:Tsinghua/header
From 2011.igem.org
(Difference between revisions)
Line 37: | Line 37: | ||
var bc = document.getElementById("bodyContent"); | var bc = document.getElementById("bodyContent"); | ||
var hc = document.getElementById("catlinks"); | var hc = document.getElementById("catlinks"); | ||
+ | if(hc == null) | ||
+ | { | ||
+ | alert("d"); | ||
+ | } | ||
bc.removeChild(hc); | bc.removeChild(hc); | ||
$('li[id*="nav-"]').hover(function(){ | $('li[id*="nav-"]').hover(function(){ | ||
var dpad = 0; | var dpad = 0; | ||
- | + | var bc = document.getElementById("bodyContent"); | |
+ | var hc = document.getElementById("catlinks"); | ||
+ | bc.removeChild(hc); | ||
dpad = Math.round($(this).attr("offsetWidth")/19); | dpad = Math.round($(this).attr("offsetWidth")/19); | ||
if(isNaN(dpad)) | if(isNaN(dpad)) |
Revision as of 15:15, 19 August 2011