代码是://随滚动条移动的div
function divScroll()
{
document.getElementById("phoneContact").style.top=document.documentElement.scrollTop+document.documentElement.clientHeight-document.getElementById("phoneContact").offsetHeight;
document.getElementById("phoneContact").style.left=document.documentElement.scrollLeft+document.documentElement.clientWidth-document.getElementById("phoneContact").offsetWidth;
}
window.onscroll=divScroll;
window.onresize=divScroll;
window.onload=divScroll;
function divScroll()
{
document.getElementById("phoneContact").style.top=document.documentElement.scrollTop+document.documentElement.clientHeight-document.getElementById("phoneContact").offsetHeight;
document.getElementById("phoneContact").style.left=document.documentElement.scrollLeft+document.documentElement.clientWidth-document.getElementById("phoneContact").offsetWidth;
}
window.onscroll=divScroll;
window.onresize=divScroll;
window.onload=divScroll;
function divScroll()
{
document.getElementById("phoneContact").style.top=document.documentElement.scrollTop+document.documentElement.clientHeight-document.getElementById("phoneContact").offsetHeight;
document.getElementById("phoneContact").style.left=document.documentElement.scrollLeft+document.documentElement.clientWidth-document.getElementById("phoneContact").offsetWidth;
}
window.onscroll=divScroll;
window.onresize=divScroll;
window.onload=divScroll;