Home  >  Article  >  Web Front-end  >  javascript scheduled automatic switching tab Tab_navigation menu

javascript scheduled automatic switching tab Tab_navigation menu

WBOY
WBOYOriginal
2016-05-16 18:44:231304browse

It should be noted here that the random number used to generate changeTabInterval prevents too many TabPane on the page. If the changeTabInterval is set to the same, it will produce a uniform switching effect, which is not beautiful.


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute ]<script> var tp = new TabPane("divForumBoard",randint(3,10)); tp.addTabPage({title:"公告" ,width:50 ,panel:"divForumCast"}); tp.addTabPage({title:"面板" ,width:50 ,panel:"divForumPanel"}); </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn