濮阳杆衣贸易有限公司

主頁 > 知識庫 > 用asp實現(xiàn)網(wǎng)址和郵件地址的轉(zhuǎn)換函數(shù)

用asp實現(xiàn)網(wǎng)址和郵件地址的轉(zhuǎn)換函數(shù)

熱門標(biāo)簽:高質(zhì)量的電銷外呼系統(tǒng) 電銷機器人采購 外呼系統(tǒng)怎么話費 滴滴地圖標(biāo)注上車點 地圖標(biāo)注還可以做嗎 友邦互聯(lián)電銷機器人違法嗎 硅基電話機器人加盟 無營業(yè)執(zhí)照地圖標(biāo)注教學(xué) 宿州防封外呼系統(tǒng)平臺
網(wǎng)址和郵件地址的轉(zhuǎn)換函數(shù)
%
function URLconvert(str) 
convertstr=str
urlLocation=instr(convertstr,"http://")

if (urlLocation=0) and (mailLocation=0) then 
URLconvert=convertstr
exit function
end if

if urlLocation>0 then
rightstr=str
Do while urlLocation>urlLocationend
urlLocation=instr(rightstr,"http://")
urlLocationend=InStrRev(rightstr,"http://")
finalstr=finalstrleft(rightstr,urlLocation-1)
midurlstr=mid(rightstr,urlLocation+1,1)
do while (asc(midurlstr)>=45) and (asc(midurlstr)=126)
loopint=loopint+1
midurlstr=mid(rightstr,urlLocation+loopint,1)
if midurlstr="" then exit do
loop
endURLstr=mid(rightstr,urllocation,loopint)
URLstr="a href="endURLstr">"endURLstr"/a>"
rightstr=mid(rightstr,urllocation+loopint)
finalstr=finalstrURLstr
loopint=1
Loop 
end if
finalstr=finalstrrightstr

convertstr1=finalstr
finalstr=""
mailLocation=instr(convertstr1,"@")
if mailLocation>0 then
Do while mailLocation>mailLocationend
mailLocation=instr(convertstr1,"@")
mailLocationend=InStrRev(convertstr1,"@")
mainmidmailstr=mid(convertstr1,mailLocation+1,1)
midmailstr=mainmidmailstr
do while (asc(midmailstr)>=45) and (asc(midmailstr)=126)
loopint1=loopint1+1
midmailstr=mid(convertstr1,mailLocation-loopint1,1)
loop
firstSTR=mid(convertstr1,mailLocation-loopint1+1,loopint1-1)

finalstr=finalstrleft(convertstr1,mailLocation-loopint1)

midmailstr1=mainmidmailstr 
do while (asc(midmailstr1)>=45) and (asc(midmailstr1)=126)
loopint2=loopint2+1
midmailstr1=mid(convertstr1,mailLocation+loopint2,1)
if midmailstr1="" then exit do
loop
secondSTR=mid(convertstr1,mailLocation,loopint2)

endmailstr=firstSTRsecondSTR
mailstr="a href=mailto:"endmailstr">"endmailstr"/a>"
finalstr=finalstrmailstr
convertstr1=mid(convertstr1,maillocation+loopint2)
loopint1=1
loopint2=1
Loop
end if
finalstr=finalstrconvertstr1
URLconvert=finalstr
end function
%> 
您可能感興趣的文章:
  • ASP用JMail、CDO發(fā)送郵件
  • Jmail組件發(fā)送郵件之絕對能用的函數(shù)
  • asp jmail發(fā)郵件 詳細解析
  • asp.net2.0實現(xiàn)郵件發(fā)送(測試成功)
  • Jmail 圖文安裝教程 asp在線發(fā)送郵件組件
  • ASP.Net郵箱發(fā)郵件實例代碼
  • .net jMail郵件發(fā)送(含抄送、密送、多發(fā)、日志記錄)實例代碼
  • asp.net發(fā)郵件的幾種方法匯總
  • Jmail發(fā)送郵件與帶附件亂碼解決辦法分享
  • asp.net發(fā)送郵件示例分享
  • asp.net發(fā)郵件示例
  • asp.net發(fā)送郵件實現(xiàn)方法
  • asp+JMAIL實現(xiàn)發(fā)送郵件

標(biāo)簽:儋州 宣城 錫林郭勒盟 廣元 七臺河 新余 江門 雅安

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《用asp實現(xiàn)網(wǎng)址和郵件地址的轉(zhuǎn)換函數(shù)》,本文關(guān)鍵詞  用,asp,實現(xiàn),網(wǎng)址,和,郵件,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《用asp實現(xiàn)網(wǎng)址和郵件地址的轉(zhuǎn)換函數(shù)》相關(guān)的同類信息!
  • 本頁收集關(guān)于用asp實現(xiàn)網(wǎng)址和郵件地址的轉(zhuǎn)換函數(shù)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    昌都县| 湖南省| 南皮县| 长泰县| 朝阳区| 绥中县| 永吉县| 察雅县| 托里县| 武平县| 嫩江县| 铁岭县| 临邑县| 博客| 雷波县| 东辽县| 曲周县| 新疆| 德格县| 奉化市| 茂名市| 淮北市| 健康| 上蔡县| 大足县| 金阳县| 普安县| 南宫市| 民和| 红桥区| 阿克陶县| 朝阳市| 吉林市| 武宣县| 湾仔区| 太仆寺旗| 昆明市| 寿光市| 堆龙德庆县| 元阳县| 青川县|