Difference between revisions of "Template:China Tongji Content"

Line 204: Line 204:
 
});
 
});
  
//图片轮播控制函数
+
//---------------图片轮播控制函数--------------------//
 
function picMove(bannerTab,bannerCtrl,bannerPrev,bannerNext){
 
function picMove(bannerTab,bannerCtrl,bannerPrev,bannerNext){
 
var bannerSlider = new Slider(bannerTab, {
 
var bannerSlider = new Slider(bannerTab, {
Line 222: Line 222:
 
});
 
});
 
}
 
}
 +
//----------侧边栏位置指示函数-----------------//
 +
function locationFirstShow(scrollTop,firstST,list,listDrop){
 +
if( (scrollTop<firstST-78) ){
 +
list.css("color","#F0F");
 +
listDrop.css("display","block");
 +
}else{
 +
list.css("color","#000");
 +
listDrop.css("display","none");
 +
}
 +
} //第一个二级标题位置指示
 +
function locationShow(scrollTop,firstST,secondST,list,listDrop){
 +
if( (scrollTop>=firstST-78) ){
 +
list.css("color","#F0F");
 +
listDrop.css("display","block");
 +
if(scrollTop>=secondST-78){
 +
list.css("color","#000");
 +
listDrop.css("display","none");
 +
}}else{
 +
list.css("color","#000");
 +
listDrop.css("display","none");
 +
}
 +
} //中间的二级标题位置指示
 +
function locationLastShow(scrollTop,lastST,list,listDrop){
 +
if( (scrollTop>=lastST-78) ){
 +
list.css("color","#F0F");
 +
listDrop.css("display","block");
 +
}else{
 +
list.css("color","#000");
 +
listDrop.css("display","none");
 +
}
 +
} //最后的二级标题位置指示
 
</script>
 
</script>
 
</body>
 
</body>
  
 
</html>
 
</html>

Revision as of 20:30, 6 September 2015

close label