解决方案 »
- javascript中的恶'&'和 ‘>>>=’是代表什么意思
- 跪求高人帮忙看看一个关于层的问题!@!!
- 谁能不用执行就能猜出这段代码的结果?? 请把原理也讲出来~
- options[selectedIndex].value表示下拉列表的值,那下拉列别的标签用什么来表示
- 我的复选框全部选中的功能怎么实现不了呀?!请大虾指点一下!
- 帮我看看这段代码?执行的时候有问题?
- 菜鸟提问,别笑我。
- javascript怎样将字符变量转换成数字
- 怎样使用javascript使TEXT 控件为只读?
- 我每次登陆以后怎么看不到我,,,,
- 求一个计算时间差的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>