码迷,mamicode.com
首页 > Web开发 > 详细

修改ASPCMS升级扩展功能

时间:2014-11-17 19:09:17      阅读:5706      评论:0      收藏:0      [点我收藏+]

标签:style   blog   io   color   ar   sp   java   for   div   

修改 inc/aspcms_templateFun.asp 查找"content=decodeHtml(rsObj("Content"))" 替换为”content=replace(decodeHtml(rsObj("Content")),"class=""lazy img-responsive"" src=","class=""lazy img-responsive"" src=""/images/grey.gif"" data-original=")“
增加jquery.lazyload.min.js支持图片延迟加载。
增加myfcus支持幻灯片
修改/config/AspCms_SlideConfig.asp
增加变量Const patternD="mF_classicHC"
在页面引入myFocus.js 2.4
在后台管理配置修改页面
修改/inc/aspcms_mainclass.asp 查找getslided函数
修改代码如下

Function getSlided
Dim Str,i,sTexts,sFiles,sLinks,tempstr 
Str="<script language=JavaScript type=text/javascript>"&vbcrlf& _ 
"myFocus.set({id:‘myfocus‘,pattern:‘"&patternD&"‘});"&vbcrlf& _
"</script>"&vbcrlf& _
"<div id=""myfocus"" style=""width:"&slideWidthD&"px;height:"&slideHeightD&"px;""><div class=""loading""></div>"&vbcrlf& _
"<div class=""pic"" >"&vbcrlf& _
"<ul class=""pclist"">"&vbcrlf& _
""
if not isnul(slideImgsD) then
tempstr = split(replace(left(slideImgsD,len(slideImgsD)-1)," ",""),",")
sTexts = split(replace(left(slideTextsD,len(slideTextsD)-1)," ",""),",")
sLinks = split(replace(left(slideLinksD,len(slideLinksD)-1)," ",""),",")
for i=0 to ubound(tempstr)
if slideTextStatus=0 then 
Str=Str&"<li><a href="""&sLinks(i)&""" target=""_blank""><img src="""&tempstr(i)&""" style=""width:"&slideWidthD&"px;height:"&slideHeightD&"px;margin:0px;padding:0px;border:none;"" "&sTexts(i)&""" text="""&sTexts(i)&""" ></a></li>"&vbcrlf
else 
Str=Str&"<li><a href="""&sLinks(i)&""" target=""_blank""><img src="""&tempstr(i)&""" style=""width:"&slideWidthD&"px;height:"&slideHeightD&"px;margin:0px;padding:0px;border:none;"" "&sTexts(i)&""" text="""&sTexts(i)&""" ></a></li>"&vbcrlf
end if
next
end if
Str=Str&"</ul>"&vbcrlf& _
"</div>"&vbcrlf& _
"</div>"&vbcrlf& _
"<!--end-->"

getSlided=Str
End Function

 

修改ASPCMS升级扩展功能

标签:style   blog   io   color   ar   sp   java   for   div   

原文地址:http://www.cnblogs.com/yeminglong/p/4104078.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!