Add a Tiny IRC to Your Webpage
By GlimerMann
(March 25, 2001)
This weeks tip is a bit out of the ordinary. I know many of you like to visit the chatrooms to chat with your friends. I even pop in them occasionally.
I think you will find this little gem to be as valuable as I do. It is an IRC (internet relay chat) that you can literally put on your webpage for easy access. It is very tiny in size, easy to use, and yet packed with features.
Just cut copy and paste the script below and add it to an existing webpage or put it on one of its own. Here are a couple things you will need to know:
- Every where in this script where it says tinyirc.html you need to put your new filename.
- Where it says port, serv and channel, you can change the channel to your room, or you can leave it as is and use the /join command to change rooms once in the IRC.
- Always put these tiny chats at the bottom of you webpage so you do not mess up any of the rest of your content.
Here are a few of its features:
- While using the tiny IRC you can type /join to change rooms.
- You can type /server to change servers.
- It has 2 built in msg's to whisper to anyone on the same server you are on, and a whisper on the right side to view who is in the room as well as whisper to anyone 1 on 1.
Here are commands you can use with it:
- /ban -- bans someone from the room.
- /unban -- let them back in.
- /topic -- tells you what the room topic is.
- /auth -- name of the person who designed this particular one.
- /me -- prints your typing in purple.
- /tc -- takes you to the Talkcity server.
- /turner -- turner server.
- /under -- undernet server.
- /dal -- dalnet server.
- /Xworld -- Xworld server.
- /zuh -- Zuhnet sever.
Remember, this is JavaScript. So do not move any of the script around while editing. If you do have any problems, it is easier to simply start over.
I have an example below for you to test out if you would like.
CLICK HERE TO TRY IT
Have fun and see you next time. GlimerMann
|