Magnificat
Technical User
Code:
<script language="JavaScript">
<!--
var ns4 = (document.layers) ? 1 : 0;
var ie4 = (document.all) ? 1 : 0;
var ns6 = (document.getElementById &&! document.all) ? 1 : 0;
var doc_width=800;
if (ns4 || ns6) { doc_width = self.innerWidth; }
else if (ie4) { doc_width = document.body.clientWidth; }
// -->
</script>
Will somebody please tell me why this isn't working? It's giving an object expected error in IE6 and not executing the script at all in NS4. I haven't tested NS6... I think I must be going mad...