Hello, here is my short example ready to paste. Just one style script
and some body. I just wanted to see the value of style.left,
but why it isn't working. I am wondering a lot of time what is wrong
but i failed so please be so kind and help me.
-------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
#myDiv
{
position:absolute;
width: 100px;
height: 100px;
top: 150px;
left: 250px;
border: 1px solid black;
background-color: #339966;
}
</style>
<script type="text/javascript">
<!--
function showLeft()
{
document.getElementById('paragraph').innerHTML =
document.getElementById('myDiv').style.left;
document.write( 'left = ' );
}
//-->
</script>
</head>
<body onload="showLeft()">
<p id="paragraph"></p>
<div id="myDiv"></div>
</body>
</html>
-------------------------------------------------------------------