解决方案 »
- 一个input如何执行两个onclick事件呢
- 问一下canvas中scale()的参数的意思?
- 求教:怎么获取windows2000系统下的路由表?
- jquery中获取table下的所有类型为text的input对象,谢谢
- 防GOOGLE搜索提示问题
- parent.document.getElementById
- 如何在javascript,传参数,并且读取参数!
- 求教:数据库中的相应记录有变化,在前台有一个30秒的图标提示?
- to:woyingjie,请教另一个功能
- 怎样取时间中,秒数的个位?
- 求一个计算时间差的function
- 点击左边leftframe树形结构的一个链接 在右边的mainframe中直接显示jsp并且同时弹出div
<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>