<div id=news></div> <div id=userslist>Загрузка...</div> <div id=reklama></div> <div align=center> <a href=# onclick="load(1); return false;">Новости</a><br> <a href=# onclick="load(2); return false;">Участники</a><br> <a href=# onclick="load(3); return false;">Реклама</a><br> </div> <script> var width='97%'; var bordercolor='gray'; var namealign='center'; var namecolor='white'; var namebgcolor='336699'; var textalign='left'; var textcolor='black'; var textbgcolor='white'; h_news='название'; t_news='текст'; h_users='<table><tr><td><font color='+namecolor+' face=Arial size=2><b>В чате:</td><td><font color='+namecolor+' face=Arial size=2><b><div id=count>0</div></td></tr></table>'; t_users='<div id=users>Загрузка...</div>'; h_reklama='назв. рекламы'; t_reklama='тут реклама'; function menu(id,name,text) { document.getElementById(id).innerHTML='<table align=center width='+width+' cellspacing=1 cellpadding=0 border=1 bordercolor='+bordercolor+'><tr><td width=100% height=19 bgcolor='+namebgcolor+' ><table border=0 width=100% cellspacing=0 cellpadding=0><tr><td width=99%><p align=center><b><font color='+namecolor+' face=Arial size=2><b>'+name+'</b></td><td><a href=# onclick="document.getElementById('+"'"+id+"'"+').innerHTML='+"''"+'; return false;"><img src=../blank/img/del.png border=0></a></td></tr></table></td></tr><tr><td><table border=0 width=100% cellspacing=3 cellpadding=0 bgcolor='+textbgcolor+' ><tr><td> <font color='+textcolor+' face=Arial, Helvetica, sans-serif size=2 >'+text+'</font> </td></tr></table></td></tr> </table><br>'; } function load(n) { if (n==1) menu('news',h_news,t_news); if (n==2) menu('userslist',h_users ,t_users); if (n==3) menu('reklama',h_reklama,t_reklama); } load(1); load(2); load(3); </script>
<div id=news></div> <div id=userslist>Загрузка...</div> <div id=reklama></div>
<div align=center> <a href=# onclick="load(1); return false;">Новости</a><br> <a href=# onclick="load(2); return false;">Участники</a><br> <a href=# onclick="load(3); return false;">Реклама</a><br> </div>
#[b]^<b>^ #[u]^<u>^ #[i]^<i>^
<script> function mptags(t1,t2) { var obj=document.getElementsByName("text0")[0]; obj.focus(); var pos1 = obj.selectionStart, pos2 = obj.selectionEnd; if(typeof(pos1)=="number") { obj.value = obj.value.substring(0, pos1) + t1 + obj.value.substring(pos1, pos2) + t2 + obj.value.substring(pos2, obj.value.length); var pos3=pos2+t1.length+t2.length; obj.setSelectionRange(pos3,pos3); } else if(document.selection) { var range=document.selection.createRange(); range.text=t1+range.text+t2; range.select(); } else obj.value += t1 + t2; obj.focus(); } </script>
<a href=javascript:mptags('[b]','[/b]'); target=chat>[b]</a> <a href=javascript:mptags('[u]','[/u]'); target=chat>[u]</a> <a href=javascript:mptags('[i]','[/i]'); target=chat>[i]</a>
<input type=button onclick="mptags('[b]','[/b]');" value=[b]> <input type=button onclick="mptags('[u]','[/u]');" value=[u]> <input type=button onclick="mptags('[i]','[/i]');" value=[i]>
<script> //GET viriables var query=unescape(location.search.substr(1)); var badstr=new Array('<','>','"',"'",'`','%','#','\\'); for(i=0;i<badstr.length;i++) query=query.split(badstr[i]).join(); var get=new Array(); var a=query.split("&"); for(var i=0; i<a.length;i++) {var j=a[i].split("="); get[j[0]]=j[1];} var chat=get['chat']; var nick=get['nick']; var id=get['id']; </script>
/* Функции чтения Cookie */ function getcookie(key) { str=document.cookie;len=str.length; if(len==0) return ""; start=str.indexOf(key + "="); if(start==-1) return ""; start=start+key.length+1; end=str.indexOf(";",start); if(end==-1) end=len; return unescape(str.substring(start,end)); } /* Функции записи Cookie */ function setcookie(key,str,min) { if(!key) return; if(!min) min=60*24*365; var date = new Date(); date.setTime(date.getTime()+(min*60*1000)); document.cookie = key+"="+str+"; expires="+date.toGMTString()+"; path=/"; }
<script> function include(id, url) { var element = document.getElementById(id); if (!element) {alert("Bad ID-element!");return;} var req = false; // For Safari, Firefox, and other non-MS browsers if (window.XMLHttpRequest) {try {req = new XMLHttpRequest();} catch (e) {req = false;}} // For Internet Explorer on Windows else if (window.ActiveXObject) {try {req = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {try {req = new ActiveXObject("Microsoft.XMLHTTP");} catch (e) { req = false;}}} // If active supported if (req) {req.open('GET', url, false); req.send(null);element.innerHTML = req.responseText;} else element.innerHTML ="Include not supported!"; } </script> <span id="htmlsite"> <script>include("htmlsite", "file.html");</script> </span>