Hi there, i have a website i am working on and i want to be able to let users use smiles but i cant get them to work. Any ideas here is my main body
Code:
<%function smilify(chatText) dim smileys(10) dim smileyGraphics(10) smileys(0) = ":)" smileys(1) = ":S" smileys(2) = ";)" smileyGraphics(0) = "<img src='smiley0.gif'>" smileyGraphics(1) = "<img src='smiley1.gif'>" smileyGraphics(2) = "<img src='smiley2.gif'>" dim fixedText for x = 0 to 9 fixedText = replace(chatText, smileys(x), smileyGraphics(x)) next response.write fixed text end function %> <% smilify(RSsb("RSmsg")) %>
Comment