Please Guys, I want to run a script which will replace text with an image, either when it's been typed in an input field or it's outputted from the database: here is my code:
<script type="text/javascript" src="jquery.js"></script>
<script>
":-)".replace(/\([0-z]+)\/g,"<img src='smiling_face.gif' />");
</script>