Home  >  Article  >  Web Front-end  >  html css js implementation of Tab label page sample code_HTML/Xhtml_web page production

html css js implementation of Tab label page sample code_HTML/Xhtml_web page production

WBOY
WBOYOriginal
2016-05-16 16:39:541782browse

Copy code
The code is as follows:










<script> <br><!-- <br />function setTab(name,cursel,n){ <br />for(i=1;i<=n;i ){ <br />var menu=document.getElementById(name i); <br />var con=document.getElementById("con_" name "_" i); <br />menu.className=i==cursel?"hover":""; <br />con.style.display=i==cursel?"block":"none"; <br />} <br />} <br />//--> <br></script>







Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn