摘要:
function intval(v) { v = parseInt(v); return isNaN(v) ? 0 : v;}function getPos(e) { var l = 0; var t = 0; var w = intval(e.style.width); var h = intval(e.style.height); var wb = e.offsetWidth; var hb = e.offsetHeight; while (e.offsetParent) { l += e.offsetLeft + (e.... 阅读全文