複製程式碼 程式碼如下:
<script type="text/javascript">
// 說明:用 Javascript 獲取滾動條位置等資訊
// 來源 :ThickBox 2.1
function getScroll()
{
var t, l, w, h;
if (mentElement && llTop) {
t = llTop;
l = llLeft;
w = llWidth;
h = llHeight;
} else if () {
t = llTop;
l = llLeft;
w = llWidth;
h = llHeight;
}
return { t: t, l: l, w: w, h: h };
}
</script></p