问题标签 [sliders]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
91 浏览

jquery - jQuery从匿名滑块获取滑块值

我正在寻求帮助:

http://jsfiddle.net/techii/9e2cJ/2/

这是对此的后续问题

但是因为这不是一个“带着你的问题来到这里,我们会为你解决”的网站,所以我特别有一个特别的问题

在上面的 jsfiddle 中,我使用了匿名滑块,并且对滑动/更改做出反应的函数应该过滤/匹配从 JSON 解析的餐馆。我正在尝试从我的四个滑块中提取值,但它们必须与它们各自的变量匹配,例如收集时的 ambienceSliderValue,以便我可以将它们与它们的 JSON 对应项进行比较(ambienceRating)

是我使用命名滑块的唯一解决方案吗?

0 投票
2 回答
409 浏览

javascript - jQuery: (this) ui.value solution

I'm pretty new to jquery, but this is question. From my code below I have made 3 sliders each within a tag. Each of the three has an input field that is changed when the slider is moved to show the current value of the slider (simple jQueryUI plugin sliders). The final line involves another plugin that links all the sliders together so that they all add to 100 total and move when the others move.

The problem I'm having is that when I slide one, its value changes and shows but the others do not. I can get all of the values to change with some extra lines of code, but I don't know how to get (this) ui.value so that I can display the separate values for each of the sliders.

You can see in the third slider I tried to get it to do that, but the way it is set it only takes the same ui.value of the current slider being moved.

Can anyone help me with a solution to get (this) ui.value of the other sliders when i need to change it?

0 投票
3 回答
13979 浏览

java - 使用两个滑块生成的两个数字相加的 Java 程序

我为我的 java 类分配了这个任务,我必须使用滑块添加两个数字,我真的被卡住了。这是我的代码:

当我去运行它时,它不想工作。我可能错过了一些东西,但我似乎无法弄清楚。我什至是正确的吗?

0 投票
1 回答
1736 浏览

c++ - 如何在 Qt Eclipse 中获取滑块位置的值?

我有大约 5 个按钮和一个滑块。每次我单击按钮时,都会调用特定按钮的函数。

但是,我也希望滑块做同样的事情。因此,您可以将滑块拖动到 5 个不同的位置,而不是按下按钮,它会做同样的事情。但是,我真的不知道如何将滑块的 5 个不同位置连接到每个按钮。任何帮助,将不胜感激。

谢谢

0 投票
3 回答
483 浏览

jquery - 我所有的(jQuery UI)单个滑块都获得相同的值

当我滑动每个滑块时,我希望同一页面的每个滑块都有自己的值。

当我滑动其中一个时,每个滑块的“滑块块”按计划作为条件背景颜色工作,但所有滑块的值都相同。

这是我的 JS 代码:

这是 JSfiddle 中的代码:http: //jsfiddle.net/Arkl1te/Wrq3H/

有没有办法解决这个问题?我感谢您的帮助!

0 投票
1 回答
2557 浏览

javascript - 我的 Jquery 滑块在本地工作,但不在 Web 服务器上

我在http://insstock.info/xxx/上有一个测试网站

插入两个滑块:

  1. 尼沃滑块
  2. DIV Content Jquery 滑块(正好在 Nivo Slider 下方)

第二个滑块预计会一个一个地翻转内容;相应地设置了代码和脚本!

它在 Chrome 开发者工具控制台面板中没有显示错误!

任何人都可以帮我制作第二个滑块吗?

0 投票
2 回答
3289 浏览

jquery - jQuery滑块多个div

我在这里有一个基本代码,可以滑动/取消幻灯片,但是因为有 5 个 div,所以如果 slideToggle() 幻灯片打开并且我单击另一个链接,它也会触发 slideToggle() 来打开这个 div。我想要它关闭打开的 div 然后打开请求的 div?

非常感谢

0 投票
2 回答
229 浏览

c# - 如何使滑块匹配值

我目前正在使用 WPF 中的滑块。我的 GUI 窗口有 2 个滑块,它们应该以几种方式一起起作用。slider1必须始终小于或等于slider2,并且slider2必须始终大于或等于slider1。我第一次尝试使用 C# 代码隐藏来解决这个问题记录在我之前的问题中。这个问题让我的代码得以编译,但在运行时并没有影响我的程序的任何视觉变化。使这些滑块以我需要的方式运行的理想方法是什么?

谢谢你。

0 投票
3 回答
11878 浏览

javascript - 使用 javascript 自动更改图像

我有当前的 JavaScript 问题。我的网站上有四个相邻的分区,它们以 10 秒的间隔不断地旋转图像。我需要这些间隔以保持当前间隔旋转图像,但开始时彼此间隔 5 秒以获得漂亮的瀑布效果。如何使用 JavaScript 完成此操作?

它在我的网站标题上的外观图片

这是我目前用来显示单个分割和处理图像旋转的代码示例。

0 投票
2 回答
2496 浏览

jquery - Jquery UI sliders - 2 working together to calculate an amount

I've got 2 Jquery sliders and when I get them working together they break. The first slider measures weight, and the second exercise. I'm trying to code a final value, the 'outcome' the displays the outcome of both.

When the 1st weight slider increases, so does the outcome value. When the 2nd exercise slider increases, the final outcome goes down. I'm just using simple number values until i get my head around it, how do I get them working together?