Eller måske er det dette:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>Skift plads</title>
<meta name="Generator" content="Stone's WebWriter 4">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
function flyt(nr, vej) {
c2 = nr + vej;
d = document.getElementById("minDiv");
temp1 = d.children[0].children[nr].children[0].cloneNode(true);
temp2 = d.children[0].children[c2].children[0].cloneNode(true);
d.children[0].children[nr].replaceChild(temp2,d.children[0].children[nr].children[0]);
d.children[0].children[c2].replaceChild(temp1,d.children[0].children[c2].children[0]);
}
</script>
</head>
<body>
<div id="main">
<div class="felter" id="minDiv">
<form>
<div><input type="text" name="felt0" value="felt 0" /><input type="button" value="Ned" onClick="flyt(0, 1); return false;" /></div>
<div><input type="text" name="felt1" value="felt 1" /><input type="button" value="Ned" onClick="flyt(1, 1); return false;" /><input type="button" value="Op" onClick="flyt(1, -1); return false;" /></div>
<div><input type="text" name="felt2" value="felt 2" /><input type="button" value="Ned" onClick="flyt(2, 1); return false;" /><input type="button" value="Op" onClick="flyt(2, -1); return false;" /></div>
<div><input type="text" name="felt3" value="felt 3" /><input type="button" value=" Op " onClick="flyt(3, -1); return false;" /></div>
</form>
</div>
</div>
</body>
</html>