引用 | 编辑
koshuchung
2006-02-15 13:48 |
楼主
▼ |
||
x0
[4.01][加强] 修正图片随鼠标滚轮缩放 【适用版本】4.0.1 & 4.32 【插件来源】修改转贴自晨秋 (http://bbs.mychat.to/read.php?tid=331057 ) 【插件类型】加强 【是否升级资料库】否 【插件介绍】http://bbs.mychat.to/read.php?tid=331057 晨秋发布此处之图片随鼠标滚轮缩放在PHPWIND 4.0.1 & 4.32版本发生错误;在签名栏以及版面无法缩放图形。回应 RETURM TWIND_CODE_1" 。 引用晨秋***适用于3.01之前版本 复制程式 修改文件 /require/bbscode.php 1.在顶部增加 <script> function bbimg(o){ var zoom=parseInt(o.style.zoom,10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%'return false; } </script> 2.搜索function cvpic($url,$type=''),把整个函数部分替换成下面内容 function cvpic($url,$type='') { global $db_bbsurl,$picpath,$attachpath; global $code_num,$code_htm; $code_num++; if(strtolower(substr($url,0,4))!='http' && !$type)$url='http'.$url; $code="<a href='$url' TARGET=_blank><img ALT='可使用鼠标滚轮缩放' src='$url' border=0 onload='javascript:if(this.width>screen.width-460)this.width=screen.width-460' onmousewheel='return bbimg(this)'></a>"; $code_htm[-1][$code_num]=$code; if($type){ return $code; } else{ return "[\twind_code_$code_num\t]"; } } 引用晨秋***适用于4.01之后版本 复制程式 修改文件 /require/bbscode.php 1.在顶部增加 <script> function bbimg(o){ var zoom=parseInt(o.style.zoom,10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%'return false; } </script> 2.搜索function cvpic($url,$type=''),把整个函数部分替换成下面内容 function cvpic($url,$type='') { global $db_bbsurl,$picpath,$attachpath; global $code_num,$code_htm; $code_num++; if(strtolower(substr($url,0,4))!='http' && !$type)$url='http'.$url; $code="<a href='$url' TARGET=_blank><img ALT='可使用鼠标滚轮缩放' src='$url' border=0 onload='javascript:if(this.width>screen.width-460)this.width=screen.width-460' onmousewheel='return bbimg(this)'></a>"; $code_htm[-1][$code_num]=$code; if($type){ return $code; } else{ return "<\twind_code_$code_num\t>"; } } 这里不同了 return "<\twind_code_$code_num\t>"; x0
|
引用 | 编辑
my0939245752
2006-06-09 09:30 |
1楼
▲ |
抱歉请问大大顶部是哪?最顶端嘛?
function cvpic($url,$type=''),把整个函数部分替换成下面内容 ====>所谓的整个是这一句嘛? x0 |