Difference between revisions of "Template:Sicau-china navigation"

Line 192: Line 192:
 
window.onscroll = function()
 
window.onscroll = function()
 
{
 
{
    var s =0
+
    var s = document.body.scrollTop || document.documentElement.scrollTop
 
    if(s>H+90) {
 
    if(s>H+90) {
 
        oDiv.style = "position:fixed;top:-90px;width:100%;z-index:100;"
 
        oDiv.style = "position:fixed;top:-90px;width:100%;z-index:100;"

Revision as of 19:50, 1 November 2017