You can specify the default page number in the code.
Copy codeThe Code is as follows:
<Div id = "container" style = "width: 500px;">
<Ul>
<Li> <a href = "# fragment-1"> <span> One </span> </a> </li>
<Li> <a href = "# fragment-2"> <span> Two </span> </a> </li>
<Li> <a href = "# fragment-3"> <span> Three </span> </a> </li>
</Ul>
<Div id = "fragment-1"> <a href = "http://www.freejs.net/article_tabbiaoqian_29.html"> jquery implements a simple Tab switching menu </a> </div>
<Div id = "fragment-2"> <a href = "http://www.freejs.net/article_jiaodiantu_56.html"> jquery focus diagram slideshow </a> </div>
<Div id = "fragment-3"> js and other Code </div>
</Div>
Copy codeThe Code is as follows:
<Script language = "javascript">
$ (Function (){
// Directly create the Tab menu. the default option is second, And the fade animation is used when switching.
$ ("# Container> ul"). tabs ({fx: {opacity: "toggle", height: "toggle"}, selected: 1 });
});
</Script>
Note that the previous selected: 1 shows the second page by default.