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