Can someone tell me why 'abc' does not move to the right 500px when you take the cursor over 'shift'?
<html>
<head>
<script language="javascript">
function doEl() {
document.getElementById("opt1").style.left=500;
document.getElementById("opt1").style.visibility="visible";
}
</script>
<style type="text/css">
.opthid {visibility:hidden;}
</style>
</head>
<body>
<div id="opt1" class="opthid">abc</div>
<div onmouseover="doEl()">shift</div>
</body>
</html>
<html>
<head>
<script language="javascript">
function doEl() {
document.getElementById("opt1").style.left=500;
document.getElementById("opt1").style.visibility="visible";
}
</script>
<style type="text/css">
.opthid {visibility:hidden;}
</style>
</head>
<body>
<div id="opt1" class="opthid">abc</div>
<div onmouseover="doEl()">shift</div>
</body>
</html>