首页 > 常识 > 互联网 > 网站制作 > CMS

动易内容模板删除无级缩放图片大小代码

作者:何为  时间:2016-07-21
描述:打开admin下面的Admin_Template.asp,找到"解决正文页用户删除图片js 问题",把下面的一段代码全部注释掉。
在动易没开源之前,我就一直为这段代码所困扰,好端端的非要在头部加上无级缩放图片大小的代码,还删不掉,保存后又出来了,害得我每次只能进数据库删除。现在好了,开源了,马上删之。
 
打开admin下面的Admin_Template.asp,找到"解决正文页用户删除图片js 问题",把下面的一段代码全部注释掉。
    '解决正文页用户删除图片js 问题
    'strPhotoJs = "<script language=""JavaScript"">" & vbCrLf
    'strPhotoJs = strPhotoJs & "<!--" & vbCrLf
    'strPhotoJs = strPhotoJs & "//改变图片大小" & vbCrLf
    'strPhotoJs = strPhotoJs & "function resizepic(thispic)" & vbCrLf
    'strPhotoJs = strPhotoJs & "{" & vbCrLf
    ''strPhotoJs = strPhotoJs & "if(thispic.width>700) thispic.width=700;" & 
vbCrLf
    'strPhotoJs = strPhotoJs & "  return true;" & vbCrLf
    'strPhotoJs = strPhotoJs & "}" & vbCrLf
    'strPhotoJs = strPhotoJs & "//无级缩放图片大小" & vbCrLf
    'strPhotoJs = strPhotoJs & "function bbimg(o)" & vbCrLf
    'strPhotoJs = strPhotoJs & "{" & vbCrLf
    ''strPhotoJs = strPhotoJs & "  var zoom=parseInt(o.style.zoom, 10)||100;" & 
vbCrLf
    ''strPhotoJs = strPhotoJs & "  zoom+=event.wheelDelta/12;" & vbCrLf
    ''strPhotoJs = strPhotoJs & "  if (zoom>0) o.style.zoom=zoom+'%';" & vbCrLf
    'strPhotoJs = strPhotoJs & "  return true;" & vbCrLf
    'strPhotoJs = strPhotoJs & "}" & vbCrLf
    'strPhotoJs = strPhotoJs & "-->" & vbCrLf
    'strPhotoJs = strPhotoJs & "</script>" & vbCrLf
    'strPhotoJs = strPhotoJs & "</head>" & vbCrLf
    'If TemplateType = 3 Then
    '    If InStr(Content, "resizepic(thispic)") <= 0 Or InStr(Content, 
"bbimg(o)") <= 0 Then
    '        'Content = Replace(Content, "</head>", strPhotoJs)
    '    End If
    'End If
ok,搞定,再也没烦恼了。

从手机浏览器访问《生活宝典》

站内搜索
  • 动易标签与JS文件说明
  • 动易SiteWeaver安装后的注意事项
  • 动易SiteWeaver版文章频道标签介绍
  • 动易网站管理系统标签的修改
  • 全能站内搜索引擎代码
  • 循环子栏目封面模板一行两列的代码
  • 内容存文本要注意两点
  • dreamweaver 圆角表格制作代码
  • 如何调用增加信息时的简介内容?
  • 帝国最后更新代码的区别使用
  • 微商帮
    世界网站大全
    中国科研团队:大象的长鼻子是如何越变越长了
    中国科研团队:大象的长
    自己是否能够像自己想的那样做成一件事,身旁人的判断会比自己准确
    自己是否能够像自己想
    火宫殿:吃喝玩乐看,烧香拜神佛,红火的庙会经济
    火宫殿:吃喝玩乐看,烧香
    眼见为实也不为实,更须谨慎看到的并非全貌
    眼见为实也不为实,更须