Home > Web Front-end > HTML Tutorial > 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
Release: 2016-05-16 16:39:54
Original
1802 people have browsed it

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>







Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template