Este artigo descreve a função de exibição de várias janelas do JS simplesmente implementando o efeito de comutação de guias. Compartilhe -o para sua referência, como segue:
<div style = "text-align: Center; margin-top: 40px;"> <div> <span id = "newstab1" onmouseover = "settab ('newstab', 1,3)"> <a href = "###" Target = "_blan"> departamento <ouous> </span> <b span = "" <a href = "###" Target = "_ Blank"> Relatório de mídia </a> </span> <span id = "newstab3" onMouseOverover = "Settab ('NewStab', 3,3)"> <a href = "##" alvo = "_"> resgate </a> </span> <//" <li> <pan> 2015-09-09 </span> <a href = "###" Target = "_ Blank"> Quem pediu para você recitar a fragrância que cai na água flutuante 1 </a> </li> <li> <lag> span> 2015-08-17 </span <a href = "### 'TOGE = _BLAPT" " 1 </a> </li> <li> <mpan> 2015-08-05 </span> <a href = "## '" Target = "_ Blank"> que pediu para você recitar a fragrância que cai na água flutuante 1 </a> </li> </ul> </liv> <div id = "Con_NewStab_2" style = "; <li> <pan> 2015-09-09 </span> <a href = "###" Target = "_ Blank"> Quem pediu para você recitar a fragrância que cai da água flutuando 2 </a> </li> <li> <lags> 2015-08-17 </span <a href = "###" Target = "" " 2</a></li> </div> <div id="con_newstab_3" style="display:none;"> <ul> <li><span>2015-09-09</span><a href="###" target="_blank">Who asked you to recite the water falling fragrance floating 3</a></li> <li><span>2015-08-17</span><a href = "###" Target = "_ Blank"> Quem pediu que você recite a fragrância que cai água flutuando 3 </a> </li> </div> </div> </div> <script type = "text/javascript"> function (name, cura. var con = document.getElementById ("CON _"+nome+"_"+i); MENU.CLASSNAME = I == Cursel? "Hover": ""; con.style.display = i == Cursel? "Block": "Nenhum"; }} </script>Imagem de reprodução:
For more information about JavaScript related content, please check out the topics of this site: "Summary of JavaScript Traversal Algorithm and Skills", "Summary of JavaScript Switching Special Effects and Skills", "Summary of JavaScript Search Algorithm Skills", "Summary of JavaScript Animation Special Effects and Skills", "Summary of JavaScript Errors and Debugging Skills", "Summary of JavaScript Data Estruturas e habilidades de algoritmo "e" Resumo do uso de operação matemática de JavaScript "
Espero que este artigo seja útil para a programação JavaScript de todos.