Imitation netease Sina website sliding door effect, with DIV+CSS technology to achieve

Source: Internet
Author: User
Tip: You can modify some of the code before running

Imitation netease Sina website sliding door effect, with DIV+CSS technology to achieve <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; charset=gb2312 "/> <title></title> <style type=" Text/css "> <!--#header {background-color: # F8f4ef; height:200px; width:400px; margin:0px; padding:0px; border:1px solid #ECE1D5; Font-family: "The song Body"; font-size:12px; #menu {margin:0px; padding:0px list-style-type:none;} #menu li {display:block; width:100px; text-align:center; Float:left; margin:0px; Padding-top:0.2em; padding-right:0px; Padding-bottom:0.2em; padding-left:0px; Cursor:hand; }. sec1 {background-color: #FFFFCC;}. sec2 {background-color: #00CCFF;}. block {display:block;}. Unblock {Display:no NE;} --> </style> </pead> <body> <script language=javascript> function Secboard (n) {for (i=0;i<menu.childnodes.length;i++) menu.childnodes[i].classname= "SEC1"; Menu.childnodes[n].classname= "SEC2"; for (i=0;i<main.childnodes.length;i++) main.childnodes[i].style.display= "None"; main.childnodes[n].style.display= "Block"; } </script> <div id= "header" > <ul id= "menu" > <li onmouseover= "secboard (0)" class= "SEC2" > Latest News </li> <li onmouseover= "Secboard (1)" class= "SEC1" > Latest article </li> <li onmouseover= "Secboard (2)" class= "SEC1" > Latest log </li> <li onmouseover= "Secboard (3)" class= "SEC1" > Forum new post </li> </ul> <!-- Content display Area--> <ul id= "main" > <li class= "block" > First content </li> <li class= "unblock" > Second content </li > <li class= "unblock" > Third content </li> <li class= "unblock" > Fourth content </li> </ul> <!-- Content display Area--> </div> </body> </ptml>
Tip: You can modify some of the code before running
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.