账号通
    

账号  

密码  

4312

查看

3

回复
主题:如何让文章图片去掉自由缩放功能 [收藏主题] 转到:  
jinsong 当前离线

75

主题

0

广播

3

粉丝
添加关注
级别:学前班

用户积分:1027 分
登录次数:53 次
注册时间:2009/6/13
最后登录:2010/2/7
jinsong 发表于:2009/6/24 16:33:00   | 显示全部帖子 查看该作者主题 楼主 

Kesion.Label.CommonCls.asp最后,


     '将SRC不带引号的图片地址加上引号
            re.Pattern = "<img.*?\ssrc=([^\""\'\s][^\""\'\s>]*).*?>"
            Content = re.Replace(Content, "<a " & LinkStr & "><img src=""$2"" alt=""点击浏览下一页"" onmousewheel=""return bbimg(this)"" onload=""javascript:resizepic(this)"" border=""0""/></a>")
     '正则匹配图片SRC地址
     re.Pattern = "<img.*?\ssrc=([\""\'])([^\""\']+?)\1.*?>"
           Content = re.Replace(Content, "<a " & LinkStr & "><img src=""$2"" alt=""点击浏览下一页"" onmousewheel=""return bbimg(this)"" onload=""javascript:resizepic(this)"" border=""0""/></a>")


删除,然后将内容页模板中的前面一部分的缩放JS代码也删除

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.06250秒 powered by KesionCMS 9.0