|
-
May 6th, 2000, 12:29 PM
#1
Thread Starter
New Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|