In ie6, problems will occur when executing many js scripts. Generally, incorrect values will be returned when obtaining clientWidth, clientHeight, offsetWidth, offsetHeight, scrollWidth, scrollHeight, scrollTop, and scrollLeft.
Because after adding doctype, these document.body attributes have been reassigned to document.documentElement in ie6.
For example: the original document.body.clientHeight should be changed to document.documentElement.scrollTop
In order to adapt, you can change the following code:
((document.documentElement.clientHeight==0)?document.body.clientHeight:document.documentElement.clientHeight)
Using such code can be adaptive.