Autor Zpráva
Kyo
Profil *
mam problém funguje mi to vpohode ale když najedu na nazev klanu tak se mi vzdy zobrazi vysledek posledniho zapasu nevite nekdo co stim?

Mam KOD
<script>
wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (wmtt != null) {
		wmtt.style.left = (x + 20) + "px";
		wmtt.style.top 	= (y + 20) + "px";
	}
}

function showWMTT(id) {
	wmtt = document.getElementById(id);
	wmtt.style.display = "block"
}

function hideWMTT() {
	wmtt.style.display = "none";
}

</script>

<style type="text/css">
.tooltip {
	position: absolute;
	display: none;
	background-color: #FFFFFF;
}
</style>
<div class="tooltip" id="1" style="width: 200px;">$result</div>
<tr>
  <td>
    <table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" height="25">
		<tr>
			<td width="12" height="16"></td>
			<td width="23" height="16">
			<img src="images/flags/$country.gif" border="0"/></td>
			<td height="16" width="224"><a href="index.php?site=clanwars_details&cwID=$resultID" onmouseover="showWMTT('1')" onmouseout="hideWMTT()">
			$ds[opptag]</a></td>
			<td height="16">
				<img src="$gameicon" border="0" /><img src="images/$resultimg.gif" border="0" /></td>
		</tr>
</table>
Str4wberry
Profil
Možná pořád voláte funkci showWMTT se stále stejným číslem, těžko říct.
habendorf
Profil
BTW, 1 není dobrá hodnota pro id.
Toto téma je uzamčeno. Odpověď nelze zaslat.

0