日期:2014-05-16 浏览次数:20401 次
<a href="http://news.ifeng.com/photo/yizhousaojietu/detail_2011_12/25/11555699_0.shtml" id="bigLink" style="cursor: url(http://img.ifeng.com/tres/TemplateRes/left.cur), auto; "><img onmousemove="imageonmousemove(event)" id="bigImage" src="http://res.news.ifeng.com/b52d6dcee929704a/2011/1218/rdn_4eed27916c965.jpg" width="950" height="600" alt="一周扫街图2011.12.11-12.17 " title="<<点击浏览上一张"></a>
<script>
prevLink = "http://news.ifeng.com/photo/yizhousaojietu/detail_2011_12/25/11555699_0.shtml";
nextLink = "http://news.ifeng.com/photo/yizhousaojietu/detail_2011_12/18/11399277_1.shtml";
function $(id){return document.getElementById(id);}
function getpos(element) {
if (arguments.length != 1
------解决方案--------------------
element == null) {
return null;
}
var elmt = element;
var offsetTop = elmt.offsetTop;
var offsetLeft = elmt.offsetLeft;
var offsetWidth = elmt.offsetWidth;
var offsetHeight = elmt.offsetHeight;
while (elmt = elmt.offsetParent) {
if (elmt.style.position == 'absolute'
------解决方案--------------------
(elmt.style.overflow != 'visible' && elmt.style.overflow != '')) {
break;
}
offsetTop += elmt.offsetTop;
offsetLeft += elmt.offsetLeft;
}
return {
top: offsetTop,
left: offsetLeft,
right: o