AL8 Forum
   登錄註冊幫助


標題: 【求助】貼圖的原素像很大時不會自動縮小
 xxxoxxx
 0013420
Rank: 3Rank: 3Rank: 3
點擊查看 xxxoxxx 的詳細資料

頭銜: Conqueror

帖子: 174

精華: 0

積分: 3520 點

現金: 498 元

存款: 3000 元

閱讀權限: 20

註冊: 2004-12-20

來自: 台北

狀態: 離線
 
發表於 2005-9-18 23:04  資料  個人空間  短消息  加為好友 
【求助】貼圖的原素像很大時不會自動縮小

當貼圖的原素像很大時,不會自動縮小到 table 寬度內,圖以100%大小顯示在 viewthread/ table 裡面,只看的到部分,必須使用滑鼠滾輪(已安裝滑鼠推杆將貼圖放大縮小)將圖縮小才能看到全圖,該怎麼修改?

我的 discuzcode.php 「滑鼠推杆將貼圖放大縮小」碼
QUOTE:
                                "bbcodeurl('\\1', '<a href=\"%s\" target=\"_blank\"><img src=\"%s\" border=\"0\" alt=\"可使用滑鼠滑輪放大縮小或點擊查看原圖\" onload=\"javascript:if (this.width>screen.width-333) this.width=screen.width-333;\" onmousewheel=\"return bbimg(this)\" onerror=\"src=\'images/common/nopic.gif\'\"></a>')",
                                "bbcodeurl('\\3', '<img width=\"\\1\" height=\"\\2\" src=\"%s\" border=\"0\" onload=\"if(this.width>screen.width-333) {this.width=screen.width-333;this.alt=\'Click Here to Open New Window\';}\" onmousewheel=\"return bbimg(this)\" onmouseover=\"if(this.alt) this.style.cursor=\'hand\';\" onclick=\"if(this.alt) window.open(\'%s\');\">')",


QUOTE:
        if ($str == "gif" || $str == "jpg")
                $urllink = "<a href=\"".$url."\" target=\"_blank\"><img src=\"".$url."\" border=\"0\" alt=\"可使用滑鼠滑輪放大縮小或點擊查看原圖\" onload=\"javascript:if(this.width>screen.width-333)  this.width=screen.width-333\" onmousewheel=\"return bbimg(this)\" onerror=\"src='images/common/nopic.gif'\";></a>";




 AL8 Forum © All rights reserved.
頂部
 xxxoxxx
 0013420
Rank: 3Rank: 3Rank: 3
點擊查看 xxxoxxx 的詳細資料

頭銜: Conqueror

帖子: 174

精華: 0

積分: 3520 點

現金: 498 元

存款: 3000 元

閱讀權限: 20

註冊: 2004-12-20

來自: 台北

狀態: 離線
 
發表於 2005-10-12 15:24  資料  個人空間  短消息  加為好友 
石沉大海...頂一下...




 AL8 Forum © All rights reserved.
頂部
 xxxoxxx
 0013420
Rank: 3Rank: 3Rank: 3
點擊查看 xxxoxxx 的詳細資料

頭銜: Conqueror

帖子: 174

精華: 0

積分: 3520 點

現金: 498 元

存款: 3000 元

閱讀權限: 20

註冊: 2004-12-20

來自: 台北

狀態: 離線
 
發表於 2005-10-24 02:25  資料  個人空間  短消息  加為好友 
修改城如下就OK了...
QUOTE:
"bbcodeurl('\\1', '<img src=\"%s\" border=\"0\" onload=\"if(this.width>screen.width*0.6) {this.resized=true; this.width=screen.width*0.6; this.alt=\'點擊在新窗口查看全圖,鼠標滾輪放大縮小\';}\" onmouseover=\"if(this.resized) this.style.cursor=\'hand\';\" onclick=\"if(this.resized) {window.open(this.src);}\" onmousewheel=\"return imgzoom(this);\">')",




 AL8 Forum © All rights reserved.
頂部

聯繫我們 - AL8 Forum - 網頁空間由 I-SERVICES 提供 - Archiver - WAP
清除 Cookies, 當前時區 GMT+8, 現在時間是 2008-12-3 08:56
Processed in 0.019698 second(s), 7 queries , Gzip enabled
Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.