Помогите пожалуйста с городом
Я установил в городе таймер движения как в бк но таймер не работает хотя он есть
Пожалуйста помогите
Вот скрипт:
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?
define('INSIDE', true);
include("../config/config.php");
$now=time();
$stat = mysql_fetch_array(mysql_query("SELECT * FROM `person` WHERE `user` = '".$_COOKIE['user']."' AND `pass` = '".$_COOKIE['pass']."' LIMIT 1"));
if ($stat['bloked']) echo"<script>top.location='../index.php?action=logout'</script>";
if ($stat['t_time']) { header("Location: prison.php"); exit; }
elseif ($stat['v_time']) { header("Location: ambulance.php"); exit; } // Редиректим в больницу
elseif ($stat['k_time']) { header("Location: academy.php"); exit; } // Редиректим в академию
elseif ($stat['w_time']) { header("Location: works.php"); exit; } // Редиректим в ворку
elseif ($stat['o_time']) { header("Location: repair.php"); exit; }
elseif ($stat['for_time']) { header("Location: forest.php"); exit; }
elseif ($stat['fish_time']) { header("Location: prichal.php"); exit; }
elseif ($stat['bog_time']) { header("Location: hram_bogov.php"); exit; }
elseif ($stat['battle']) { header("Location: ../battle.php"); exit; }
elseif ($stat['r_time']) { header("Location: vault.php"); exit; }
else {
if (($stat['room']>200 && $stat['room']<=230) || ($stat['vault_time'] > $now && $stat['vault_move'] == 1)) {
header("Location: vault.php");
exit;
}
$room = $_GET['room'];
$refer = $_GET['refer'];
$night = date("H");
if($room){
if ($stat['room'] == 103){
### Арена
if ($room=="23") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"street4.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
### Банк
if ($room=="17") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"bank.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Телеграф
if ($room=="25") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"pochta.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Магазин
if ($room=="7") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"shop.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Кузница
if ($room=="11") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"repair.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Рынок
if ($room=="20") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"komis.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Запад
if ($room=="101") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"street1.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Восток
if ($room=="104") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"street3.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
}else{
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"../main.php?set=map\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}}
if($refer==20 || $refer==11 || $refer==25 || $refer==7 || $refer==17){
###Глав. Площадь
if ($room == "103" || empty($room)) {
$room = 103;
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
}
###
}
include('../config/html_city.php');
if ($night<22 & $night>7)
$city="day";
else $city="night";
echo"
<body onload=\"initToolTip('img')\">
<table border='0' cellspacing='0' cellpadding='0' class='tmain'>
<tr><td valign='top' style='text-align:center;'>
<table border='0' cellspacing='0' cellpadding='0' align='center' class='ltable' style='width:98%;'>
<tr>
<td colspan='3' valign='top' style='width:100%;'>
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td><img src='../img/game/main/ltmenu.png' width='22' height='23' border='0' alt='' /></td>
<td class='nmenu' style='white-space: nowrap; width:50%'></td>
<td align='center' valign='top' class='nmenu'>
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td><img src='../img/game/main/l_z_l.png' width='34' height='23' alt='' border='0' /></td>
<td class='l_z_f'>Центральная Площадь</td>
<td><img src='../img/game/main/l_z_r.png' width='34' height='23' alt='' border='0' /></td>
</tr>
</table>
</td>
<td class='nmenu' style='white-space: nowrap; width:50%; text-align:right;'> </td>
<td><img src='../img/game/main/rtmenu.png' width='22' height='23' border='0' alt='' /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='rkfon'><img src='../img/game/main/z.gif' width='2' height='1' border='0' alt='' /></td>
<td valign='top' class='lpfon'>
<table border='0' cellspacing='0' cellpadding='0' class='bfon'>
<td valign='top' class='tmain' style='text-align:center;padding-top:4px;'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td valign='top' width='100%' style='padding:10px;'>
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td valign='top' width='100%' style='padding:10px;'>
</td>
</tr>
</table>
<div id=\"hint4\" class=\"ahint\"></div>
<script type=\"text/javascript\" src=\"../img/js/tooltip.js\"></script>
<script language=\"javascript\" type=\"text/javascript\">
function imover(im)
{
im.filters.Glow.Enabled=true;
}
function imout(im)
{
im.filters.Glow.Enabled=false;
}
function m1()
{
alert('Проход закрыт!');
}
function m2()
{
alert('Рабочая неделя окончена! Пора и отдохнуть!');
}
</script>
<style type=\"text/css\">
img.aFilter {
filter:Glow(color=#FFFFFF,Strength=4,Enabled=0);
cursor:hand
}
hr {
height: 1px;
}
</style>";
?>
<table align=left width=285 border=0 cellpadding=0 cellspacing=0>
<link href="http://img.combats.com/i/move/design6.css" rel="stylesheet" type="text/css"><script language="javascript" type="text/javascript">
function fastshow2 (content, eEvent ) {
var el = document.getElementById("mmoves");
eEvent = eEvent || window.event;
if( !eEvent )
return;
var o = eEvent.target || eEvent.srcElement;
if (content!='' && el.style.visibility != "visible") {el.innerHTML = ''+content+'';}
var x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft - el.offsetWidth + 5;
var y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop+20;
if (x + el.offsetWidth + 3 > document.body.clientWidth + document.body.scrollLeft) { x=(document.body.clientWidth + document.body.scrollLeft - el.offsetWidth - 5); if (x < 0) {x=0}; }
if (y + el.offsetHeight + 3 > document.body.clientHeight + document.body.scrollTop) { y=(document.body.clientHeight + document.body.scrollTop - el.offsetHeight - 3); if (y < 0) {y=0}; }
if (x<0) {x=0;}
if (y<0) {y=0;}
el.style.left = x + "px";
el.style.top = y + "px";
if (el.style.visibility != "visible") {
el.style.visibility = "visible";
}
}
function hideshow () {
document.getElementById("mmoves").style.visibility = 'hidden';
}
</script>
<script language="javascript" type="text/javascript">
var solo_store;
function solo(n, name, instant) {
if (instant!="" || check_access()==true) {
window.location.href = '?path='+n+'&rnd='+Math.random();
} else if (name && n) {
solo_store = n;
var add_text = (document.getElementById('add_text') || document.createElement('div'));
add_text.id = 'add_text';
add_text.innerHTML = 'Вы перейдете в: ' + name +' (
document.getElementById('ione').parentNode.parentNode.nextSibling.firstChild.appendChild(add_text);
ch_counter_color('red');
}
return false;
}
function clear_solo () {
document.getElementById('add_text').removeNode(true);
solo_store = false;
ch_counter_color('#00CC00');
return false;
}
var from_map = false;
function imover(im) {
if( im.filters )
im.filters.Glow.Enabled=true;
if ( from_map == false && im.id.match(/mo_(\d)/) && document.getElementById('b' + im.id)) {
from_map = true;
if( document.getElementById('b' + im.id).runtimeStyle )
document.getElementById('b' + im.id).runtimeStyle.color = '#666666';
from_map = false;
}
}
function imout(im) {
if( im.filters )
im.filters.Glow.Enabled=false;
if ( from_map == false && im.id.match(/mo_(\d)/) && document.getElementById('b' + im.id)) {
from_map = true;
if( document.getElementById('b' + im.id).runtimeStyle )
document.getElementById('b' + im.id).runtimeStyle.color = document.getElementById('b' + im.id).style.color;
from_map = false;
}
}
function bimover (im) {
if ( from_map==false && document.getElementById(im.id.substr(1)) ) {
from_map = true;
imover(document.getElementById(im.id.substr(1)));
from_map = false;
}
}
function bimout (im) {
if ( from_map==false && document.getElementById(im.id.substr(1)) ) {
from_map = true;
imout(document.getElementById(im.id.substr(1)));
from_map = false;
}
}
function bsolo (im) {
if (document.getElementById(im.id.substr(1))) {
document.getElementById(im.id.substr(1)).click();
}
return false;
}
function Down() {top.CtrlPress = window.event.ctrlKey}
document.onmousedown = Down;
var fireworks_types = new Array('04',21, '03',21, '05',21, '06',21, '07',27, '08',27, '02',34, '09',34,
'10',34, '11',42, '14', 27, '16', 32, '15', 37 );
function fireworks (x,y,type) {
return start_fireworks(x,y,type);
}
function start_fireworks (x,y,type) {
myFW = new JSFX.FireworkDisplay(1, "http://img.combats.com/i/fireworks/fw"+fireworks_types[type*2], fireworks_types[type*2+1], x, y);
myFW.start();
return false;
}
function stop_fireworks (id) {
document.getElementById(id).style.display = 'none';
document.getElementById(id).removeNode(true);
return false;
}
</script>
<style type="text/css">
img.aFilter { filter:Glow(color=#FFFFFF,Strength=3,Enabled=0); cursor:hand }
hr { height: 1px; }
.ahint {font-family: MS Sans Serif; font-size:8px; text-decoration:none; color:#000080;z-index: 99;}
#hint2 {position:absolute; width:140; background-color:#FFF6DD; layer-background-color:#FFF6DD; visibility:hidden}
#hint3 {position:absolute; width:240; background-color:#FFF6DD; layer-background-color:#FFF6DD; visibility:hidden; z-index: 1000;}
#hint4 {position:absolute; width:240; visibility:hidden}
</style>
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td>
<div id=hint3 style='visibility:hidden'></div>
<table cellpadding="0" cellspacing="0" border="0" width="1"><tr><td>
<div style="position:relative; cursor: pointer;" id="ione">
<div style="position:absolute; left:19px; top:131px; width:70px; height:55px; z-index:90; filter:progid
XImageTransform.Microsoft.Alpha( Opacity=100, Style=0);">
</div>
<div style="position:absolute; left:450px; top:170px; width:117px; height:117px; z-index:90; filter:progid
XImageTransform.Microsoft.Alpha( Opacity=100, Style=0);">
</div>
<div style="position:absolute; left:7px; top:205px; width:75px; height:90px; z-index:90; filter:progid
XImageTransform.Microsoft.Alpha( Opacity=100, Style=0);">
</div>
<div style="position:absolute; left:155px; top:165px; width:93px; height:77px; z-index:90; filter:progid
XImageTransform.Microsoft.Alpha( Opacity=100, Style=0);">
</div>
<div style="position:absolute; left:228px; top:70px; width:210px; height:140px; z-index:90; filter:progid
XImageTransform.Microsoft.Alpha( Opacity=100, Style=0);">
</div>
<div style="position:absolute; left:450px; top:240px; width:50px; height:37px; z-index:90; filter:progid
XImageTransform.Microsoft.Alpha( Opacity=100, Style=0);">
</div>
<div style="position:absolute; left:269px; top:220px; width:110px; height:75px; z-index:90; filter:progid
XImageTransform.Microsoft.Alpha( Opacity=100, Style=0);">
</div>
<div style="position:absolute; left:7px; top:209px; width:23px; height:32px; z-index:90; filter:progid
XImageTransform.Microsoft.Alpha( Opacity=100, Style=0);">
</div>
<div style="position:absolute; left:525px; top:245px; width:27px; height:32px; z-index:90; filter:progid
XImageTransform.Microsoft.Alpha( Opacity=100, Style=0);">
</div>
<div style="position:absolute; left:125px; top:158px; width:93px; height:77px; z-index:90; filter:progid
XImageTransform.Microsoft.Alpha( Opacity=100, Style=0);">
</div>
<script language="javascript" type="text/javascript" src="http://img.combats.com/i/fireworks/fireworks2.js"></script>
<div style="position:absolute; right:0px; top:0px; width:1px; height:1px; z-index:101; overflow:visible;">
<TABLE height=15 border="0" cellspacing="0" cellpadding="0">
<TR>
<TD rowspan=3 valign="bottom">
<TD colspan="3">
</TD>
</TR>
<TR>
<TD>
</TD>
<TD width=64 bgcolor=black><DIV class="MoveLine">
</DIV></TD>
<TD>
</TD>
</TR>
<TR>
<TD colspan="3">
</TD>
</TR>
</TABLE>
</div>
</div>
<tr><td align="right"><div align="right" id="btransfers"><table cellpadding="0" cellspacing="0" border="0" id="bmoveto">
<tr><td bgcolor="#D3D3D3" width="550" nowrap>
<img src=../img/images/ico/up.gif>
<img src=../img/images/ico/up.gif>
<img src=../img/images/ico/up.gif>
<img src=../img/images/ico/up.gif>
<img src=../img/images/ico/up.gif>
<img src=../img/images/ico/up.gif>
<img src=../img/images/ico/up.gif>
<img src=../img/images/ico/up.gif>
<img src=../img/images/ico/up.gif>
<img src=../img/images/ico/up.gif>
</td>
<td width="50"></td>
</tr>
</table>
</table>
<div id="mmoves" style="background-color:#FFFFCC; visibility:hidden; overflow:visible; position:absolute; border-color:#666666; border-style:solid; border-width: 1px; padding: 2px; white-space: nowrap;"></div>
<script LANGUAGE="JavaScript" SRC="http://img.combats.com/i/js/dialog_028_ru.js"></SCRIPT>
<script src='http://img.combats.com/i/commoninf.js'></SCRIPT>
<script language="javascript" type="text/javascript">
function AddCount(name, txt){
document.getElementById('hint3').innerHTML = '<table border=10 width=250 cellspacing=0 cellpadding=2 bordercolor=A5A5A5><form method=post action="?attack"><tr><td bgcolor=e2e0e0 colspan=2 align=center width=100%><table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100% align=center>Введите логин противника</td><td><B style="CURSOR: Hand" onclick="closehint3();">X[/B]</td></tr></table></td></tr><tr><td bgcolor=#EDEBEC valign=center height=33 width=50% align=center><input size=40 type=text name=fname class=input id=uName></td></tr><tr><td bgcolor=#EDEBEC valign=center height=33 colspan=2 align=center><input name=usemagic type=hidden value=\'+usemagic+\'><input name=useid type=hidden value=\'+useid+\'><input name=onset type=hidden value=\'+onset+\'><input type=submit value="Вперёд" style="WIDTH: 210px" class=standbut></td></tr></table>
';
fhint = 'fname';
document.getElementById("hint3").style.visibility = "visible";
document.getElementById("hint3").style.left = event.x+document.body.scrollLeft-20;
document.getElementById("hint3").style.top = event.y+document.body.scrollTop+5;
document.getElementById("count").focus();
}
function closehint3(){document.getElementById("hint3").style.visibility="hidden";}
var progressEnd = 64; // set to number of progress <span>'s.
var progressColor = '#000000'; // set to progress bar color
var mtime = 0;
if (!mtime || mtime<=0) {mtime=0;}
var progressInterval = Math.round(mtime*1000/progressEnd); // set to time between updates (milli-seconds)
var is_accessible = true;
var progressAt = progressEnd;
var progressTimer;
function progress_clear() {
progressAt = 1;
is_accessible = false;
set_moveto(true);
}
function progress_update() {
progressAt++;
//if (progressAt > progressEnd) progress_clear();
if (progressAt > progressEnd) {
is_accessible = true;
if (window.solo_store && solo_store) { solo(solo_store, ""); } // go to stored
set_moveto(false);
} else {
if( !( progressAt % 2 ) )
document.getElementById('MoveLine').style.left = progressAt - 64;
progressTimer = setTimeout('progress_update()',progressInterval);
}
}
function set_moveto (val) {
document.getElementById('moveto').disabled = val;
if (document.getElementById('bmoveto')) {
document.getElementById('bmoveto').disabled = val;
var access = 1;
}
}
function progress_stop() {
clearTimeout(progressTimer);
progress_clear();
}
function check(it) {
return is_accessible;
}
function check_access () {
return is_accessible;
}
function ch_counter_color (color) {
/* progressColor = color;
for (var i = 1; i <= progressAt; i++) {
document.getElementById('progress'+i).style.backgroundColor = progressColor;
}*/
}
if (mtime>0) {
progress_clear();
progress_update();
}
function go(id)
{
if (check_access()==true)
{
top.frames["main"].location = "?room="+id+"&tmp="+Math.random();
}
else alert('Рановато!');
}
</script>
</HTML>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align='center'><img src='../img/game/main/dr.gif' width='187' height='40' border='0' alt='' /></td>
</tr>
</table>
</td>
<td class='rkfon'><img src='../img/game/main/z.gif' width='2' height='1' border='0' alt='' /></td>
</tr>
<tr>
<td><img src='../img/game/main/ldp.gif' width='2' height='16' border='0' alt='' /></td>
<td align='center' class='dpfon'><img src='../img/game/main/trm2.gif' width='365' height='16' border='0' alt='' /></td>
<td><img src='../img/game/main/rdp.gif' width='2' height='16' border='0' alt='' /></td>
</tr>
</table>
</td></tr>
</table>
</center>
</body>
</html>
<?
}
?>
</div>
И если можно сделайте так чтобы слева показывало инфу как в БК)) :rolleyes:
Я установил в городе таймер движения как в бк но таймер не работает хотя он есть
Пожалуйста помогите
Вот скрипт:
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?
define('INSIDE', true);
include("../config/config.php");
$now=time();
$stat = mysql_fetch_array(mysql_query("SELECT * FROM `person` WHERE `user` = '".$_COOKIE['user']."' AND `pass` = '".$_COOKIE['pass']."' LIMIT 1"));
if ($stat['bloked']) echo"<script>top.location='../index.php?action=logout'</script>";
if ($stat['t_time']) { header("Location: prison.php"); exit; }
elseif ($stat['v_time']) { header("Location: ambulance.php"); exit; } // Редиректим в больницу
elseif ($stat['k_time']) { header("Location: academy.php"); exit; } // Редиректим в академию
elseif ($stat['w_time']) { header("Location: works.php"); exit; } // Редиректим в ворку
elseif ($stat['o_time']) { header("Location: repair.php"); exit; }
elseif ($stat['for_time']) { header("Location: forest.php"); exit; }
elseif ($stat['fish_time']) { header("Location: prichal.php"); exit; }
elseif ($stat['bog_time']) { header("Location: hram_bogov.php"); exit; }
elseif ($stat['battle']) { header("Location: ../battle.php"); exit; }
elseif ($stat['r_time']) { header("Location: vault.php"); exit; }
else {
if (($stat['room']>200 && $stat['room']<=230) || ($stat['vault_time'] > $now && $stat['vault_move'] == 1)) {
header("Location: vault.php");
exit;
}
$room = $_GET['room'];
$refer = $_GET['refer'];
$night = date("H");
if($room){
if ($stat['room'] == 103){
### Арена
if ($room=="23") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"street4.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
### Банк
if ($room=="17") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"bank.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Телеграф
if ($room=="25") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"pochta.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Магазин
if ($room=="7") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"shop.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Кузница
if ($room=="11") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"repair.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Рынок
if ($room=="20") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"komis.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Запад
if ($room=="101") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"street1.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
###Восток
if ($room=="104") {
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"street3.php\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}
###
}else{
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['main'].location = \"../main.php?set=map\";
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
exit();
}}
if($refer==20 || $refer==11 || $refer==25 || $refer==7 || $refer==17){
###Глав. Площадь
if ($room == "103" || empty($room)) {
$room = 103;
mysql_query("UPDATE person SET room=".$room.", lpv=".$now." WHERE user='".$stat['user']."'");
echo"
<script LANGUAGE=\"JavaScript\">
<!--
top.frames['bottom']['online'].location = top.frames['bottom']['online'].location;
//-->
</SCRIPT>
";
}
###
}
include('../config/html_city.php');
if ($night<22 & $night>7)
$city="day";
else $city="night";
echo"
<body onload=\"initToolTip('img')\">
<table border='0' cellspacing='0' cellpadding='0' class='tmain'>
<tr><td valign='top' style='text-align:center;'>
<table border='0' cellspacing='0' cellpadding='0' align='center' class='ltable' style='width:98%;'>
<tr>
<td colspan='3' valign='top' style='width:100%;'>
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td><img src='../img/game/main/ltmenu.png' width='22' height='23' border='0' alt='' /></td>
<td class='nmenu' style='white-space: nowrap; width:50%'></td>
<td align='center' valign='top' class='nmenu'>
<table border='0' cellspacing='0' cellpadding='0'>
<tr>
<td><img src='../img/game/main/l_z_l.png' width='34' height='23' alt='' border='0' /></td>
<td class='l_z_f'>Центральная Площадь</td>
<td><img src='../img/game/main/l_z_r.png' width='34' height='23' alt='' border='0' /></td>
</tr>
</table>
</td>
<td class='nmenu' style='white-space: nowrap; width:50%; text-align:right;'> </td>
<td><img src='../img/game/main/rtmenu.png' width='22' height='23' border='0' alt='' /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='rkfon'><img src='../img/game/main/z.gif' width='2' height='1' border='0' alt='' /></td>
<td valign='top' class='lpfon'>
<table border='0' cellspacing='0' cellpadding='0' class='bfon'>
<td valign='top' class='tmain' style='text-align:center;padding-top:4px;'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td valign='top' width='100%' style='padding:10px;'>
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td valign='top' width='100%' style='padding:10px;'>
</td>
</tr>
</table>
<div id=\"hint4\" class=\"ahint\"></div>
<script type=\"text/javascript\" src=\"../img/js/tooltip.js\"></script>
<script language=\"javascript\" type=\"text/javascript\">
function imover(im)
{
im.filters.Glow.Enabled=true;
}
function imout(im)
{
im.filters.Glow.Enabled=false;
}
function m1()
{
alert('Проход закрыт!');
}
function m2()
{
alert('Рабочая неделя окончена! Пора и отдохнуть!');
}
</script>
<style type=\"text/css\">
img.aFilter {
filter:Glow(color=#FFFFFF,Strength=4,Enabled=0);
cursor:hand
}
hr {
height: 1px;
}
</style>";
?>
<table align=left width=285 border=0 cellpadding=0 cellspacing=0>
<link href="http://img.combats.com/i/move/design6.css" rel="stylesheet" type="text/css"><script language="javascript" type="text/javascript">
function fastshow2 (content, eEvent ) {
var el = document.getElementById("mmoves");
eEvent = eEvent || window.event;
if( !eEvent )
return;
var o = eEvent.target || eEvent.srcElement;
if (content!='' && el.style.visibility != "visible") {el.innerHTML = ''+content+'';}
var x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft - el.offsetWidth + 5;
var y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop+20;
if (x + el.offsetWidth + 3 > document.body.clientWidth + document.body.scrollLeft) { x=(document.body.clientWidth + document.body.scrollLeft - el.offsetWidth - 5); if (x < 0) {x=0}; }
if (y + el.offsetHeight + 3 > document.body.clientHeight + document.body.scrollTop) { y=(document.body.clientHeight + document.body.scrollTop - el.offsetHeight - 3); if (y < 0) {y=0}; }
if (x<0) {x=0;}
if (y<0) {y=0;}
el.style.left = x + "px";
el.style.top = y + "px";
if (el.style.visibility != "visible") {
el.style.visibility = "visible";
}
}
function hideshow () {
document.getElementById("mmoves").style.visibility = 'hidden';
}
</script>
<script language="javascript" type="text/javascript">
var solo_store;
function solo(n, name, instant) {
if (instant!="" || check_access()==true) {
window.location.href = '?path='+n+'&rnd='+Math.random();
} else if (name && n) {
solo_store = n;
var add_text = (document.getElementById('add_text') || document.createElement('div'));
add_text.id = 'add_text';
add_text.innerHTML = 'Вы перейдете в: ' + name +' (
Вам необходимо зарегистрироваться для просмотра ссылок
)';document.getElementById('ione').parentNode.parentNode.nextSibling.firstChild.appendChild(add_text);
ch_counter_color('red');
}
return false;
}
function clear_solo () {
document.getElementById('add_text').removeNode(true);
solo_store = false;
ch_counter_color('#00CC00');
return false;
}
var from_map = false;
function imover(im) {
if( im.filters )
im.filters.Glow.Enabled=true;
if ( from_map == false && im.id.match(/mo_(\d)/) && document.getElementById('b' + im.id)) {
from_map = true;
if( document.getElementById('b' + im.id).runtimeStyle )
document.getElementById('b' + im.id).runtimeStyle.color = '#666666';
from_map = false;
}
}
function imout(im) {
if( im.filters )
im.filters.Glow.Enabled=false;
if ( from_map == false && im.id.match(/mo_(\d)/) && document.getElementById('b' + im.id)) {
from_map = true;
if( document.getElementById('b' + im.id).runtimeStyle )
document.getElementById('b' + im.id).runtimeStyle.color = document.getElementById('b' + im.id).style.color;
from_map = false;
}
}
function bimover (im) {
if ( from_map==false && document.getElementById(im.id.substr(1)) ) {
from_map = true;
imover(document.getElementById(im.id.substr(1)));
from_map = false;
}
}
function bimout (im) {
if ( from_map==false && document.getElementById(im.id.substr(1)) ) {
from_map = true;
imout(document.getElementById(im.id.substr(1)));
from_map = false;
}
}
function bsolo (im) {
if (document.getElementById(im.id.substr(1))) {
document.getElementById(im.id.substr(1)).click();
}
return false;
}
function Down() {top.CtrlPress = window.event.ctrlKey}
document.onmousedown = Down;
var fireworks_types = new Array('04',21, '03',21, '05',21, '06',21, '07',27, '08',27, '02',34, '09',34,
'10',34, '11',42, '14', 27, '16', 32, '15', 37 );
function fireworks (x,y,type) {
return start_fireworks(x,y,type);
}
function start_fireworks (x,y,type) {
myFW = new JSFX.FireworkDisplay(1, "http://img.combats.com/i/fireworks/fw"+fireworks_types[type*2], fireworks_types[type*2+1], x, y);
myFW.start();
return false;
}
function stop_fireworks (id) {
document.getElementById(id).style.display = 'none';
document.getElementById(id).removeNode(true);
return false;
}
</script>
<style type="text/css">
img.aFilter { filter:Glow(color=#FFFFFF,Strength=3,Enabled=0); cursor:hand }
hr { height: 1px; }
.ahint {font-family: MS Sans Serif; font-size:8px; text-decoration:none; color:#000080;z-index: 99;}
#hint2 {position:absolute; width:140; background-color:#FFF6DD; layer-background-color:#FFF6DD; visibility:hidden}
#hint3 {position:absolute; width:240; background-color:#FFF6DD; layer-background-color:#FFF6DD; visibility:hidden; z-index: 1000;}
#hint4 {position:absolute; width:240; visibility:hidden}
</style>
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td>
<div id=hint3 style='visibility:hidden'></div>
<table cellpadding="0" cellspacing="0" border="0" width="1"><tr><td>
<div style="position:relative; cursor: pointer;" id="ione">
<div style="position:absolute; left:19px; top:131px; width:70px; height:55px; z-index:90; filter:progid
<div style="position:absolute; left:450px; top:170px; width:117px; height:117px; z-index:90; filter:progid
<div style="position:absolute; left:7px; top:205px; width:75px; height:90px; z-index:90; filter:progid
<div style="position:absolute; left:155px; top:165px; width:93px; height:77px; z-index:90; filter:progid
<div style="position:absolute; left:228px; top:70px; width:210px; height:140px; z-index:90; filter:progid
<div style="position:absolute; left:450px; top:240px; width:50px; height:37px; z-index:90; filter:progid
<div style="position:absolute; left:269px; top:220px; width:110px; height:75px; z-index:90; filter:progid
<div style="position:absolute; left:7px; top:209px; width:23px; height:32px; z-index:90; filter:progid
<div style="position:absolute; left:525px; top:245px; width:27px; height:32px; z-index:90; filter:progid
<div style="position:absolute; left:125px; top:158px; width:93px; height:77px; z-index:90; filter:progid
<script language="javascript" type="text/javascript" src="http://img.combats.com/i/fireworks/fireworks2.js"></script>
<div style="position:absolute; right:0px; top:0px; width:1px; height:1px; z-index:101; overflow:visible;">
<TABLE height=15 border="0" cellspacing="0" cellpadding="0">
<TR>
<TD rowspan=3 valign="bottom">
Вам необходимо зарегистрироваться для просмотра ссылок
</TD><TD colspan="3">
</TR>
<TR>
<TD>
<TD width=64 bgcolor=black><DIV class="MoveLine">
<TD>
</TR>
<TR>
<TD colspan="3">
</TR>
</TABLE>
</div>
</div>
<tr><td align="right"><div align="right" id="btransfers"><table cellpadding="0" cellspacing="0" border="0" id="bmoveto">
<tr><td bgcolor="#D3D3D3" width="550" nowrap>
<img src=../img/images/ico/up.gif>
Вам необходимо зарегистрироваться для просмотра ссылок
<img src=../img/images/ico/up.gif>
Вам необходимо зарегистрироваться для просмотра ссылок
<img src=../img/images/ico/up.gif>
Вам необходимо зарегистрироваться для просмотра ссылок
<img src=../img/images/ico/up.gif>
Вам необходимо зарегистрироваться для просмотра ссылок
<img src=../img/images/ico/up.gif>
Вам необходимо зарегистрироваться для просмотра ссылок
<img src=../img/images/ico/up.gif>
Вам необходимо зарегистрироваться для просмотра ссылок
<img src=../img/images/ico/up.gif>
Вам необходимо зарегистрироваться для просмотра ссылок
<img src=../img/images/ico/up.gif>
Вам необходимо зарегистрироваться для просмотра ссылок
<img src=../img/images/ico/up.gif>
Вам необходимо зарегистрироваться для просмотра ссылок
<img src=../img/images/ico/up.gif>
Вам необходимо зарегистрироваться для просмотра ссылок
</td>
<td width="50"></td>
</tr>
</table>
</table>
<div id="mmoves" style="background-color:#FFFFCC; visibility:hidden; overflow:visible; position:absolute; border-color:#666666; border-style:solid; border-width: 1px; padding: 2px; white-space: nowrap;"></div>
<script LANGUAGE="JavaScript" SRC="http://img.combats.com/i/js/dialog_028_ru.js"></SCRIPT>
<script src='http://img.combats.com/i/commoninf.js'></SCRIPT>
<script language="javascript" type="text/javascript">
function AddCount(name, txt){
document.getElementById('hint3').innerHTML = '<table border=10 width=250 cellspacing=0 cellpadding=2 bordercolor=A5A5A5><form method=post action="?attack"><tr><td bgcolor=e2e0e0 colspan=2 align=center width=100%><table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100% align=center>Введите логин противника</td><td><B style="CURSOR: Hand" onclick="closehint3();">X[/B]</td></tr></table></td></tr><tr><td bgcolor=#EDEBEC valign=center height=33 width=50% align=center><input size=40 type=text name=fname class=input id=uName></td></tr><tr><td bgcolor=#EDEBEC valign=center height=33 colspan=2 align=center><input name=usemagic type=hidden value=\'+usemagic+\'><input name=useid type=hidden value=\'+useid+\'><input name=onset type=hidden value=\'+onset+\'><input type=submit value="Вперёд" style="WIDTH: 210px" class=standbut></td></tr></table>
';
fhint = 'fname';
document.getElementById("hint3").style.visibility = "visible";
document.getElementById("hint3").style.left = event.x+document.body.scrollLeft-20;
document.getElementById("hint3").style.top = event.y+document.body.scrollTop+5;
document.getElementById("count").focus();
}
function closehint3(){document.getElementById("hint3").style.visibility="hidden";}
var progressEnd = 64; // set to number of progress <span>'s.
var progressColor = '#000000'; // set to progress bar color
var mtime = 0;
if (!mtime || mtime<=0) {mtime=0;}
var progressInterval = Math.round(mtime*1000/progressEnd); // set to time between updates (milli-seconds)
var is_accessible = true;
var progressAt = progressEnd;
var progressTimer;
function progress_clear() {
progressAt = 1;
is_accessible = false;
set_moveto(true);
}
function progress_update() {
progressAt++;
//if (progressAt > progressEnd) progress_clear();
if (progressAt > progressEnd) {
is_accessible = true;
if (window.solo_store && solo_store) { solo(solo_store, ""); } // go to stored
set_moveto(false);
} else {
if( !( progressAt % 2 ) )
document.getElementById('MoveLine').style.left = progressAt - 64;
progressTimer = setTimeout('progress_update()',progressInterval);
}
}
function set_moveto (val) {
document.getElementById('moveto').disabled = val;
if (document.getElementById('bmoveto')) {
document.getElementById('bmoveto').disabled = val;
var access = 1;
}
}
function progress_stop() {
clearTimeout(progressTimer);
progress_clear();
}
function check(it) {
return is_accessible;
}
function check_access () {
return is_accessible;
}
function ch_counter_color (color) {
/* progressColor = color;
for (var i = 1; i <= progressAt; i++) {
document.getElementById('progress'+i).style.backgroundColor = progressColor;
}*/
}
if (mtime>0) {
progress_clear();
progress_update();
}
function go(id)
{
if (check_access()==true)
{
top.frames["main"].location = "?room="+id+"&tmp="+Math.random();
}
else alert('Рановато!');
}
</script>
</HTML>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align='center'><img src='../img/game/main/dr.gif' width='187' height='40' border='0' alt='' /></td>
</tr>
</table>
</td>
<td class='rkfon'><img src='../img/game/main/z.gif' width='2' height='1' border='0' alt='' /></td>
</tr>
<tr>
<td><img src='../img/game/main/ldp.gif' width='2' height='16' border='0' alt='' /></td>
<td align='center' class='dpfon'><img src='../img/game/main/trm2.gif' width='365' height='16' border='0' alt='' /></td>
<td><img src='../img/game/main/rdp.gif' width='2' height='16' border='0' alt='' /></td>
</tr>
</table>
</td></tr>
</table>
</center>
</body>
</html>
<?
}
?>
</div>
И если можно сделайте так чтобы слева показывало инфу как в БК)) :rolleyes: