zoukankan      html  css  js  c++  java
  • 选项卡最简单,就是这样,有本事写更简单的我看。

    <script language="javascript" type="text/javascript">
       function xianshi(t1,t2)
       {
        document.getElementByIdx("a1").src="/Templates/default/images/newstt1h.gif";
        document.getElementByIdx("a2").src="/Templates/default/images/newstt2h.gif";
        document.getElementByIdx("a3").src="/Templates/default/images/newstt3h.gif";
        document.getElementByIdx("a4").src="/Templates/default/images/newstt4h.gif";
        document.getElementByIdx(t1).src="/Templates/default/images/" + t2;
       }
       </script>
       
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><img id="a1" src="/Templates/default/images/newstt1h.gif" onmousemove="xianshi('a1','newstt1.gif')" /></td>
        <td><img id="a2" src="/Templates/default/images/newstt2h.gif" onmousemove="xianshi('a2','newstt2.gif')" /></td>
        <td><img id="a3" src="/Templates/default/images/newstt3h.gif" onmousemove="xianshi('a3','newstt3.gif')" /></td>
        <td><img id="a4" src="/Templates/default/images/newstt4h.gif" onmousemove="xianshi('a4','newstt4.gif')" /></td>
                  </tr>

     

     

     

     

  • 相关阅读:
    linux基础知识-17
    linux基础知识-16
    linux基础知识-15
    linux基础知识-14
    linux基础知识-13
    phone 调试三种工具
    ANT_HOME is set incorrectly or ant could not be located .Please set ANT_HOME.
    如何解决google ping不通的问题。
    weinre targets none 的问题
    phonegap3.5了结
  • 原文地址:https://www.cnblogs.com/binlunia/p/11267755.html
Copyright © 2011-2022 走看看