könnet ich vileicht mit der funktion : onclick den anderen div verschieben???
umgefähr so
<html>
<head>
...
<style>
body { margin: 0; }
div.1 { background-color: #FF6666; width: 200px; height: 60px;
position: absolute; top: 15px; left: 15px; z-index: 3; padding: 5px;
border-width:6px; border-color: silver; border-style: outset; }
div.2 { background-color: #FF0000; width: 200px; height: 60px;
position: absolute; top: 45px; left: 45px; z-index: 2; padding: 5px;
border-width:6px; border-color: silver; border-style: outset; }
</style>
...
</head>
<body>
<div class="1" onmousedown="this.style.borderStyle='inset';" onclick="dokument.(2).style.top = '60px';"
onmouseup="this.style.borderStyle='outset';">
element
</div>
<div class="2" onmouseover="this.style.zIndex='4';" onmouseout="this.style.zIndex='2';"
onmousedown="this.style.borderStyle='inset';" onmouseup="this.style.borderStyle='outset';">
element
</div>
</body>
</html>