Asp判断内容中是否存在图片asp
格式:
<%if instr("内容","<img")>0 then Response.Write("图片")%>
实例:
<%if instr(Rs("content"),"<img")>0 then Response.Write(" <img src=""/skin/tu.jpg"" width="...
格式:
<%if instr("内容","<img")>0 then Response.Write("图片")%>
实例:
<%if instr(Rs("content"),"<img")>0 then Response.Write(" <img src=""/skin/tu.jpg"" width=""19"" height=""19"" align=""absmiddle""/>")%>
<%if instr("内容","<img")>0 then Response.Write("图片")%>
实例:
<%if instr(Rs("content"),"<img")>0 then Response.Write(" <img src=""/skin/tu.jpg"" width=""19"" height=""19"" align=""absmiddle""/>")%>
我要评论