﻿// 默认右边
// 在IE6上总是无法显示出窗口，经过多次调试，发现在用 div + css 布局的网站上，该代码只是独立的放到最后，不能直接放在 web.bottom.asp 中，而 table 布局的网站，则没有这个问题
document.write('<div id="script_im_right" style="position:absolute; z-index:1001; !important;position:absolute; margin-top:170px; left:0px;">');
document.write('	<div id="script_im_top" style="width:135px; height:280px; background:url(uploadfiles/advertising/smallimage/28.jpg) no-repeat top; overflow:hidden;"></div>');
document.write('</div>');

function auto_scroll()
{
	// document.getElementById("script_im").style.top = document.documentElement.scrollTop;
	document.getElementById("script_im_right").style.top = document.documentElement.scrollTop;
}

window.onscroll = auto_scroll;
window.onresize = auto_scroll;
// 以下代码可能会与其他地方有冲突，因为 window.onload 只能运行一次，直接改为运行函数即可
// window.onload = auto_scroll;
auto_scroll();

function script_im_close()
{
	document.getElementById("script_im").style.display = "none";
}
