1 頁 (共 1 頁)

[問題][外掛]img標籤自動縮圖+點擊放大

發表於 : 2004-04-29 21:35
totoromehk
參考連結: http://phpbb-tw.net/phpbb/viewtopic.php?t=25216

按左鍵只會放大,但如原圖很大的話,右鍵又沒功用了,不能觀看原圖
能否為它加上按右鍵觀看原圖的功能呢?

發表於 : 2004-04-29 23:06
蒼浩
如果想要這樣的功能,就在\r

代碼: 選擇全部

border="0" alt="圖片:點擊縮放" title="圖片:點擊縮放" /><!-- END img -->
的前面,加上

代碼: 選擇全部

oncontextmenu="javascript:window.open('{URL}'); window.event.returnValue=false;"
即可。

發表於 : 2004-07-04 23:28
webspirit
我發現有時會發生無法正常運作的現象
就是圖不會縮小
請問這是怎麼回事?

發表於 : 2005-01-01 21:13
pentium
我也有這個問題
在公司看可以自動縮圖
在家3台電腦看卻又不行...怪怪

發表於 : 2005-01-02 00:21
webspirit

發表於 : 2005-01-02 00:30
問題狂
webspirit 寫:這個不錯用 ^^
http://www.phpbb.com/phpBB/viewtopic.php?t=243046
這是什麼東西呀

發表於 : 2005-01-02 11:34
webspirit
MOD Database Manager 寫:This is mainly a client-side (Javascript) MOD. Images resized are made clickable and openable in a popup in full-size. You can specify a different max width for each of your themes. Images that do not exceed the max width are left as is.

Re: [問題][外掛]img標籤自動縮圖+點擊放大

發表於 : 2005-01-11 16:40
HUG0
totoromehk 寫:參考連結: http://phpbb-tw.net/phpbb/viewtopic.php?t=25216

按左鍵只會放大,但如原圖很大的話,右鍵又沒功用了,不能觀看原圖
能否為它加上按右鍵觀看原圖的功能呢?
請問一下大大~~
如果我想要點左鍵放大時回到原圖大小
or點右鍵回到原圖大小的話\r
我該怎麼改呢~~謝謝您了~~

發表於 : 2005-01-11 22:55
HUG0
我搞定囉~~:)

代碼: 選擇全部

<!-- BEGIN img --><img src="{URL}" onload="[color=red]ww=this.width ;[/color] javascript:if(this.width >= screen.width * 0.2) this.width = 200" onclick="javascript:if(this.width == 200) {this.width = [color=red]ww[/color]} else {if(this.width >= screen.width * 0.19) {this.width = 200}};" border="0" alt="圖片:點擊縮放" title="圖片:點擊縮放" /><!-- END img -->
我加了紅色的部份就好了~~
分享一下~~
我是縮的比較小啦~~

發表於 : 2005-01-13 10:48
a wei
參考連結: http://phpbb-tw.net/phpbb/viewtopic.php?t=25216
檢查圖片的寬度是否大於螢幕解析度寬度 * 0.7。是的話便修改圖片寬度為 250


請問一下歐
我把圖片寬改成500.但不想有縮放的功能\r
就是圖如果大於0.7就直接縮為固定寬500大小的圖不再改變
也想把左鍵直接改成觀看原圖
請問要如何改?
謝謝

發表於 : 2005-01-13 22:31
a wei
有人能幫我嗎?
感謝

發表於 : 2005-01-18 01:17
HUG0
HUG0 寫:我搞定囉~~:)

代碼: 選擇全部

<!-- BEGIN img --><img src="{URL}" onload="[color=red]ww=this.width ;[/color] javascript:if(this.width >= screen.width * 0.2) this.width = 200" onclick="javascript:if(this.width == 200) {this.width = [color=red]ww[/color]} else {if(this.width >= screen.width * 0.19) {this.width = 200}};" border="0" alt="圖片:點擊縮放" title="圖片:點擊縮放" /><!-- END img -->
我加了紅色的部份就好了~~
分享一下~~
我是縮的比較小啦~~
我發現這樣是不行的~~
當文張中有不同大小的圖就不行了~~
有沒有高手會呢?