【发布时间】:2013-01-28 07:58:50
【问题描述】:
我正在尝试使用这两个 jquery 插件之一 (awkward/Coda Slider 3) 来滑动 DIV 内容。 一切正常,直到我在创建插件对象后尝试设置动态内容(使用 js)。 DIV 仅显示在插件创建之前加载的内容。 为此目标的任何想法或其他 DIV 滑块插件。 谢谢。
ajax 工作完美,我已经检查过了。
这是 coda 滑块 $('#slider-id').codaSlider(); 的加载函数
对于“尴尬”:
$(window).ready(function () {
$("#showcase").awShowcase(
{
content_width: 700,
fit_to_parent: false,
auto: false,
interval: 3000,
continuous: false,
loading: true,
tooltip_width: 200,
tooltip_icon_width: 32,
tooltip_icon_height: 32,
tooltip_offsetx: 18,
tooltip_offsety: 0,
arrows: true,
buttons: true,
btn_numbers: false,
keybord_keys: true,
mousetrace: false, /* Trace x and y coordinates for the mouse */
pauseonover: true,
stoponclick: true,
transition: 'fade', /* hslide/vslide/fade */
transition_speed: 500,
transition_delay: 300,
show_caption: 'onhover', /* onload/onhover/show */
thumbnails: true,
thumbnails_position: 'outside-last', /* outside-last/outside-first/inside-last/inside-first */
thumbnails_direction: 'horizontal', /* vertical/horizontal */
thumbnails_slidex: 0, /* 0 = auto / 1 = slide one thumbnail / 2 = slide two thumbnails / etc. */
dynamic_height: true, /* For dynamic height to work in webkit you need to set the width and height of images in the source. Usually works to only set the dimension of the first slide in the showcase. */
speed_change: false, /* Set to true to prevent users from swithing more then one slide at once. */
viewline: false /* If set to true content_width, thumbnails, transition and dynamic_height will be disabled. As for dynamic height you need to set the width and height of images in the source. */
});
});
【问题讨论】:
-
您将不得不向我们展示您所指的一些代码。您最初用于加载滑块的功能是什么?旨在加载其他内容的 Ajax 调用是什么?
-
有 100 多个内容滑块插件...寻找一个具有您需要的功能和告诉您如何添加内容的文档。这里的人不会猜测您正在尝试什么插件,也不会为您搜索文档
-
亲爱的 charlietfl,你可以对堆栈中的任何问题说出来。我不希望没有人为我做研究!!!我正在尝试从开发人员那里获得帮助,也许有人知道这个领域的问题,或者知道这个特定的插件,或者在其他插件中做了类似的使用。此外,我尝试了 4 个类似的插件,但总有同样的问题
标签: javascript jquery html