Код: Выделить всё
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>***********</title><link type="text/css" rel="StyleSheet" href="/css/style.css"><script type="text/javascript" src="highslide/highslide-full.packed.js"></script><link rel="stylesheet" type="text/css" href="highslide/highslide.css" /><script src="js/jquery-1.4.2.min.js" type="text/javascript"></script><script src="http://vkontakte.ru/js/api/xd_connection.js?2" type="text/javascript"></script><script type="text/javascript">hs.graphicsDir = 'highslide/graphics/';hs.align = 'center';hs.outlineType = 'rounded-white';hs.fadeInOut = true;hs.allowMultipleInstances = false;hs.dimmingOpacity = 0.75;</script> <script type="text/javascript" charset="cp1251" >window.onload = (function() { // когда загрузится вся страница VK.init(function() { // инициализируем Vk API // узнаём flashVars, переданные приложению GET запросом. Сохраняем их в переменную flashVars var parts=document.location.search.substr(1).split("&"); var flashVars={}, curr; for (i=0; i<parts.length; i++) { curr = parts[i].split('='); // записываем в массив flashVars значения. Например: flashVars['viewer_id'] = 1; flashVars[curr[0]] = curr[1]; } // вытаскиваем viewer_id и auth_key из полученных переменных var viewer_id = flashVars['viewer_id']; var auth_key = flashVars['auth_key']; // отправляем post запрос, передаём viewer_id и auth_key $.post('conf.php', // заменяем на адерс своего скрипта { "viewer_id": viewer_id, "auth_key": auth_key }, // передаваемые значения function(data){ // функция после выполнения передачи данных $('result').html(data); }); }); }); </script><script language='Javascript'><!--function formIsValid() { // check to make sure a valid username has been entered if ( document.login.username.value == '' ) { alert('Пожалуйста укажите свое имя!'); return false; } return true;} // a small poupup window to show who's in the chat at the current timefunction showInfo() { // the size of the popup window var width = 300; var height = 200; // 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 session_inst = 1; if(document.login.session_inst != undefined) { session_inst = document.login.session_inst.value; } var url = '/chat/info.php?session_inst=' + session_inst; var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',resizable'; // open the info window as a popup, instead of embedded in webpage window.open( url, 'info', options );} function basicLogin() { if (formIsValid()) document.login.submit();}function changeConf(chat,instances,selectchat,selectinst){ var i; var start = 0; var index; var newObj; var str; var end; while( 0 < 1) { if ( chat.indexOf(selectchat.value,start) != -1) if ( chat.charAt(chat.indexOf(selectchat.value,start)+1) == "|" ) { index = chat.indexOf(selectchat.value,start); break; } else start = chat.indexOf(selectchat.value,start)+1; else break; } for( i = selectinst.length ; i >= 0 ; i-- ) selectinst.remove(i); start = 0; var k; k = 0; index = index + 2; for( i = index ; i < chat.indexOf(";",index) ; i++ ) { end = chat.indexOf(",",index); if ( end > chat.indexOf(";",index) || end == -1 ) end = chat.indexOf(";",index); start = instances.indexOf(chat.substring(index,end)); if (start != -1) { newObj = document.createElement("OPTION"); start = start + 2; newObj.text = instances.substring(start,instances.indexOf(";",start)); newObj.value = chat.substring(index,end); if ( navigator.userAgent.indexOf("Firefox") != -1) selectinst.add(newObj,null); else selectinst.add(newObj,k); k++; } else break; if (chat.charAt(chat.substring(index,end).length+index) == ";") break; index = chat.indexOf(",",index) + 1; }} function popupLogin() { // check to make sure a valid username has been entered if (!formIsValid()) return; var username = document.login.username.value; var password = document.login.password.value; var lang = document.login.lang.value; // the size of the popup window var width = 800; var height = 600; // 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 session_inst = 1; if(document.login.session_inst != undefined) { session_inst = document.login.session_inst.value; } var url = '/chat/chat.php?username=' + username + '&password=' + password + '&lang=' + lang+'&session_inst='+session_inst; 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> </head><body> <div id="result"><table align="center" border="0" cellpadding="4" width="500"> <tbody><tr><br><br><br><br><td nowrap="nowrap" width="34%"> <span class="title">456235436</span> </td> <td align="right" width="66%"> <span style="font-size: 10pt;"><a href="/chat/info.php" onclick="return hs.htmlExpand(this, { objectType: 'iframe',width:700,height:500} )">Who's in the chat?</a></span> </td> </tr> <tr> <td colspan="2"><hr></td> </tr> <tr> <td colspan="2"> </td> </tr> <tr> <td colspan="2" align="right"><form action="chat/chat.php" method="post" name="login"><table border="0" cellpadding="2" cellspacing="0" width="100%"> <tbody><tr> <td><div align="right">Username:</div></td> <td> <input name="username" type="text" value=""><br></td> </tr> <tr> <td><div align="right">Password:</div></td> <td><input name="password" type="password"> </td> </tr> <tr> <td><div align="right">Room:</div></td> <td><select name="room"> <option value="1" selected="selected">Главная</option> <option value="2">Ивыап</option> <option value="3">вап</option> <option value="4">вап</option> </select> </td> </tr> <tr> <td> </td> <td><input name="button" onclick="javascript:basicLogin();" value="Вход >>" type="button"></td> </tr> </tr> <tr> <td colspan="2"> </td> </tr> </tbody></table></form></td> </tr> <tr> <td colspan="2" class="small"><hr></td> </tr> <tr> <td colspan="2"> <span style="font-size: 10pt;"></td> </tr> </tbody></table></div></body></html>