Today to put your own website tutorial channel to add a page tab effect, Tab tab function is in the same size space can put more content. Let's take a look at the tab code below.
<!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/ Xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title> webpage tab Code (JS+CSS tutorial compatible IE FF) </title>
<script>
function Ntabs (thisobj,num) {
if (Thisobj.classname = = "active") return;
var tabobj = thisobj.parentnode.id;
var tablist = document.getElementById (tabobj). getElementsByTagName ("Li");
For (i=0 i <tablist.length; i++) {
if (i = = num) {
Thisobj.classname = "active";
document.getElementById (tabobj+ "_content" +i). Style.display = "block";
}else{
Tablist[i].classname = "normal";
document.getElementById (tabobj+ "_content" +i). Style.display = "None";
}
}
}
</script>
<style type= "Text/css" >
a{
font-size:12px;
}
/********tab tab Change end**********/
Ul,li {margin:0px;padding:0px;}
#wentab0 {float:right; width:950;}
#wentab0 li{width:164px; line-height:23px; height:31px; float:left; text-align:center; margin-right:0px; list-style-type:none;padding:0px;}
#wentab0. active{background: #4e9b00; /*background:url (yun_qi_img/topbg.jpg); * * FONT-SIZE:12PX; Color: #fff; Font-weight:bold; Cursor:pointer;}
#wentab0. normal{background: #e6ffe6;/*background:url (yun_qi_img/titlebg.jpg); * * FONT-SIZE:12PX; cursor:pointer;}
. tle{width:100%; margin:0px Auto;
. tabcr{Clear:both; width:930px;padding:5px 10px 5px 25px; line-height:24px;}
. TABCR a{
Display:block;
width:117px;
Float:left;
Overflow:hidden;
}
. PHP tutorials tab{height:110px;
. bordercolor{border:1px solid #bac9b3;}
</style>
<body>
<div class= "Phptab bordercolor" >
<div class= "Tle" >
<ul id= "Wentab0" >
<li class= "Active" Onmouseo Tutorial ver= "Ntabs (this,0);" >php Foundation </li>
<li class= "Normal" onmouseover= "Ntabs (this,1);" >php Advanced </li>
<li class= "Normal" onmouseover= "Ntabs (this,2);" >php Database Tutorials </li>
<li class= "Normal" onmouseover= "Ntabs (this,3);" >php xml</li>
<li class= "Normal" onmouseover= "Ntabs (this,4);" >php and Ajax</li>
<li class= "Normal" onmouseover= "Ntabs (this,5);" >php Reference Manual </li>
</ul>
<div class= "TLECR" >
<div id= "wentab0_content0" class= "TABCR" >
<a title= "php Tutorials" href= "http://www.111cn.net/w3school/php/index.htm" >php tutorials </a>
<a title= "Introduction to PHP" href= "http://www.111cn.net/w3school/php/php_intro.htm" >php profile </a>
<a title= "PHP Installation" href= "http://www.111cn.net/w3school/php/php_install.htm" >php installation </a>
<a title= "PHP Syntax" href= "http://www.111cn.net/w3school/php/php_syntax.htm" >php syntax </a>
<a title= "PHP variable" href= "http://www.111cn.net/w3school/php/php_variables.htm" >php variable </a>
<a title= "php string" href= "http://www.111cn.net/w3school/php/php_string.htm" >php string </a>
<a title= "php operator" href= "http://www.111cn.net/w3school/php/php_operators.htm" >php operator </a>
<a title= "PHP if...else statement" href= "http://www.111cn.net/w3school/php/php_if_else.htm" >php if...else</a>
<a title= "PHP switch Statement" href= "http://www.111cn.net/w3school/php/php_switch.htm" >php switch</a>
<a title= "php array" href= "http://www.111cn.net/w3school/php/php_arrays.htm" >php array </a>
<a title= "PHP loop" href= "http://www.111cn.net/w3school/php/php_looping.htm" >php cycle </a>
<a title= "php function" href= "http://www.111cn.net/w3school/php/php_functions.htm" >php function </a>
<a title= "php form and user input" href= "http://www.111cn.net/w3school/php/php_forms.htm" >php form </a>
<a title= "php $_get" href= "http://www.111cn.net/w3school/php/php_get.htm" >php $_get</a>
<a title= "php $_post" href= "http://www.111cn.net/w3school/php/php_post.htm" >php $_post</a>
</div>
<div id= "Wentab0_content1" class= "tabcr" style= "Display:none"; >
<a title= "php date" href= "http://www.111cn.net/w3school/php/php_date.htm" >php date </a>
<a title= "PHP reference" href= "http://www.111cn.net/w3school/php/php_includes.htm" >php reference </a>
<a title= "php file" href= "http://www.111cn.net/w3school/php/php_file.htm" >php file </a>
<a title= "php file Upload" href= "http://www.111cn.net/w3school/php/php_file_upload.htm" >php file upload </a>
<a title= "php cookies" href= "http://www.111cn.net/w3school/php/php_cookies.htm" >php cookies</a>
<a title= "PHP Sessions" href= "http://www.111cn.net/w3school/php/php_sessions.htm" >php sessions</a>
<a title= "PHP e-mail" href= "http://www.111cn.net/w3school/php/php_mail.htm" >php e-mail</a>
<a title= "PHP secure e-mail" href= "http://www.111cn.net/w3school/php/php_secure_mail.htm" >php security e-mail</a>
<a title= "PHP error" href= "http://www.111cn.net/w3school/php/php_error.htm" >php error</a>
<a title= "PHP exception" href= "http://www.111cn.net/w3school/php/php_exception.htm" >php exception</a>
<a title= "PHP filter" href= "http://www.111cn.net/w3school/php/php_filter.htm" >php filter</a>
</div>
<div id= "Wentab0_content2" class= "tabcr" style= "Display:none"; >
<a title= "Introduction to the MySQL Tutorial" href= "http://www.111cn.net/w3school/php/php_mysql_intro.htm" >mysql profile </a>
<a title= "MySQL Connect" href= "http://www.111cn.net/w3school/php/php_mysql_connect.htm" >mysql connect</a >
<a title= "MySQL create" href= "http://www.111cn.net/w3school/php/php_mysql_create.htm" >mysql create</a>
<a title= "MySQL insert" href= "http://www.111cn.net/w3school/php/php_mysql_insert.htm" >mysql insert</a>
<a title= "MySQL select" href= "http://www.111cn.net/w3school/php/php_mysql_select.htm" >mysql select</a>
<a title= "MySQL where" href= "http://www.111cn.net/w3school/php/php_mysql_where.htm" >mysql where</a>
<a title= "MySQL Order by" href= "http://www.111cn.net/w3school/php/php_mysql_order_by.htm" >mysql order by</a >
<a title= "MySQL update" href= "http://www.111cn.net/w3school/php/php_mysql_update.htm" >mysql update</a>
<a title= "MySQL delete" href= "http://www.111cn.net/w3school/php/php_mysql_delete.htm" >mysql delete</a>
<a title= "php ODBC" href= "http://www.111cn.net/w3school/php/php_db_odbc.htm" >php odbc</a>
</div>
<div id= "Wentab0_content3" class= "tabcr" style= "Display:none"; >
<a title= "XML expat Parser" href= "http://www.111cn.net/w3school/php/php_xml_parser_expat.htm" >xml expat parser </a>
<a title= "XML dom" href= "http://www.111cn.net/w3school/php/php_xml_dom.htm" >xml dom</a>
<a title= "xml simplexml" href= "http://www.111cn.net/w3school/php/php_xml_simplexml.htm" >xml simplexml</a >
</div>
<div id= "Wentab0_content4" class= "tabcr" style= "Display:none"; >
<a title= "Introduction to Ajax" Href= "http://www.111cn.net/w3school/php/php_ajax_intro.htm" >ajax profile </a>
<a title= "Ajax XMLHttpRequest" href= "http://www.111cn.net/w3school/php/php_ajax_xmlhttprequest.htm" > Xmlhttprequest</a>
<a title= "PHP and AJAX Requests" href= "http://www.111cn.net/w3school/php/php_ajax_suggest.htm" >ajax suggest</a>
<a title= "PHP and Ajax XML Instances" href= "http://www.111cn.net/w3school/php/php_ajax_xml.htm" >ajax
<a title= "PHP and Ajax MySQL database instance" href= "http://www.111cn.net/w3school/php/php_ajax_database.htm" >ajax database& Lt;/a>
<a title= "PHP and Ajax Responsexml instance" href= "http://www.111cn.net/w3school/php/php_ajax_responsexml.htm" >ajax Responsexml</a>
<a title= "PHP and Ajax Live Search" href= "http://www.111cn.net/w3school/php/php_ajax_livesearch.htm" >ajax Live Search</a>
<a title= "PHP and Ajax RSS reader" href= "http://www.111cn.net/w3school/php/php_ajax_rss_reader.htm" >ajax RSS reader& Lt;/a>
<a title= "PHP and Ajax voting" href= "http://www.111cn.net/w3school/php/php_ajax_poll.htm" >ajax poll</a>
</div>
<div id= "wentab0_content5" class= "tabcr" style= "Display:none"; >
<a title= "php array function" href= "http://www.111cn.net/w3school/php/php_ref_array.htm" >php array</a>
<a title= "PHP calendar function" href= "http://www.111cn.net/w3school/php/php_ref_calendar.htm" >php calendar</a >
<a title= "php date/time function" href= "http://www.111cn.net/w3school/php/php_ref_date.htm" >php date</a>
<a title= "php directory Function" href= "http://www.111cn.net/w3school/php/php_ref_directory.htm" >php directory</ A>
<a title= "PHP Error and Logging function" href= "http://www.111cn.net/w3school/php/php_ref_error.htm" >php >
<a title= "PHP filesystem function" href= "http://www.111cn.net/w3school/php/php_ref_filesystem.htm" >php filesystem </a>
<a title= "PHP filter Function" href= "http://www.111cn.net/w3school/php/php_ref_filter.htm" >php filter</a>
<a title= "php ftp Function" href= "http://www.111cn.net/w3school/php/php_ref_ftp.htm" >php ftp</a>
<a title= "php http Function" href= "http://www.111cn.net/w3school/php/php_ref_http.htm" >php http</a>
<a title= "php libxml function" href= "http://www.111cn.net/w3school/php/php_ref_libxml.htm" >php libxml</a>
<a title= "PHP mail Function" href= "http://www.111cn.net/w3school/php/php_ref_mail.htm" >php mail</a>
<a title= "php math function" href= "http://www.111cn.net/w3school/php/php_ref_math.htm" >php math</a>
<a title= "php mysql function" href= "http://www.111cn.net/w3school/php/php_ref_mysql.htm" >php mysql</a>
<a title= "php simplexml function" href= "http://www.111cn.net/w3school/php/php_ref_simplexml.htm" >php simplexml</ A>
<a title= "php string function" href= "http://www.111cn.net/w3school/php/php_ref_string.htm" >php string</a>
<a title= "PHP XML parser function" href= "http://www.111cn.net/w3school/php/php_ref_xml.htm" >php xml</a>
<a title= "php zip file function" href= "http://www.111cn.net/w3school/php/php_ref_zip.htm" >php zip</a>
<a title= "php Miscellaneous Functions" href= "http://www.111cn.net/w3school/php/php_ref_misc.htm" >php Miscellaneous </a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>