Guten Morgen zusammen !
Ich stöber nun seit 2 Std bei Selfhtml und Googel bekomm aber einfach keine Lösung zu meinem Problem..
und zwar:
Ich habe UL Element mit einem LINK:
<ul id="gamelist_item" style="background-image: url('images/games/crysis2.png');">
<li>
<a onmouseover="showDIV('crysis_div')" onmouseout="hideDIV()" href=""></a>
</li>
</ul>
nun möchte ich an der Position des Linkes/UL eine DIV Öffnen.. wie aber bekomme ich die X/Y Cordiaten des Linkes ?
function showDIV(id) {
wmtt = document.getElementById(id);
var x = wmtt.x;
var x = wmtt.x;
wmtt.style.left = x + "px";
wmtt.style.top = y + "px";
wmtt.style.display = "block";
}
function hideDIV(id) {
wmtt.style.display = "none";
}
hoffe ihr könnt mir helden. Danke schon mal !