本帖最后由 aier520 于 2010-04-11 02:08:02 编辑

解决方案 »

  1.   

     去搜搜jquery的代码,有这方面的东西的
      

  2.   

    点小图出大图,这个很简单方法一:小图存于名为S5的文件夹中,大图存于名为S1的文件夹中  <TABLE>
      <TR>
        <TD>
            <img src="http://img10.360buyimg.com/S5/4633/67599a06-edbc-4a07-87a2-8a6db67eb7b3.jpg" border="0" style="cursor:hand" onclick="big(this)"> 
            <img src="http://img10.360buyimg.com/S5/3474/8d7b3df9-c57c-424e-8805-004b2c2bb819.jpg" border="0" style="cursor:hand" onclick="big(this)"> 
            <img src="http://img10.360buyimg.com/S5/2585/aef504c7-31af-41af-90ba-7c48e4e17682.jpg" border="0" style="cursor:hand" onclick="big(this)"> 
            <img src="http://img10.360buyimg.com/S5/443/8fd17e13-a911-4b64-97f1-e49395a028ab.jpg" border="0"  style="cursor:hand" onclick="big(this)"> 
            <img src="http://img10.360buyimg.com/S5/2918/61e6ef8f-22fc-4d1d-ae6c-d173cb0ff3d5.jpg" border="0" style="cursor:hand" onclick="big(this)"> 
        </TD>
      </TR>
      <TR>
        <TD><img id="bigpic" src="http://img10.360buyimg.com/S1/4633/67599a06-edbc-4a07-87a2-8a6db67eb7b3.jpg" border="1"></TD>
      </TR>
      </TABLE>
      <SCRIPT LANGUAGE="JavaScript">
      <!--
        function big(obj){
            document.getElementById("bigpic").src = obj.src.replace("S5","S1");
        }
      //-->
      </SCRIPT>方法二:只有大图,缩小显示为小图 <TABLE>
      <TR>
        <TD>
            <img src="http://img10.360buyimg.com/S1/4633/67599a06-edbc-4a07-87a2-8a6db67eb7b3.jpg" border="0" width="50" style="cursor:hand" onclick="big2(this)"> 
            <img src="http://img10.360buyimg.com/S1/3474/8d7b3df9-c57c-424e-8805-004b2c2bb819.jpg" border="0" width="50" style="cursor:hand" onclick="big2(this)"> 
            <img src="http://img10.360buyimg.com/S1/2585/aef504c7-31af-41af-90ba-7c48e4e17682.jpg" border="0" width="50" style="cursor:hand" onclick="big2(this)"> 
            <img src="http://img10.360buyimg.com/S1/443/8fd17e13-a911-4b64-97f1-e49395a028ab.jpg" border="0" width="50"  style="cursor:hand" onclick="big2(this)"> 
            <img src="http://img10.360buyimg.com/S1/2918/61e6ef8f-22fc-4d1d-ae6c-d173cb0ff3d5.jpg" border="0" width="50" style="cursor:hand" onclick="big2(this)"> 
        </TD>
      </TR>
      <TR>
        <TD><img id="bigpic2" src="http://img10.360buyimg.com/S1/4633/67599a06-edbc-4a07-87a2-8a6db67eb7b3.jpg" border="1"></TD>
      </TR>
      </TABLE>
      <SCRIPT LANGUAGE="JavaScript">
      <!--
        function big2(obj){
            document.getElementById("bigpic2").src = obj.src;
        }
      //-->
      </SCRIPT>