css/dbdiff: Fix compatible with IE6

IE6 a:hover overwrite other style without ':hover'.
js: Retrieve scrollTop and window height using native js

IE 6 enable quirks mode if html start with <xml, cause jQuery
$(window).height() always return 0, so did some other property.