您正在使用 IPV4 [54.82.44.149] 访问本站,您本次已经查看了 1 页
用户名: 密 码: 验证码:     用QQ登录本站
首页 软件 编程 笑话 知识 公告 台风 日历 计算器
悟空收录网       [公益]保护绿色环境,构建和谐社会      

【腾讯云】 爆款2核2G3M云服务器首年 61元,叠加红包再享折上折      
[公益] 地球是我家,绿化靠大家      
2024年 清明节 007
2024年 劳动节 034
2025年 元 旦 279
2025年 春 节 307
 
您现在的位置:首页 >> ASP/ASP.net >> 内容
本类新增
本类热门
格式化远程图片地址为本地位置
内容摘要: '*****************************************************************'function(公有)'作用:格式化远程图片地址为本地位置'参数:imgurl(远程图片地址),imgfolder(本地图片目录),fristname(加入的前缀名称)'***************************......
'*****************************************************************

'function(公有)

'作用:格式化远程图片地址为本地位置

'参数:imgurl(远程图片地址),imgfolder(本地图片目录),fristname(加入的前缀名称)

'*****************************************************************

PublicFunctionFormatImgPath(byrefImgUrl,byrefImgFolder,byrefFristName,byrefnoimg)

strpath=""

ImgUrl=ImgUrl

ifinstr(ImgUrl,"Nophoto")orlenb(GetData(ImgUrl,0))<=0then

strpath=noimg

Response.Write""&strpath&""&vbcrlf

else

ifInstr(ImgUrl,".asp")then

strpath=FristName&"_"&Mid(ImgUrl,InStrRev(ImgUrl,"=")+1)&".jpg"

else

strpath=FristName&"_"&Mid(ImgUrl,InStrRev(ImgUrl,"/")+1)

endif

strpath=ImgFolder&"/"&strpath

strpath=Replace(strpath,"//","/")

ifleft(strpath,1)="/"thenstrpath=right(strpath,len(strpath)-1)

strpath=trim(strpath)

Response.Write""&strpath&""&vbcrlf

savedataImgUrl,strpath

endif

FormatImgPath=strpath

Endfunction

版权声明:本内容来源于网络,如有侵犯您的版权,请联系站长,本站收到您的信息后将及时处理。
上一篇:用asp实现检测文件编码

 

下一篇:取得远程数据

发布日期:2022/11/14
手机扫二维码直达本页
发布时间:18:37:34
点  击:13
录  入:齐天大圣
相关文章
Baidu
YiJiaCMS 7.3.8 build231228(MSSQL) 闽ICP备05000814号-1
本空间由腾讯云(轻量应用服务器)提供,Cloudflare提供加速防护
运行时间载入中.....