Сообщение от vah-smile
|
var iframe_width = document.getElementById("td_width").offsetWidth
|
отлично работает для ie 6, opera 10, ff 3
на таблице типа:
<!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>
</head>
<body>
<table id="table" width="100%">
<tr>
<td style="background-color:#cecece;">1</td>
</tr>
</table>
<script language="JavaScript" type="text/javascript">
alert(iframe_width = document.getElementById("table").offsetWidth);
</script>
</body>
</html>