• 修改ASPCMS升级扩展功能


    修改 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="""&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="""&slideWidthD&"px;height:"&slideHeightD&"px;margin:0px;padding:0px;border:none;"" alt="""&sTexts(i)&""" text="""&sTexts(i)&""" ></a></li>"&vbcrlf
    else 
    Str=Str&"<li><a href="""&sLinks(i)&""" target=""_blank""><img src="""&tempstr(i)&""" style="""&slideWidthD&"px;height:"&slideHeightD&"px;margin:0px;padding:0px;border:none;"" alt="""&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
  • 相关阅读:
    用归并排序或树状数组求逆序对数量 poj2299
    UVA10600 次小生成树
    最小生成树求最大比率 UVALive
    求树的重心 poj 1655
    求树的直径+并查集(bfs,dfs都可以)hdu4514
    树形DP+RMQ+尺取法 hdu4123
    区间dp 51nod1021
    LCS poj1080
    最长公共子序列hdu1503
    python No handlers could be found for logger错误的解决
  • 原文地址:https://www.cnblogs.com/yeminglong/p/4104078.html
Copyright © 2020-2023  润新知