关于ASP问题急~~~
请问大家我如果要更改图片文件夹名,如何改列~~
就如下面得img src=""images/smiles/"改为img src=""images/"
如何更改法列???
dim log_Smilies,log_SmiliesContent
For Each log_Smilies IN Arr_Smilies
log_SmiliesContent=Split(log_Smilies,"|")
strContent=Replace(strContent,"[" & log_SmiliesContent(2) & "]"," <img src=""images/"&log_SmiliesContent(1)&""" alt="""& log_SmiliesContent(2) &""" />")
Next
End IF
参考答案:用replace("smiles/","")
如下
dim log_Smilies,log_SmiliesContent
For Each log_Smilies IN Arr_Smilies
log_SmiliesContent=Split(log_Smilies,"|")
strContent=Replace(strContent,"[" & log_SmiliesContent(2) & "]"," <img src=""images/"&log_SmiliesContent(1).replace("smiles/","")&""" alt="""& log_SmiliesContent(2) &""" />")
Next
End IF