Team:SUSTC-Shenzhen-A/tutorial
From 2012.igem.org
(Difference between revisions)
Line 235: | Line 235: | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
Line 351: | Line 334: | ||
+ | |||
+ | <SCRIPT type=text/javascript> | ||
+ | function selectTag(showContent,selfObj){ | ||
+ | // 标签6a8a.com | ||
+ | var tag = document.getElementById("tags").getElementsByTagName("li"); | ||
+ | var taglength = tag.length; | ||
+ | for(i=0; i<taglength; i++){ | ||
+ | tag[i].className = ""; | ||
+ | } | ||
+ | selfObj.parentNode.className = "selectTag"; | ||
+ | // 标签内容 | ||
+ | for(i=0; j=document.getElementById("tagContent"+i); i++){ | ||
+ | j.style.display = "none"; | ||
+ | } | ||
+ | document.getElementById(showContent).style.display = "block"; | ||
+ | } | ||
+ | </SCRIPT> | ||
Revision as of 06:59, 16 September 2012
|
|