如何在点击其他图像时更改图像? [英] How to change image on click of another image?

查看:67
本文介绍了如何在点击其他图像时更改图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在div中有两张图片。一个大的,另一个小。我想要点击另一个div中的另一个图像来更改两个图像。我只得到一个图像更改点击大图,小图像没有变化。

请参考

http://www.houseofblouse.com/design/u-neck-2 [ ^ ]

解决方案

请参考此演示:

使用jQuery点击更改图像 [ ^ ]



它以非常简单的方式显示了如何对其进行处理。


 


#img1)。click( function () {

I have two images in div. one big one,another small.I want change both images on click of another image which is in another div. I am getting only one image change on click that is big one,small image is not changing.
please refer
http://www.houseofblouse.com/design/u-neck-2[^]

解决方案

Please refer to this demo here:
Change image on click with jQuery[^]

It shows in a very easy way how you can achecive it.



("#img1").click(function() {


这篇关于如何在点击其他图像时更改图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆