<img onclick="this.src='big.jpg'">

解决方案 »

  1.   

    <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><a href="1.asp?show=ok"><img src="pic/bg.jpg" width="6" height="85"></a> </td>
        <td><%if request("show")="ok" then%><img src="pic/login.gif" width="570" height="70"><%end if%></td>
      </tr>
    </table>
      

  2.   

    <style>
    #left {
    float:left;
    width:100px;
    margin:0;
    list-style:none;
    }
    #left img {
    width:50px;
    border:0;
    cursor:hand;
    }
    #right {
    float:left;
    margin-left:20px;
    }
    #right img {
    width:300px;
    }
    </style>
    <ul id="left">
    <li><img src="1.gif" onclick="showBig(1)"/></li>
    <li><img src="2.gif" onclick="showBig(2)"/></li>
    <li><img src="3.gif" onclick="showBig(3)"/></li>
    </ul>
    <div id="right">
    <img src="big.gif" id="big"/>
    </div>
    <script type="text/javascript">
    function showBig(i)
    {
    big.src = "big"+i+".gif";
    }
    </script>
      

  3.   

    <img src="oicq.gif" onclick="showDiv.innerHTML='<img src='+this.src+'>'">
    <img src="topic.gif" onclick="showDiv.innerHTML='<img src='+this.src+'>'">
    <div id="showDiv"></div>