Though considered valid according to standards, the charset attribute is never, in my experience used, so could be a problem. Your function should be:
Code:
function getTDHeight(){
var contentTop = getPixelsFromTop(document.getElementById("menuN2")),
contentBottom = getPixelsFromTop(document.getElementById("content_bottom")),
heightOfCell = contentBottom - contentTop,
Newheight = heightOfCell -120;
document.getElementsByName("surround")[0].style.height = Newheight + 'px';
}
The most important change being the addition of + 'px' to the style property's value setting. This is because units are required in style dimensions, though IE will sometimes ignore this rule.
There could be other problems.
Added Later:
There ia another problem. There is no:
document.getElementsByName("surround")[0]
on the page. Use:
document.getElementById("surround")
That exists (from your source code):
Code:
<!-- START CATEGORY BOX -->
<div id="surround">
<img src='images/menu/browse.gif' alt='Browse by category' width='117' height='27'/>
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"><img src="images/menu/cross.gif" alt="cross" width="6" height="6" /></td>
<td class="title">BROTHER</td>
</tr>
</table>
<table width="150" border="0" cells . . .
There still could be other issues.
Bookmarks