View Full Version : Cursor Trailer Text

Dave Clark I
05-24-2005, 05:00 AM
This script (http://www.dynamicdrive.com/dynamicindex13/trailortext.htm) has a bug where the following properties in IE6 always yield a value of zero even though the page is scrolled down from the top (and/or over from the left) of the document origins.


I did find code that alleviates the problem. However, the code I found indicates that it is a fix for running in IE6 Strict mode -- even though I was running in IE6 Transitional mode. I also modified this script so that it works in NS7 and FF1, too.

I tried to contact the original author, but no response. What is the policy on providing enhancements to such orphan scripts?

05-24-2005, 05:20 AM
If you searched around you probably would find where I made similar modifications (upgrade to FF and NS7.2) in response to a request in the Dynamic Drive Scripts Help section. I did not make the 'documentElement' modification as, it was not called for in that situation. If made, it should be done in such a way as to allow it to still be 'body' for those browsers and pages without doctype support. There is a fix for that, insert this function in your script:
function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}then wherever the script uses:




As for the policy on orphans, there is none I am aware of.