I have a few jquery thinngs added to my site like gallery, callendar, autocomplete the problem is that all works except that when I click on a image the main image is not changing. I used to click on a thumbnail and in a larger div I get the larger picture displayed, but this thing isn t working since I replaced jquery 1.4.2 with 1.6.2. What is the difference between them and how can I fix this?
这里是主要页上我的彩礼的js代码,在汽车上盖毯的颜色,以及显示相关产品的小umb子。
<script type="text/javascript">
$(function() {
$( #newsflash-text ).cycle({
timeout: 5000, // milliseconds between slide transitions (0 to disable auto advance)
fx: fade , // choose your transition type, ex: fade, scrollUp, shuffle, etc...
pause: 1, // true to enable "pause on hover"
cleartypeNoBg: true, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
pauseOnPagerHover: 0 // true to pause when hovering over pager link
});
$( #slideshow ).cycle({
timeout: 5000, // milliseconds between slide transitions (0 to disable auto advance)
fx: fade , // choose your transition type, ex: fade, scrollUp, shuffle, etc...
pause: 1, // true to enable "pause on hover"
pager: #pagerslide ,
cleartypeNoBg: true, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
pauseOnPagerHover: 0 // true to pause when hovering over pager link
});
//for scroll box
$( #scroll-box ).cycle({
timeout: 0, // milliseconds between slide transitions (0 to disable auto advance)
fx: scrollHorz , // choose your transition type, ex: fade, scrollUp, shuffle, etc...
prev: #arrowprev , // selector for element to use as click trigger for next slide
next: #arrownext , // selector for element to use as click trigger for previous slide
cleartypeNoBg: true, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
height: 150, // container height
pauseOnPagerHover: 0 // true to pause when hovering over pager link
});
// for slideshow with thumb image
$( #img-slide-large ).cycle({
fx: fade ,
speed: slow ,
timeout: 6000,
pager: #nav-thumb ,
pagerAnchorBuilder: function(idx, slide) {
// return sel string for existing anchor
return #nav-thumb li:eq( + (idx) + ) a ;
}
});
});
</script>
是否有办法解决这一问题? 如果我去掉了1.6.2 j,安装了1.4.2,那么这一小部分工作却失败了汽车。 把这2个 j格案卷合并起来,以便所有要素都发挥作用吗? 感谢。