<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
SCRIPT LANGUAGE="Javascript" type="text/javascript">
function FloatPosition()
{
var ns = (navigator.appName.indexOf("Netscape") != -1);
var pos = document.getElementById("Spacer");
var pad = ns ? pageYOffset : document.body.scrollTop;
if(pad < 1) { pad =0; }
pos.style.height = 200+ pad+'px';
}
</script>
<body class=<%=bodyClass%> onscroll="FloatPosition()" >
.....
</body>
The code above doesn't work with ie6, but works okay with firefox... what puzzled me was if i removed the dtd above it works (but the styles get messed up in the page and that's undesirable)
I'd really appreciate any help
Thanks
This post has been edited by sume: 03 March 2008 - 01:32 PM

New Topic/Question
Reply



MultiQuote




|