世界100著名的建筑图片(9/22)
//点击大图的脚步 var methods = ["mouseover","mousemove"]; jQuery.each(methods,function(i,n){ jQuery("#bigImage").find("img").bind(n,function(e){//给 window对象绑定事件 var t = jQuery(this); var offset = t.offset(); if(e.pageX - offset.left < t.width()/2) { t.css("cursor","url('http://img.ifeng.com/tres/TemplateRes/left.cur'), auto"); t.unbind("click").bind("click",function(){ goPrev(); }); }else{ t.css("cursor","url('http://img.ifeng.com/tres/TemplateRes/right.cur'), auto"); t.unbind("click").bind("click",function(){ goNext(); }); } }); }); function goPrev(){ var pre = "http://app.house.ifeng.com/pic/detail/31169"; window.location.href = pre; } function goNext(){ var next = "http://app.house.ifeng.com/pic/detail/31171"; window.location.href = next; } jQuery(document).ready(function(){ jQuery("#scrolist_img").jCarouselLite({ btnNext: ".scrobarL", btnPrev: ".scrobarR" }); });
最新评论
评论