JavaScript News switching Technology _javascript skills

Source: Internet
Author: User
<! 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=" Tex t/html; charset=gb2312 "/> <title> cloud-Habitat Community www.jb51.net News switching technology </title> <style type=" Text/css "> <!--body {Text-align:center margin:0; padding:0 background: #FFF; font-size:12px; color: #000;} div,form,img,ul,ol,li,dl,dt,dd {margin:0; padding:0; border:0;} H1,h2,h3,h4,h5,h6 {margin:0; padding:0;} table,td,tr,th{font-size:12px;} a:link {color: #000; text-decoration:none;} a:visited {color: #83006f; text-decoration:none;} a:hover {color: #c00; text-decoration:underline;} a:active {color: #000;} . focuspic{margin:0 auto; width:244px;} . focuspic. pic{margin:0 auto; width:240px height:180px; padding:2px 0 0; . focuspic. adpic{margin:0 auto 5px; width:240px; height:29px; overflow:hidden;background:url(http://tech.163.com/newimg/adpic.gif);} . focuspic. adpic. Text{float:right padding:9px 4px 0 0; width:140px; . focuspic. Adpic. Text a{color: #1f3a87;} . focuspic. Adpic. Text a:hover{color: #bc2931;} . Focuspic h2{float:left width:232px;padding:4px 0 3px 12px; font-size:14px; text-align:left;} . focuspic p{float:left; width:226px;line-height:160%; margin:0; text-align:left;padding:0 0 10px 12px;} . Focuspic p img {margin:0px 0 2px;} . focuspic. more{margin:0 Auto; width:240px;} . focuspic. textnum{float:right; margin:0 8px 0 0;padding:0 0 4px;} . focuspic. textnum. Text{float:left font-weight:bold; padding:7px 6px 0 0; color: #666; . focuspic. Textnum. num{float:left; width:113px; height:19px;} . focuspic. Textnum. bg1{Background:url (http://tech.163.com/newimg/num1.gif); . focuspic. Textnum. bg2{Background:url (http://tech.163.com/newimg/num2.gif); . focuspic. Textnum. bg3{Background:url (http://tech.163.com/newimg/num3.gif); . focuspic. Textnum. bg4{Background:url (http://tech.163.com/newimg/num4.gif); . focuspic. textnum. Num ul{float:left; width:113px; . focuspic. textnum. num li{float:left; width:28px; font-weight:bold;display:block; color: #fff; List-style-type: None padding:6px 0 0;} . focuspic. textnum. Num li a{color: #fff; padding:0 5px; } focuspic. textnum. Num li a:visited{color: #fff; . focuspic. textnum. Num li a:hover{color: #ff0; --> </style> </pead> <body> <script language= "JavaScript" type= "Text/javascript" > V Ar nn; Nn=1; SetTimeout (' change_img () ', 6000); function change_img () {if (nn>4) nn=1 settimeout (' SetFocus1 (' +nn+ ') ', 6000); nn++; Tt=settimeout (' change_img () ', 6000); } function SetFocus1 (i) {selectLayer1 (i); function SelectLayer1 (i) {switch (i) {case 1:document.getelementbyid (' FocusPic1 '). style.display= "Block "; document.getElementById ("Focuspic2 "). style.display=" None "; document.getElementById ("FocusPic3"). style.display= "None"; document.getElementById ("FocusPic4"). style.display= "None"; document.getElementById ("Focuspic1nav"). style.display= "Block"; document.getElementById ("Focuspic2nav"). style.display= "None"; document.getElementById ("Focuspic3nav"). style.display= "None"; document.getElementById ("Focuspic4nav"). style.display= "None"; Break Case 2:document.getelementbyid ("FocusPic1"). style.display= "None"; document.getElementById ("FocusPic2"). style.display= "Block"; document.getElementById ("FocusPic3"). style.display= "None"; document.getElementById ("FocusPic4"). style.display= "None"; document.getElementById ("Focuspic1nav"). style.display= "None"; document.getElementById ("Focuspic2nav"). style.display= "Block"; document.getElementById ("Focuspic3nav"). style.display= "None"; document.getElementById ("Focuspic4nav"). style.display= "None"; Break Case 3:document.getelementbyid ("FocusPic1"). style.display=" None "; document.getElementById ("FocusPic2"). style.display= "None"; document.getElementById ("FocusPic3"). style.display= "Block"; document.getElementById ("FocusPic4"). style.display= "None"; document.getElementById ("Focuspic1nav"). style.display= "None"; document.getElementById ("Focuspic2nav"). style.display= "None"; document.getElementById ("Focuspic3nav"). style.display= "Block"; document.getElementById ("Focuspic4nav"). style.display= "None"; Break Case 4:document.getelementbyid ("FocusPic1"). style.display= "None"; document.getElementById ("FocusPic2"). style.display= "None"; document.getElementById ("FocusPic3"). style.display= "None"; document.getElementById ("FocusPic4"). style.display= "Block"; document.getElementById ("Focuspic1nav"). style.display= "None"; document.getElementById ("Focuspic2nav"). style.display= "None"; document.getElementById ("Focuspic3nav"). style.display= "None"; document.getElementById ("Focuspic4nav"). Style.display= "BlocK "; Break } </script> <div class= "Focuspic" > <div id= "FocusPic1" > <div class= "pic" > </di V> <p> NetEase College 05 software selection results </p> after everyone's enthusiastic vote and our painstaking finishing, NetEase College 2005 annual software selection results are finally released. Click to go to view ... Detailed </p> </div> <div id= "FocusPic2" > <div class= "pic" > </div> <p> Subversion Jungle Animal survival Law </p> <p> The behaviour of gregarious animals subverts what we normally think of as the "jungle law" that is prevalent in the animal world, and not all animals are selfish. Details </p> </div> <div id= "focusPic3" > <div class= "pic" > </div> <p>wapi not trade Conspiracy </p> <p> Recent state decisions: "The algorithm will be published to other domestic and foreign companies." It turns out that China's WAPI standard is not a trade conspiracy. Detailed </p> </div> <div id= "FocusPic4" > <div class= "pic" > </div> <p> New Vision number probe Hades Star Special Topics </p> <p> NASA will launch a new Horizons probe in Beijing 18th 2:24 A.M. to visit the only planet that has not yet been explored-Pluto. Details </p> </div> <div class= "More" > <div class= "textnum" > <div class= "text" >> more Head Chart News </div> <div class= "NuM bg1 "id=" Focuspic1nav "> <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul> </div> <div class= "num bg2" id= "Focuspic2nav" > <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul> & lt;/div> <div class= "num bg3" id= "Focuspic3nav" > <ul> <li>1</li> <li>2</l i> <li>3</li> <li>4</li> </ul> </div> <div class= "num Bg4" id= "fo Cuspic4nav ' > <ul> <li>1</li> <li>2</li> <li>3</li> <li> 4</li> </ul> </div> </div> </div> </div> </body> </ptml&gt ;
[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: 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.