JavaScript - Replacement

Status
Not open for further replies.

3xp0

Baseband Member
Messages
81
Hi all,
I have a question bout JS.
Let's say I have a chat room. There is a frame with messages. Each message go in format like that:
TIME: NICK: message
I need to put <!NICK!> under a JS function, like
<script>replace('NICK')</script>
The problem is to write function replace.
I need such function which would search for a specific NICK and if it found - would replace it with another. There will be more than one condition to search for also.
I hope someone can help.
 
Status
Not open for further replies.
Back
Top Bottom