lfcx 发表于 2006-5-24 01:05:16

[求助]想实现点一下开按纽图片变成阀门喷水的图片

想实现点一下开按纽图片变成阀门喷水的图片,同时按纽变成关按纽?应该怎么办呢?图片是装饰不是控件,不知道怎么控制啊?
<img src="attachments/dvbbs/2006-5/20065231751295812.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2006-5/20065231751295812.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />

cpubbs 发表于 2006-5-25 06:55:45

我现在好像不清楚你的要求了,一个PICTURE里面可以有多张图片的!

lfcx 发表于 2006-5-25 05:47:14

[求助][求助]我用PICTRUE RING也不行啊?

请楼上高手具体谈一下好么?谢谢啦!
我用PICTRUE RING编了一个,可是不能实现点开按纽,开按纽消失,出现关按纽啊!就是两个按纽在相同位置互相转换,相应图片也在同一位置互相转换!
用自定义控件也不行啊!请教各位!


<img src="attachments/dvbbs/2006-5/20065259205239813.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2006-5/20065259205239813.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />
[此贴子已经被作者于2006-5-25 9:20:57编辑过]

cpubbs 发表于 2006-5-24 04:26:22

用PICTURE RING来实现,用这个切换多张图片就可以的!

lfcx 发表于 2006-5-25 17:26:22

<P>象最后传的那个图片似的,点一下开按纽,开按纽就变成关按纽,开按纽消失同时阀门从不喷水的图片变成喷水的图片!不喷水的图片消失.同理,点一下关按纽也会转换成开按纽.但是这些转换都是在原地转换的!</P>

ricken 发表于 2006-5-26 00:05:18

开关按钮有一个on/off text,你设计ON时为关,OFF时为开,同时用picture ring进行选择图片就可以啊

cpubbs 发表于 2006-5-26 06:52:57

PICTURE RING,同一个里面可以有多张图片,你放二张就可以了,通过按钮来控制不同的图片就可以了,比如ON的时候是1,OFF的时候是2,这样图片就自动切换了!
页: [1]
查看完整版本: [求助]想实现点一下开按纽图片变成阀门喷水的图片