mohn3310
May 6th, 2000, 01:29 PM
Hi all,
I have this script...
function positionIt(){
if (document.all){
theNav.style.left = parseInt(document.body.scrollLeft) + parseInt(document.body.clientWidth) - 100;
theNav.style.top = document.body.scrollTop;
}
}
setInterval("positionIt()",200)
Basically all this does is keeps this particular div (theNav) visible when scrolling, resizing etc..
Well it works great in IE5.. IE5.5 but in IE4 even though it serves it purpose and the script works, for some reason it adds a whole screen worth's width (the document.body.clientWidth part) to the actually width. So scroll bars appear.
Hope I was able to explain my problem satisfactorily.
Any ideas? Thanks for your help.
Mohnish
I have this script...
function positionIt(){
if (document.all){
theNav.style.left = parseInt(document.body.scrollLeft) + parseInt(document.body.clientWidth) - 100;
theNav.style.top = document.body.scrollTop;
}
}
setInterval("positionIt()",200)
Basically all this does is keeps this particular div (theNav) visible when scrolling, resizing etc..
Well it works great in IE5.. IE5.5 but in IE4 even though it serves it purpose and the script works, for some reason it adds a whole screen worth's width (the document.body.clientWidth part) to the actually width. So scroll bars appear.
Hope I was able to explain my problem satisfactorily.
Any ideas? Thanks for your help.
Mohnish