Implementation of jquery Automatic switching Tabs tab

Source: Internet
Author: User

  This article mainly introduces the implementation of the JQuery Automatic switching Tabs tab, a friend in need can refer to the

This section: jquery implements the automatic Switch tab.   Code:   Code as follows: <%@ page language= "java" contenttype= "text/html; Charset=utf-8 "pageencoding=" Utf-8 "%> <% String Path = Request.getcontextpath (); %> DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd" > <html> <head> <meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "> <title> Auto Switch Tabs tab-www.jbxue.com</title> <!--Note the introduction of the file order, you do not have the effect may be due to the wrong file introduction order! -->   <script type= "Text/javascript" src= "<%=path%>/js/jquery-1.2.6.js" ></script> < Script src= "<%=path%>/js/ui.core.js" type= "Text/javascript" ></script> <link href= "<%=path%" >/css/ui.tabs.css "rel=" stylesheet "type=" Text/css "/> <script src=" <%=path%>/js/ui.tabs.js "type=" Text/javascript "></script>   <style type=" Text/css "> code {    font-family:" Courier New " , Courier, monospace; } </style> ≪script type= "Text/javascript" >  $ (Function () {  alert (1);   $ (' #rotate > Ul '). Tabs ({fx: {opacit Y: ' Toggle '},selected:0}). Tabs (' rotate ', 500000);  }); </script>   </head> <body> <hr size= "ten" color= "Red"/> <h1>rotating UI Tabs example& lt;/h1> <div id= "Rotate" > <ul>  <li><a href= "#div1" ><span> News </span>< /a></li>  <li><a href= "#div2" ><span> Forum </span></a></li>   <li><a href= "#div3" ><span> blog </span></a></li> </ul> <div id= "Div1" > <h4>DIV1</h4> Place the display of the test, Automatically switch tabs tab, automatically switch the Tabs tab, automatically switch Tabs tab. Automatically switch the Tabs tab, automatically switch the Tabs tab, and automatically switch the Tabs tab. Automatically toggles the Tabs tab. </div> <div id= "Div2" ><h4>div2</h4>lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed   diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat . Lorem ipsum dolorSit amet, consectetuer adipiscing elit, sed diam  nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.  </div> <div id= "Div3" ><h4>div3</h4>lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed  diam nonummy nibh euismod tincidunt ut laoreet dolore magna, Aliquam erat  volutpat. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam  nonummy nibh euismod tincidunt ut laoreet dolore Magna aliquam erat volutpat.  Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy E Uismod tincidunt ut laoreet dolore magna aliquam erat. </div> </div> </body> </html>    
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.