We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[CODE]CHAT & BROWSE SIMULTANEOUSLY!; By alamir
Topic Started: Jan 25 2010, 09:15 AM (131 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: alamir
[CODE
 
CHAT & BROWSE SIMULTANEOUSLY!]This code allows you to chat in a shared chatroom WHILE browsing your forum at the same time.

Change the red text to the URL of your board and then, plug this below/above <%NAVIGATION%> :

Quote:
 
<SCRIPT LANGUAGE="JavaScript"><!--
// add chatroom while browsing
// Copyright: Copyright ©2005 Created by http://www.globalpersia.com
function newWindow(fileName,windowName) {
myRemote=window.open(fileName,windowName);
myRemote.location.href = fileName;
if (myRemote.opener == null) myRemote.opener = window;
}
//--></SCRIPT>

<FORM>
<INPUT TYPE="BUTTON" VALUE="Step1: Open New Window" onClick="newWindow('http://members.shaw.ca/alamir_novin/popup.html','control')">
<INPUT TYPE="BUTTON" VALUE="Step2: Load Chatroom into Window" onClick="myRemote.frameName1.location.href='http://www.YOUR-FORUM.com';
myRemote.frameName2.location.href='http://members.shaw.ca/alamir_novin/lcchat.html'";>
</FORM>



To activate the chatroom you have to press on 2 different buttons, the first to load a pop-up and the second to load the chatroom along with the forum into the pop-up.
I couldn't figure out how to make it one button..when I do I'll update.

Looks better on Mozilla than IE...cuz I coded it while testing Mozilla.

PREVIEW




To make a new room just type in the type box:

Quote:
 
/join #room-name
Replace the Red with the name of the new room you want. Remember to start room name with a # sign
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply