Código HTML:
Ver original<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="estilo/temas/default/templates/jquery-1.4.2.min.js" type="text/javascript"></script> <script src="estilo/temas/default/templates/menu.js" type="text/javascript"></script>
$(document).ready(function(){
$('#commerce').click(function(){
$('#chat_iframe').attr('src','../includes/chat/index.php?branch=login&room=comercio');
});
});
$(document).ready(function(){
$('#initial').click(function(){
$('#chat_iframe').attr('src','../includes/chat/index.php?branch=login&room=inicial');
});
});
function request_resources_state()
{
$.ajax({
type: "GET",
dataType:'json',
url: "../includes/funciones/request_resources_state.php",
success: function(datos){
$('#gold').html("ORO: "+datos.gold);
$('#oil').html("PETROLEO: "+datos.petroleo);
$('#diesel').html("DIESEL: "+datos.diesel);
$('#gas').html("GASOLINA: "+datos.gasolina);
$('#ammo').html("MUNICION: "+datos.municion);
$('#puntos').html("PUNTOS: "+datos.puntos);
$('#ticket').html("TICKET: "+datos.ticket);
}
});
}
function opencharpopup(){
var popurl='index.php?ir=verpj'
winpops=window.open(popurl,'','width=250,height=500,scrollbars')
}
function openmappopup(){
var popurl='index.php?ir=mapa'
winpops=window.open(popurl,'','width=501,height=501,scrollbars')
}
<script type="text/javascript"> document.onkeyup = KeyCheck;
function KeyCheck(e)
{
var KeyID = (window.event) ? event.keyCode : e.keyCode;
switch(KeyID)
{
case 104:
document.navi.keydir.value = "north";
document.navi.submit();
break;
case 100:
document.navi.keydir.value = "west";
document.navi.submit();
break;
case 102:
document.navi.keydir.value = "east";
document.navi.submit();
break;
case 98:
document.navi.keydir.value = "south";
document.navi.submit();
break;
case 103: // numpad 7
document.navi.keydir.value = "north_west";
document.navi.submit();
break;
case 105: // numpad 9
document.navi.keydir.value = "north_east";
document.navi.submit();
break;
case 99: // numpad 3
document.navi.keydir.value = "south_east";
document.navi.submit();
break;
case 97: // numpad 1
document.navi.keydir.value = "south_west";
document.navi.submit();
break;
}
}
setInterval('request_resources_state()',5000);
<link rel="stylesheet" type="text/css" href="estilo/temas/default/templates/style2.css">
<!-- Save for Web Slices (new.psd) -->
<table id="Table_01" width="957" height="671" border="0" cellpadding="0" cellspacing="0" style="position:relative;margin: 0 auto;"> <img src="estilo/temas/{{tema}}/imagenes/login/new1_01.png" width="957" height="1" alt=""></td> <li style=" margin-left: 13px; "><a href="index.php">HOME
</a></li> <li style=" left: -9px;position: relative; "><a href="">MAPA
</a></li> <li style=" left: -2.2%; position: relative; "><a href="index.php?ir=clan&accion=clan">ALIANZA
</a></li> <li style="position: relative; left: -2.5%;"><a href="index.php?ir=ranking&accion=ranking">RANKING
</a></li> <li style=" left: -2%; position: relative; "><a href="">TRABAJOS
</a></li> <li style="position: relative;left: -2.5%;"><a href="">GANANCIA
</a></li> <li style="position: relative;left: -2.5%;"><a href="index.php?ir=perfil&accion=perfil">PERFIL
</a></li> <li style=" left: -2%; position: relative;"><a style="color:red;" href="">PREMIUM
</a></li> <li style=" left: 1%; position: relative; "><a href="index.php?ir=salir&accion=salir">SALIR
</a></li>
<img src="estilo/temas/{{tema}}/imagenes/login/new1_03.png" width="62" height="670" alt=""></td> <li style=" margin-left: -6px; "><a id="puntos" class="boton" href="">PUNTOS
</a></li> <li style=" margin-left: -3px; "><a id="oil" class="boton" href="">PETROLEO
</a></li> <li style=" margin-left: -2px; "><a id="gas" class="boton" href="">GASOLINA
</a></li> <li><a id="diesel" class="boton" href="">DIESEL
</a></li> <li style=" margin-left: -1px; "><a id="ammo" class="boton" href="">MUNICION
</a></li> <li><a id="gold" class="boton" href="">ORO
</a></li> <li><a id="ticket" class="boton" href="">TICKET
</a></li>
<div id="apDiv3"><DIV><a href='index.php?ir=mensajero'>mensajes
</a></div></div> <div id="apDiv4"><DIV><input style="position: relative;left:9px;" type="text" name="textfield" id="textfield" /></div></div>
<li><a href="index.php?ir=tabla edificios">tabla edificios
</a></li> <li><a href="index.php?ir=tabla viviendas">tabla viviendas
</a></li> <li><a href="index.php?ir=tabla banco">tabla niveles banco
</a></li> <li><a href="index.php?ir=tabla municion-petroleo">tabla almacen municion-petroleo
</a></li> <!-- we will keep this LI open by default -->
<li><a href="#">AQUI SALDRAN LOS INFORMES DE COMBATE
</a></li>
<li><a href="#">AQUI TENDRIA QUE SALIR LAS NOTAS
</a></li> <li><a href="#">多COMO SE JUEGA
</a></li> <li><a href="#">CONTACTA CON NOSOTROS
</a></li> <li><a href="#">TABLA ARMAS
</a></li> <li><a href="#">TABLA EDIFICIOS
</a></li> <li><a href="#">SE HARA UNA LISTA DE AMIGOS
</a></li> [COLOR="Red"]<?php
$consulta = mysql_query("SELECT * FROM ex_mapa2 WHERE usuario = '$row[7]'");
$row = mysql_fetch_assoc($consulta);
$x = $row['x'];
$y = $row['y'];
echo "<li><a href='mapa2.php?x=$x&y=$y'>Mapa
</a></li>";
?>
[/COLOR]
<!-- prefix free to deal with vendor prefixes -->
<div id="apDiv21">{{content}}
</div>
<iframe class="chat_iframe" style='width:100%;position: relative;top:-73px' scrolling="false" frameborder="0" name="LTuser_status" id="chat_iframe" scrolling="auto" src='../includes/chat/index.php?branch=login'></iframe> <a id="initial" style="cursor:pointer;color:#FBECBB;position: relative; top: -141px; left: 42%;">Sala Inicial
</a> <a id="commerce" style="cursor:pointer; color:#FBECBB; position: relative; top: -114px; left: 31%;">Sala Comercio
</a>
<img src="estilo/temas/{{tema}}/imagenes/login/new1_08.png" width="895" height="14" alt=""></td>