P
Paulo Almeida
Hi,
I have the following page:
<!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=utf-8" />
<title>Test</title>
<style type="text/css">
<!--
#div_slider {
height: 16px;
width: 19px;
position:absolute;
top: 229px;
left: 46px;
}
-->
</style>
</head>
<body>
<div id="div_slider">
<img src="slider.png" width="19" height="16" />
</div>
<script type="text/javascript">
document.write("<p>"+document.getElementById('div_slider').style.left+"</p>");
</script>
</body>
</html>
The problem is I'm not getting any value from the document.write statement.
Am I missing something?
Thnaks in advance
Paulo Almeida
I have the following page:
<!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=utf-8" />
<title>Test</title>
<style type="text/css">
<!--
#div_slider {
height: 16px;
width: 19px;
position:absolute;
top: 229px;
left: 46px;
}
-->
</style>
</head>
<body>
<div id="div_slider">
<img src="slider.png" width="19" height="16" />
</div>
<script type="text/javascript">
document.write("<p>"+document.getElementById('div_slider').style.left+"</p>");
</script>
</body>
</html>
The problem is I'm not getting any value from the document.write statement.
Am I missing something?
Thnaks in advance
Paulo Almeida