function setSellerInfoButtonLocation()
{
var btn=document.getElementById('seller-info-link');
btn.style.left=document.body.scrollLeft + document.body.clientWidth -btn.offsetWidth;
btn.style.top = document.documentElement.scrollTop+"px";
}
....
....
<body onload="setSellerInfoButtonLocation()" onscroll="setSellerInfoButtonLocation()" >
<body />
沒有留言:
張貼留言