我正在构建这个页面:https://yuyotest.000webhostapp.com/design.html 代码还没准备好,我还在测试一些脚本位置的东西。哈哈。 问题是,在第一部分的末尾,有4个徽标。无论何时单击这些徽标,都会弹出一个带有滑块(JQuery lightSlider)的模式。 Im having console errors when trying to click one of the logos and make the slider show the slide number of the logo nth:child clicked. Getting the ch
如果用类“imageGallery”触发单击,我希望销毁函数variation_swatch的变量滑块。
阅读一些关于本地和全局范围的内容,但我似乎无法完成它,因为我得到了that和slider都没有定义。
我怎样才能正确设置它?
function imageGallery() {
var slider = $('#imageGallery').lightSlider({
gallery:true,
item:1,
loop:false,
});
var that = this;
}
$(document
很长一段时间以来,我一直试图在我的网站上加入一个基于JQuery的内容滑块,但我还没能找到一个。下面是网页的php中的相关代码:
<ul class="bxSlider">
<?php
$poemquery = mysql_query("SELECT * FROM Act1Poems ORDER BY id asc") or die(mysql_error());
$currentElement = 0;
$totalElements = 0;