我收到一个 JavaScript 错误,你可以在这里看到: http ://www.northernvirginiapaintingcontractor.com/Interior
对象不支持此行的此属性或方法:
$(".stripNav ul li a").eq(curclicked).trigger('click');
如果有人有任何线索,请告诉我,我将非常感激。
此行包含在此处-此 CodaSlider 的整个 JavaScript:(Coda 插件除外)
var theInt = null;
var $crosslink, $navthumb;
var curclicked = 0;
theInterval = function (cur) {
clearInterval(theInt);
if (typeof cur != 'undefined')
curclicked = cur;
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
theInt = setInterval(function () {
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
curclicked++;
if (7 == curclicked)
curclicked = 0;
}, 3000);
};
这是文档准备功能:
$(document).ready(function () {
// slider below //
$("#main-photo-slider").codaSlider();
$navthumb = $(".nav-thumb");
$crosslink = $(".cross-link");
$navthumb
.click(function () {
var $this = $(this);
theInterval($this.parent().attr('href').slice(1) - 1);
return false;
});
.....