<script type="text/javascript"> window.onload= function(){ var oDiv = document.getElementById("fixPara"), H = 0, Y = oDiv while (Y) { H += Y.offsetTop; Y = Y.offsetParent; } window.onscroll = function() { var s = document.body.scrollTop || document.documentElement.scrollTop if(s>H) { oDiv.style = "position:fixed;top:60px;left: 963px;" } else { oDiv.style = "position:static;" } } }</script> |
新闻热点
疑难解答