<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <title>Мобильная версия - www.vladlena.smchat.ru</title> </head> <style> body {margin:0px; padding:0px; color:000000; font:11px Verdana; } a,a:active{color:#005DB5; font: 11px Verdana; text-decoration: none;} a:hover{text-decoration: underline;} </style> <script> var mynick=''; var myid=''; var engine=''; function wr(wr) {parent.left.document.write(wr);} function up() {parent.left.scroll(0,10000000);} function sendto(text) {var obj=document.getElementsByName('text0')[0]; obj.value+=text; obj.focus();} function msg_flood() { alert('В чате включен антифлудер, вы неможете писать чаще чем разрешенно админом!');} function msg_send() { var obj=document.getElementsByName('text0')[0]; var text=obj.value; obj.value="";if(!text) return false; document.getElementsByName('text')[0].value=text; } var loaded=0; var u=new Array(); function pr() { if(!loaded) return; var obj=document.getElementById('users'); var online="";var count=0; for (nick in u) if(u[nick][0]==1) { set_nick="<a href=# onclick='parent.sendto(\""+nick+": \"); return false;'><font color=#"+u[nick][1]+">"+nick+"</font></a>"; if(online) online+=", "; online+=set_nick; count++; } obj.innerHTML="В чате ("+count+"): <b>"+online+"</b><br><br>"; } function f(room,cmd,nick,tonick,text,time,colornick,color,var9,var10,var11,var12,var13,var14) { set_nick="<a href=# onclick='parent.sendto(\""+nick+": \"); return false;'><font color=#"+colornick+">"+nick+"</font></a>"; if(cmd==0 || cmd==1 || cmd==2 || cmd==3) wr(set_nick+": "+text+" ("+time+")<br>"); if(cmd==1 || cmd==2) wr(set_nick+":<b>(приватно)</b> "+text+" ("+time+")<br>"); if(cmd==3) wr(set_nick+":<b>(важно)</b> "+text+" ("+time+")<br>"); if(cmd==6) {if(text=='0') wr("<i>К нам приходит "+set_nick+" ("+time+")</i><br>");u[nick]=new Array(1,colornick); pr();} if(cmd==7) {if(text=='1') wr("<i>С нами прощается "+set_nick+" ("+time+")</i><br>");u[nick]=new Array(0,colornick); pr();} parent.up(); } //ajax var ajaxon=0; var http = null; var ajaxreq=0; function ajax(start) { if(ajaxreq) return; ajaxreq=1; var file="./ajax.html?sess="+myid+"&r="+Math.random(1); if(start) { ajaxon=1; file+="&start=1"; parent.left.location.href="start.html?123"; window.setInterval("ajax()",15000); } if(engine=="js") {file+="&js=1"; parent.write.location.href=file; ajaxreq=0;return;} //Mozilla, Opera, Safari, IE7, else IE6 if (typeof XMLHttpRequest != 'undefined') {http = new XMLHttpRequest();} else { try {http = new ActiveXObject("Msxml2.XMLHTTP");} catch(e) {try {http = new ActiveXObject("Microsoft.XMLHTTP");} catch(e) {http = null;}} } if (http) { http.open('GET', file, true); http.onreadystatechange = new Function("if(http.readyState != 4) return; parent.left.document.write(http.responseText);ajaxreq=0;"); http.send(null); }} </script> <body id=body> <form action='' method=post id=enter style='text-align:center;'> <b>Мобильная версия</b><br><br> Ник<br> <input type=text name=nick style='width:134px;'><br> Пароль<br> <input type=password name=pass style='width:134px;'><br> Движок<br> <select name=engine style="width:140px;"> <option value="">непрерывный</option> <option value="ajax">AJAX движок</option> <option value="js">JS refresh</option> </select><br> <input type=submit value='Войти в чат' style='width:140px;'><br> <br> <a href=?inc=wap>WAP2.0</a> | <a href=?inc=mobile>Mobile</a> </form> <div id=inchat> <center> <form action='index.php?inc=write' method=post target=write onsubmit='return msg_send();'> <iframe id=left src=start.html name=left style='width:150px;'></iframe><br> <script> document.write("<input type=hidden name=nick value='"+parent.mynick+"'>"); document.write("<input type=hidden name=id value='"+parent.myid+"'>"); </script> <input type=hidden name=text> <input id=text0 type=text name=text0 style='width:110px;' > <input type=submit value='ОК' title='Отправить' style='width:30px;'> <input type=submit value='@' title='Приватно' style='width:30px;' onclick="document.getElementById('text0').value='/privat '+document.getElementById('text0').value;"> <br> <div id=users style='width:150px;'></div> </form> </center> <iframe name=write src=start.html width=0 height=0 style='visibility:hidden;'></iframe> </div> <script> //document.body.clientHeight; var width=document.getElementById('body').clientWidth; var height=document.getElementById('body').clientHeight; if(!width) width=200; if(!height) height=200; //alert(width+"x"+height); if(width>480) width=480; if(height>480) height=480; document.getElementById('users').style.width=(width-25); document.getElementById('left').style.width=(width-25); document.getElementById('left').style.height=(height-50); document.getElementById('text0').style.width=(width-90); //load chat if(mynick=='' || myid=='') document.getElementById('inchat').style.display='none'; else { document.getElementById('enter').style.display='none'; if(engine=="ajax" || engine=="js") {ajax(1);} else parent.left.location.href="irc.html?"+myid; } </script> </body> </html>
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <title>Мобильная версия</title> </head> <style> body {margin:0px; padding:0px; color:000000; font:11px Verdana; } a,a:active{color:#005DB5; font: 11px Verdana; text-decoration: none;} a:hover{text-decoration: underline;} </style> <script> var mynick='%nick%'; var myid='%myid%'; var engine=''; function wr(wr) {parent.left.document.write(wr);} function up() {parent.left.scroll(0,10000000);} function sendto(text) {var obj=document.getElementsByName('text0')[0]; obj.value+=text; obj.focus();} function msg_flood() { alert('В чате включен антифлудер, вы не можете писать чаще чем разрешено админом!');} function msg_send() { var obj=document.getElementsByName('text0')[0]; var text=obj.value; obj.value="";if(!text) return false; document.getElementsByName('text')[0].value=text; } var loaded=0; var u=new Array(); function pr() { if(!loaded) return; var obj=document.getElementById('users'); var online="";var count=0; for (nick in u) if(u[nick][0]==1) { set_nick="<a href=# onclick='parent.sendto(\""+nick+": \"); return false;'><font color=#"+u[nick][1]+">"+nick+"</font></a>"; if(online) online+=", "; online+=set_nick; count++; } obj.innerHTML="В чате ("+count+"): <b>"+online+"</b><br><br>"; } function f(room,cmd,nick,tonick,text,time,colornick,color,var9,var10,var11,var12,var13,var14) { set_nick="<a href=# onclick='parent.sendto(\""+nick+": \"); return false;'><font color=#"+colornick+">"+nick+"</font></a>"; if(cmd==0 || cmd==1 || cmd==2 || cmd==3) wr(set_nick+": "+text+" ("+time+")<br>"); if(cmd==1 || cmd==2) wr(set_nick+":<b>(приватно)</b> "+text+" ("+time+")<br>"); if(cmd==3) wr(set_nick+":<b>(важно)</b> "+text+" ("+time+")<br>"); if(cmd==6) {if(text=='0') wr("<i>К нам приходит "+set_nick+" ("+time+")</i><br>");u[nick]=new Array(1,colornick); pr();} if(cmd==7) {if(text=='1') wr("<i>С нами прощается "+set_nick+" ("+time+")</i><br>");u[nick]=new Array(0,colornick); pr();} parent.up(); } //ajax var ajaxon=0; var http = null; var ajaxreq=0; function ajax(start) { if(ajaxreq) return; ajaxreq=1; var file="./ajax.html?sess="+myid+"&r="+Math.random(1); if(start) { ajaxon=1; file+="&start=1"; parent.left.location.href="start.html?123"; window.setInterval("ajax()",15000); } if(engine=="js") {file+="&js=1"; parent.write.location.href=file; ajaxreq=0;return;} //Mozilla, Opera, Safari, IE7, else IE6 if (typeof XMLHttpRequest != 'undefined') {http = new XMLHttpRequest();} else { try {http = new ActiveXObject("Msxml2.XMLHTTP");} catch(e) {try {http = new ActiveXObject("Microsoft.XMLHTTP");} catch(e) {http = null;}} } if (http) { http.open('GET', file, true); http.onreadystatechange = new Function("if(http.readyState != 4) return; parent.left.document.write(http.responseText);ajaxreq=0;"); http.send(null); }} </script> <body id=body> <form action='' method=post id=enter style='text-align:center;'> <b>Мобильная версия</b><br><br> Ник<br> <input type=text name=nick style='width:134px;'><br> Пароль<br> <input type=password name=pass style='width:134px;'><br> Движок<br> <select name=engine style="width:140px;"> <option value="">непрерывный</option> <option value="ajax">AJAX движок</option> <option value="js">JS refresh</option> </select><br> <input type=submit value='Войти в чат' style='width:140px;'><br> <br> <a href=?inc=wap>WAP2.0</a> | <a href=?inc=mobile>Mobile</a> </form> <div id=inchat> <center> <form action='index.php?inc=write' method=post target=write onsubmit='return msg_send();'> <iframe id=left src=start.html name=left style='width:150px;'></iframe><br> <script> document.write("<input type=hidden name=nick value='"+parent.mynick+"'>"); document.write("<input type=hidden name=id value='"+parent.myid+"'>"); </script> <input type=hidden name=text> <input id=text0 type=text name=text0 style='width:110px;' > <input type=submit value='ОК' title='Отправить' style='width:30px;'> <input type=submit value='@' title='Приватно' style='width:30px;' onclick="document.getElementById('text0').value='/privat '+document.getElementById('text0').value;"> <br> <div id=users style='width:150px;'></div> </form> </center> <iframe name=write src=start.html width=0 height=0 style='visibility:hidden;'></iframe> </div> <script> //document.body.clientHeight; var width=document.getElementById('body').clientWidth; var height=document.getElementById('body').clientHeight; if(!width) width=200; if(!height) height=200; //alert(width+"x"+height); if(width>480) width=480; if(height>480) height=480; document.getElementById('users').style.width=(width-25); document.getElementById('left').style.width=(width-25); document.getElementById('left').style.height=(height-50); document.getElementById('text0').style.width=(width-90); //load chat if(mynick=='' || myid=='') document.getElementById('inchat').style.display='none'; else { document.getElementById('enter').style.display='none'; if(engine=="ajax" || engine=="js") {ajax(1);} else parent.left.location.href="irc.html?"+myid; } </script> </body> </html>