T
Thomas Scheiderich
I am trying to get this section to move and I can't seem to get it to move.
When I click the words or image - it should move, but it isn't.
What am I missing?
*************************************************************
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title></title>
</head>
<body>
<script language="javascript">
function moveObject()
{
alert("this is a test");
var object=document.getElementById('object1');
object.style.top=60 + 'px';
object.style.left=120 + 'px';
alert("this is a test2");
}
</script>
<div id="object1" onclick="moveObject()" >
This is a test<br><img src="msft_118x35.gif">
</div>
</body>
</html>
*********************************************************
Thanks,
Tom
When I click the words or image - it should move, but it isn't.
What am I missing?
*************************************************************
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title></title>
</head>
<body>
<script language="javascript">
function moveObject()
{
alert("this is a test");
var object=document.getElementById('object1');
object.style.top=60 + 'px';
object.style.left=120 + 'px';
alert("this is a test2");
}
</script>
<div id="object1" onclick="moveObject()" >
This is a test<br><img src="msft_118x35.gif">
</div>
</body>
</html>
*********************************************************
Thanks,
Tom