|
A private window can be automatically created in 123 Flash Chat with some words to start the conversation. This makes it perfect as a one-to-one live support software.
Parameters "init_ private" and "init_private_message" can help you with "auto create private window".
Parameter |
value |
type |
Description |
init_private |
Receiver name |
string |
The receiver name in the destination room. |
init_private_message |
greeting |
string |
Words you would like to start with. |
For example:
If the user name = "abc"; password = "abc"; room id = "1"; the name of the person you want to talk to is "test"; and you want to create a private window by saying "hello", then the script to add into your html code is as follows:
<script language=“javascript”>
init_user=”myusername”;
init_password=”mypassword”;
init_room=”1001”;
init_private=”destusername”;
init_private_message=”message”;
openSWF('123flashchat.swf','634','476');
</script>
<noscript>
<DIV id=“flashchat”>
<OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0” WIDTH=“634” HEIGHT=“476” id=“topcmm_123flashchat”>
<PARAM NAME=movie VALUE=“123flashchat.swf?init_user=myusername&init_password=mypassword&init_room=1001 &init_private=destusername&init_private_message=message”>
<PARAM NAME=quality VALUE=“high”>
<PARAM NAME=“menu” value=“false”>
<EMBED src=“123flashchat.swf? init_user=myusername&init_password=mypassword&init_room=1001 &init_private=destusername&init_private_message=message” quality=high menu=false WIDTH=“634” HEIGHT=“476” TYPE=“application/x-shockwave-flash” PLUGINSPAGE=“http://www.macromedia.com/go/getflashplayer” scale=“noscale” name=“topcmm_123flashchat” swLiveConnect=“true”></EMBED>
</OBJECT>
</DIV>
The code above will enable you to automatically log in to the chat lobby using this account: username: abc, password: abc. And enter the room with id " 1" . If someone named "test" already exists in that room, a private window will be automatically created and the message: "hello" will be sent out. Of course you can remove the "init_private_message" section to cancel sending messages when creating private windows.
updated at 2008-2-28 |