Site icon HTML5chat, free html5 video chat

How to alternate news in the chat ?

news

news

News allows you to display special infos in your chat. You can set news at certain date/time, you can set the interval and associate a news to a room.

But you could not alternante news: imagine that scenario. You have 3 news whose content is “Here is news 1”, “Here is news 2 “, “Here is news 3” and you would like to display randomly one of these 3 news every 3 minutes.

The solution is to create 1 singe “big” news and separate the news with the character |

In our case the content of the news would be:

Here is news 1|Here is news 2|Here is news 3

That way the chat will pick up randomly one part (separated by | ) and display it into the chat.

Exit mobile version