Difference between revisions of "Template:China Tongji Content"

Line 221: Line 221:
 
bannerSlider.next()
 
bannerSlider.next()
 
});
 
});
 +
}
 +
//------------滚动条向下滚动超过一定距离时,内容列表固定在指定位置 函数-----------//
 +
function fixContentList(scrollTop,contentList){
 +
if( scrollTop >= 200 ) {
 +
contentList.css("position","fixed");
 +
contentList.css("top","78px");
 +
} else {
 +
contentList.css("position","static");
 +
}
 
}
 
}
 
//----------侧边栏位置指示函数-----------------//
 
//----------侧边栏位置指示函数-----------------//

Revision as of 20:59, 6 September 2015

close label