Tror jag löst det med en riktigt omständig metod men men:
chatTxt = safeF("chattxt")
if instr(left(chatTxt,7),"http://") and _
instr(right(chatTxt,4),".jpg") or _
instr(right(chatTxt,4),".gif") or _
instr(right(chatTxt,4),".png") then _
chatTxt = "<img src=""proxy.asp?url="& chatTxt &""">"
if instr(left(chatTxt,7),"http://") and _
not instr(right(chatTxt,4),".jpg") and _
not instr(right(chatTxt,4),".gif") and _
not instr(right(chatTxt,4),".png") then _
chatTxt = "<a href="""& chatTxt &""">"& chatTxt
Bör väll finnas nått enklare alternativ?
