pouncer Posted November 30, 2006 Share Posted November 30, 2006 function EmotReplace(text) { text.repace("/:)/, '<img src="emoticons/smile.gif">')"; }whats wrong with that. if the user types :) : ) i want it to show the smile.gif Quote Link to comment Share on other sites More sharing options...
joshi_v Posted December 1, 2006 Share Posted December 1, 2006 Just check the spelling of replace function! ;) Quote Link to comment Share on other sites More sharing options...
fenway Posted December 6, 2006 Share Posted December 6, 2006 Also, you need to assign it back... your lvalue is missing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.