????مايو 26th 2011, 6:56 pm
زائر
كود شات غرفة خاص بك دردش ع كيفك
<script language="Javascript">
<!--
function formIsValid() {
// check to make sure a valid username has been entered
if ( document.login.username.value == "" ) {
alert('Please fill in username field');
return false;
}
return true;
}
function popupLogin() {
// check to make sure a valid username has been entered
if (!formIsValid()) return;
var username = document.login.username.value;
// the size of the popup window
var width = 600;
var height = 400;
// the x,y position of the popup window
// NOTE: this formula will auto-center the popup on the screen
var y = (screen.height - height) / 2;
var x = (screen.width - width) / 2;
var url = "http://www.ormanonline.com/chat/flashchat.php?username=" + username;
var options = "width=" + width + ",height=" + height + ",top=" + y + ",left=" + x + ",resizable";
// open the chat window as a popup, instead of embedded in webpage
window.open( url, "chat", options );
}
//-->
</script>
<table border="0" cellpadding="2" cellspacing="4" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="100%"> <form action="http://www.ormanonline.com/chat/flashchat.php" method="post" name="login"> <fieldset style="padding: 2; text-align:center" dir="rtl">
<legend align="right"><span lang="ar-sa"><font face="Tahoma" size="2" color="#FF0000">
الدردشة</font></span></legend>
<table border="0" cellpadding="2" cellspacing="4" id="AutoNumber1" dir="rtl">
<tr>
<font face="Arabic Transparent" color="#0080FF">
<td align="center">
<font face="Tahoma" size="2" color="#0099FF">اسمك</font></td>
<td align="center"><input type="text" name="username" size="12"></td>
</font>
</tr>
<tr>
<td align="center" colspan="2">
<font face="Tahoma" color="#0080FF"><input name="button" type="button" onClick="javascript:popupLogin();" value="Connect" style="background-color: #F6EFDD; font-family:tahoma"></font></td>
</tr>
</table>
</fieldset></form>
</td>
</tr>
</table>