I need this div to be visible and move up when a menu item is selected. Can anyone provide a solution for this? Thank you in advance.
<html><head>
<script type="text/javascript">
<!--
var divobject = null;
function init(id){
divobject = document.getElementById('id');
divobject.style.left = '25px';
divobject.style.top = '580px';
divobject.style.visibility = 'hidden';
}
function moveUp(id){
divobject = document.getElementById(id);
divobject.style.visibility = 'visible';
divobject.style.left = '25px';
divobject.style.top = parseInt(div.style.top) + 0 + 'px';
divobject.style.position = 'absolute';
}
document.onclick =init;
window.onload =init;
//-->
</script>
</head>
<body>
<a href="javascript:void(moveup('1'));">show div</a>
<div id="1">tytt</div>
</body>