Practical Label Effect _css/html

Source: Internet
Author: User
Tags eval
<style type= "Text/css" > body{font-size:12px;line-height:150%;} table{font-size:12px;line-height:150%;} a:link {color: #000; Text-decoration:none} a:visited {color: #000; Text-decoration:none} a:active {color: #000; Text-decoration:none} a:hover {color: #ff0000; Text-decoration:underline}. S01 {border: #6BA6DE 1px solid; border-bottom : 0px; Background: #eff7ff; PADDING-TOP:1PX}. S02 {border: #ffffff 1px solid border-bottom: #6BA6DE 1px solid; background: #ffffff;} </style> <script language= "JavaScript" > function Secboard (n) {for (i=1;i<5;i++) {EV Al ("document.getElementById" (' Cl0 "+i+"). Classname= ' S02 '); Eval ("tbx0" +i+ ". style.display= ' None '"); Eval (' document.getElementById (' cl0 ' +n+ '). Classname= ' S01 '); Eval ("tbx0" +n+ ". style.display= ' block '); } </script> <table width= "247" border= "0" cellpadding= "0" cellspacing= "0" id= "sectable" > <tr align= "cen" ter "> <td id=" cl01 "width=" class= "S01" ONclick= "Secboard (1);" > tab 1</td> <td id= "cl02" width= "class=" S02 "onclick=" Secboard (2); "> Tab 2< /TD> <td id= "cl03" width= "class=" S02 "onclick=" Secboard (3); "> tab 3</td> <td id=" cl04 "width=" C " lass= "S02" onclick= "Secboard (4);" > tab 4</td> <td width= "7" class= "S02" > </td> </tr> </ta Ble> <table width= "247" height= "M" > <tr> <td height= "A" > This can also put fixed things, if you want to add, remove the annotation character </td> & lt;/tr> <tr> <td valign= "Top" > <div id= "tbx01" > This can put what you need, if there are more than one tab can modify the code can be the right amount of </div > <div id= "tbx02" > Specific size of your own tune, I do this is very obvious, note that the above table and the following table width to the same, the height of the following table casually changed, it is best to manually modify this code, that is, do not use DW and other tools to adjust the size </div> <div id= "tbx03" > all the Styles ah what, you can change their own, do not understand and then ask me </div> <div id= "tbx04" > Hehe, specially for <font color= "#ff0000" > .....</font> design </div> </td> </tr> </table>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

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: 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.