账号通
    

账号  

密码  

2050

查看

1

回复
主题:新手问个关于存图的问题 [收藏主题]  
joier 当前离线

1

主题

0

广播

0

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

用户积分:212 分
登录次数:1 次
注册时间:2008/7/20
最后登录:2008/7/20
joier 发表于:2008/7/20 16:33:00   | 只看该作者 查看该作者主题 楼主 
科汛在线商城系统(NET)

3.2中选择存图后,存下来的图片代码里会出现鼠标事件和Javascript等等,例如:

<img src="http://abcdef.cn/UpFiles/BeyondPic/2008-07/20087208576716298.jpg" border=0  style="cursor: pointer" alt="点此在新窗口浏览图片" onmousewheel="return bbimg(this)" onload="javascript:resizepic(this)" border="0"/>;

 

因为装了迅雷后一打开网页浏览器就会报错说"缺少对象",如果要让他存图时存储为:

<img src="http://abcdef.cn/UpFiles/BeyondPic/2008-07/20087208576716298.jpg" border=0/>

应该怎么做呢?

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
mt56 当前离线

4985

主题

53

广播

17

粉丝
添加关注
级别:版主

用户积分:23430 分
登录次数:1621 次
注册时间:2007/2/10
最后登录:2022/9/28
mt56 发表于:2008/7/20 17:05:00   | 只看该作者 查看该作者主题 沙发 
科汛在线考试系统(NET)

/KS_Cls/目录下找到:

         Content=re.replace(Content,"<img src=$2  style=""cursor: pointer"" alt=""点此在新窗口浏览图片"" onclick=""javascript:window.open(this.src);"" onmousewheel=""return bbimg(this)"" onload=""javascript:resizepic(this)"" border=""0""/>")

删除:  style=""cursor: pointer"" alt=""点此在新窗口浏览图片"" onclick=""javascript:window.open(this.src);"" onmousewheel=""return bbimg(this)"" onload=""javascript:resizepic(this)""

 

 border=""0"" 不喜欢也可以删除,因为反正没有连接了。

最终变成:

         Content=re.replace(Content,"<img src=$2 />")

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