Peter: Move-funktion

Beitrag lesen

Grüezi Grüezi

Kleine Frage. Eure Meinung verbesserungsvorschläge:

<html>
<head>
 <title> Eingabe </title>

<SCRIPT language="javascript">
     function show(was) {document.getElementById("Ebene").style.visibility = was;}

function init() {ebene=Ebene.style;}

function move(x,y) {ebene.top=x; ebene.left=y;}

</SCRIPT>
</head>

<BODY onLoad="init()">

<A HREF="Javascript:show('visible')">  <img src="button.gif" alt=""/> </A> <br>  <br>   <br>
<A HREF="Javascript:move(50,60)"> links </A>       <br> <br>

<DIV ID="Ebene" style="position:relative; width:560; height:800; visibility:hidden;">

test

</DIV>
</body>

</html>

danke.....