ďťż
Misja Tereski
Witam mam oto taki plik, chce odświeżać div'a "left" co 10 sekund, niestety coś nie działa. Pomoże ktoś to naprawić.
Download: Rapidshare, Hotfile, Megaupload, Przeklej i Inne <!-- Edit templates/private_header.php to edit the layout --> <html> <head> <title>StreetFights :: <?=PAGENAME?></title> <link rel="stylesheet" type="text/css" href="./templates/style.css" /> <script type="text/javascript"> function refresh() { var req = mint.Request(); req.OnSuccess = function () { document.getElementById("left").innerHTML = this.responseText;}, req.OnError = function () {document.getElementById("left").innerHTML = "Wystąpił błąd !!! </br>" + this.responseText + "</br>" + req.xmlHttpRequest.statusText ;} req.Send ("private_header.php"); } var ginter=setInterval(refresh, 10000); </script> </head> <body> <div id="wrapper"> <div id="header"> <div id="header-text"> </div> </div> <div id="left"> <div class="left-section"> <body onload="refresh()" > <?php if ($player->race == 1) { print "<b>Jesteś:</b> Skinheadem"; } else if ($player->race == 2) { print "<b>Jesteś:</b> Punkiem"; } ?><br> <b>Login:</b> <?=$player->username?><br /> <b>Poziom:</b> <?=$player->level?><br /> <?php $percent = intval(($player->exp / $player->maxexp) * 100); ?> <b>Doświadczenie:</b> <?=$player->exp?>/<?=$player->maxexp?> (<?=$percent?>%)<br /> <b>Zdrowie:</b> <?=$player->hp?>/<?=$player->maxhp?><br /> <b>Energia:</b> <?=$player->energy?>/<?=$player->maxenergy?><br /> <b>Hajs:</b> <?=$player->gold?> zł<br /> <tr> <td><b>Bojówka:</b></td> <td> <?php if ($profile['guild_id'] != NULL) { $guildquery = $db->execute("select `name` from guilds where `id` = " . $profile['guild_id'] . ""); $guild = $guildquery->fetchrow(); echo "<a href=\"guild_profile.php?id=" . $guild['name'] . "\">" . $guild['name'] . "</a>"; } ?> </td> </tr> </div> <div class="left-section"> <ul> <li><a class="header">Skróty</a></li> <li><a href="home.php">Strona Główna</a></li> <li><a href="log.php">Dziennik [<?=unread_log($player->id, $db)?>]</a></li> <li><a href="inventory.php">Ekwipunek</a></li> <li><a href="bank.php">Bank</a></li> <li><a href="hospital.php">Szpital</a></li> <li><a href="battle.php">Walka</a></li> <li><a href="shop.php">Sklep</a></li> <li><a href="potionshop.php">Sklep z Używkami</a></li> <li><a href="monsterslist.php">Wypad na miasto</a></li> </ul> </div> <div class="left-section"> <ul> <li><a class="header">Społeczeństwo</a></li> <?php if ($player->guild_id != NULL) { echo "<li><a href='guild_home.php'>Towja bojówka</a></li>"; } else { echo '<li><a href="guild_register.php">Stwóż bojówke</a></li>'; } ?> <li><a href="guild_listing.php">Bojówki</a></li> <li><a href="guild_scores.php">Ranking bojówek</a></li> <li><a href="mail.php">Wiadomości [<?=unread_messages($player->id, $db)?>]</a></li> <li><a href="members.php">Lista graczy</a></li> <li><a href="#">Forum</a></li> </div> <div class="left-section"> <ul> <li><a class="header">Inne</a></li> <li><a href="#">Pomoc</a></li> <li><a href="logout.php">Wyloguj</a></li> <?=($player->rank=="Admin"?"<li><a href=\"admin.php\">Admin</a></li>":"")?> </ul> </div> <br /><br /> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/"> <img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png" /> </a> </div> <div id="right"> <div id="content"> Download bez limitów |