- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
您好,我正在使用此处显示的 roundabout.js 实现带有 5 个图像的环形交叉路口 http://fredhq.com/projects/roundabout/demos/standard
所以我想知道当前的正面图像,这样我就可以在用户点击它时实现一些触发器。我不想在用户点击前面图片后面显示的图片时启用触发器。
触发器仅针对正面图像启动,自然行为对背面的其余图像发生。
我尝试在我的 Html 文件中使用 roundabout_startChildren() 函数,但不知道如何准确使用该函数。
最佳答案
注意:-我从来没有使用过这个插件,所以如果您认为我误解了您的问题,请不要投票,请更正我的答案
在页面加载时为所有可移动元素切换 click
off
并在点击元素 hasClass
时on
> roundabout-in-focus
然后是 animateToNextChild
$('ul').roundabout()
$('ul li').off('click');
$('.roundabout-moveable-item').click(function(e){
if($(this).hasClass('roundabout-in-focus'))
{
$(this).on('click')
$('ul').roundabout("animateToNextChild")
}
})
根据评论中提到的要求编辑
$('ul').roundabout()
$('.roundabout-moveable-item').click(function(e){
if($(this).hasClass('roundabout-in-focus'))
{
window.open('http://www.google.com')
//use --window.location="http://www.google.com"-- to open in same window
}
})
关于javascript - 使用 roundabout.js 时如何知道 StartChild,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19753200/
当我运行以下测试(使用 F#2.0 构建)时,我得到了 OutOfMemoryException。在我的系统上出现异常大约需要 5 分钟(如果它作为 x86 进程运行,则 i7-920 6gb ram
我正在尝试等待超时事件。我在函数 startAwaitEventWithTimeout 后面对此进行了抽象。目前我的代码看起来像这样(包括一些调试输出消息): let startAwaitEventW
我正在努力理解 Async.[StartChild|Start] API 设计。 我想要的是启动一个异步进程,该进程根据到达 tcp 的命令执行一些 tcp 流读取和调用回调。 由于这个异步进程并没有
假设 asyncSendMsg不返回任何内容,我想在另一个异步块中启动它,但不等待它完成,这之间有什么区别: async { //(...async stuff...) for msg
您好,我正在使用此处显示的 roundabout.js 实现带有 5 个图像的环形交叉路口 http://fredhq.com/projects/roundabout/demos/standard 所
我是 F# 的新手,我一直在阅读 F# for Fun and Profit。在为什么使用 F#? 系列中,有一个 post描述异步代码。我遇到了 Async.StartChild函数,我不明白为什么
我是一名优秀的程序员,十分优秀!