bnbweb/back/js/tagbox.js

18 lines
489 B
JavaScript
Raw Permalink Normal View History

2022-11-14 17:31:15 +00:00
var pos;
var MSIE=navigator.userAgent.indexOf("MSIE");
var Fire=navigator.userAgent.indexOf("Fire");
var OPER=navigator.userAgent.indexOf("Opera");
var bdy = (document.documentElement && document.documentElement.clientWidth)?document.documentElement:document.body;
onscroll = function()
{
if (Fire > 0)
{
pos = window.pageYOffset;
}
else
{
pos = bdy.scrollTop;
}
var ele_top = 100;
document.getElementById('tag_box').style.top = (pos + ele_top) + 'px';
2022-11-14 15:49:28 +00:00
}