如何将图像作为按钮并显示一个图像一次单击 [英] How to get images as buttons and display one image for one click

查看:74
本文介绍了如何将图像作为按钮并显示一个图像一次单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai all,


我需要将两个或三个图像作为按钮。当我点击图像时,如果我点击另一个图像按钮,它必须显示在窗口上图像也显示在同一窗口上,但前一个窗口不应该被当前窗口替换。


例如,

我有三个图像按钮img1 ,img2,img3。当我点击img1它应该在窗口上显示图像。同样如果点击img2它也显示在同一个窗口而不替换img1我,e img1和img2都应该只在那里。

解决方案




i得到你的问题..

但是当你点击图像按钮,相应的图像应该出现在新窗口中还是出现在与图像按钮相同的窗口中?



hi,


i得到你的问题..

但是当你点击im年龄按钮,相应的图像应该出现在新窗口中还是出现在与图像按钮相同的窗口中?



Hai,


感谢您的回复。相应的图片应该出现在与图片按钮相同的窗口中,但在另一个框架中希望你能得到这个。


谢谢





我们对框架一无所知。但我已经使用div来完成它...我已经写下了下面的代码。


html代码:

展开 | 选择 | Wrap | 行号

Hai all,

I need to get two or three images as a buttons.At the moment when i click the image it must display on window if i click another image button that image also display on the same window but previous one should not replace by current one.


For example,
I have three image buttons img1,img2,img3.At the moment i click on the img1 it should dislplay the image on window.Similarly if click on the img2 it also display on the same window without replacement of img1 i,e img1 and img2 both are should be there only.

解决方案

hi,

i get your problem..
but when you click on the image buttons, the corresponding image should appear in a new window or in the same window as the image buttons?


hi,

i get your problem..
but when you click on the image buttons, the corresponding image should appear in a new window or in the same window as the image buttons?

Hai,

Thanks forur reply.The corresponding image should appear in a same window as image buttons but in another frame.Hope you will get this.

Thank you


hi,

i''m quite ignorant about the frames. But i have done it using divs.. and i have written down the code below.

the html code :

Expand|Select|Wrap|Line Numbers


这篇关于如何将图像作为按钮并显示一个图像一次单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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