AL8 Forum
   登錄註冊幫助


標題: 用滑鼠推杆將貼圖放大縮小(一般插入圖片-[img])
 trail
 0019277
Rank: 2Rank: 2

頭銜: Member

帖子: 83

精華: 0

積分: 1030 點

現金: 246 元

存款: 0 元

閱讀權限: 15

註冊: 2005-4-14

狀態: 離線
 
發表於 2005-5-9 19:09  資料  個人空間  短消息  加為好友 
用滑鼠推杆將貼圖放大縮小(一般插入圖片-[img])

呢次係我第一次發呢種帖,
如果講得唔好,
請原諒...


1.

模板header.htm

在最尾加上
<script language="JavaScript" type="text/javascript">
function bbimg(o){var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';return false;}
function Download(ForumNo,TopicNo,ReplyNo){
document.Download.forum.value=ForumNo;
document.Download.topic.value=TopicNo;
document.Download.reply.value=ReplyNo;
document.Download.submit();
}
</script>





2.

./include/discuzcode.php


<img src=\"%s\" border=\"0\" alt=\"點擊查看圖\" onload=\"javascript:if (this.width>screen.width-333) this.width=screen.width-333;\" onerror=\"src=\'images/common/nopic.gif\'\">


改為
<img src=\"%s\" border=\"0\" alt=\"點擊查看圖\" onload=\"javascript:if (this.width>screen.width-333) this.width=screen.width-333;\" onerror=\"src=\'images/common/nopic.gif\'\" onmousewheel=\"return bbimg(this)\">


再找
<img src=\"".$url."\" border=\"0\" alt=\"點擊查看全圖\" onload=\"javascript:if(this.width>screen.width-333)  this.width=screen.width-333\" onerror=\"src='images/common/nopic.gif'\";>


改為
<img src=\"".$url."\" border=\"0\" alt=\"點擊查看全圖\" onload=\"javascript:if(this.width>screen.width-333)  this.width=screen.width-333\" onerror=\"src='images/common/nopic.gif'\" onmousewheel=\"return bbimg(this)\";>


再找
<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\';}\" onmouseover=\"if(this.alt) this.style.cursor=\'hand\';\" onclick=\"if(this.alt) window.open(\'%s\');\">


改為
<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\';}\" onmouseover=\"if(this.alt) this.style.cursor=\'hand\';\" onclick=\"if(this.alt) window.open(\'%s\');\" onmousewheel=\"return bbimg(this)\">


完成!!!

[此帖最後由 trail 在 2005-5-9 於 19:22 修改]




 AL8 Forum © All rights reserved.
頂部
 kenken
 0000876
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 kenken 的詳細資料

頭銜: Lord

帖子: 330

精華: 0

積分: 3980 點

現金: 324 元

存款: 7690 元

閱讀權限: 25

註冊: 2004-3-22

來自: hk

狀態: 離線
 
發表於 2005-5-19 03:19  資料  個人空間  主頁 短消息  加為好友 
我正想要呢個多謝晒你…!^_^




如果您有時間就黎我個論壇玩下啦,包正:
 AL8 Forum © All rights reserved.
頂部
 Nark
 0021575
Rank: 1

頭銜: Newbie

帖子: 11

精華: 0

積分: 110 點

現金: 70 元

存款: 0 元

閱讀權限: 10

註冊: 2005-5-18

狀態: 離線
 
發表於 2005-5-19 09:41  資料  個人空間  短消息  加為好友 
我正想要呀支持




 AL8 Forum © All rights reserved.
頂部
 span
 0021180
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1466

精華: 0

積分: 700 點

現金: 50 元

存款: 7511 元

閱讀權限: 70

註冊: 2005-5-14

來自: 東涌

狀態: 離線
 
發表於 2005-7-10 11:11  資料  個人空間  主頁 短消息  加為好友  添加 span 為MSN好友 通過MSN和 span 交談 ICQ 狀態
我都想要呀~




 AL8 Forum © All rights reserved.
頂部
 ztron
 0022260
Rank: 1

頭銜: Newbie

帖子: 3

精華: 0

積分: 30 點

現金: 35 元

存款: 100 元

閱讀權限: 10

註冊: 2005-5-26

狀態: 離線
 
發表於 2005-7-10 13:40  資料  個人空間  短消息  加為好友 
我想要呀~~~




 AL8 Forum © All rights reserved.
頂部
 思思魚
 0016256
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 117

精華: 0

積分: 1466 點

現金: 84 元

存款: 0 元

閱讀權限: 20

註冊: 2005-2-7

狀態: 離線
 
發表於 2005-10-31 13:37  資料  個人空間  短消息  加為好友  ICQ 狀態
謝謝唷......




 AL8 Forum © All rights reserved.
頂部
 yungsachu
 0028748
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6
點擊查看 yungsachu 的詳細資料

頭銜: Forum Legend

帖子: 1237

精華: 0

積分: 8620 點

現金: 84 元

存款: 0 元

閱讀權限: 70

註冊: 2005-8-18

狀態: 離線
 
發表於 2005-11-1 21:15  資料  個人空間  短消息  加為好友 
請問同alan888的有什麼不同!




 AL8 Forum © All rights reserved.
頂部

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