Ich wundere mich, warum mein Versuch, ein div-Tag in Safari zu positionieren scheitert und in Opera jedoch nicht
Meine source:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <script language="javascript"> window.onload = init; function init() { if (window.Event) { document.captureEvents(Event.CLICK); } document.onclick = getXY; }
function getXY(e) { window.document.getElementById("Bsp3Melisande").style.visibility='visible'; window.document.getElementById("Bsp3Melisande").style.left=event.clientX; window.document.getElementById("Bsp3Melisande").style.top=event.clientY; window.document.ee.sd.value = event.clientX+":"+event.clientY; } </script>
<style type="text/css" media="screen" class="class"><!-- #Bsp3Melisande { background-image: url(03Melisande.jpg); background-repeat: no-repeat; height: 122px; width: 306px; left: 20px; top: 0; z-index: 400; position: absolute; visibility: hidden; } --></style> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta name="generator" content="Adobe GoLive" /> <title>NeuerTest</title> </head>
<body> <table align=center cellpadding=0 cellspacing=0 width=95%> <tr><td class="class" align=center> <form name=ee><input name=sd type=text> </input></form>
<div id="Bsp3Melisande"</div>
</body>
</html>
Falls jemand auf Anhieb einen Grund feststellen kann, wäre ich sehr dankbar!
Gruß Reiner Wirth