简体   繁体   English

创建一个独立的JavaScript“滑块”

[英]Creating a self-contained JavaScript “slider”

At the risk of showing the world what a novice I am, here goes: 冒着向世界展示我是新手的风险,这里是:

I'm working on a site with a fluid (100%) width layout. 我正在使用宽度(100%)流畅的网站进行工作。 On a particular page, I'd like to have a slider (although I guess it's really more of a fader) with slides containing text and HTML so they look like one more part of the page, but when a user clicks on a particular word or image on one slide, that will skip to another designated slide. 在一个特定的页面上,我希望有一个滑块(尽管我想它实际上是一个推子),其中包含文本和HTML的幻灯片看起来像页面的另一部分,但是当用户单击某个特定单词时或一张幻灯片上的图像,将跳至另一张指定的幻灯片。 Here's a graphic which hopefully explains what I'm going for: 这是一个图形,希望可以解释我要做什么:

在此处输入图片说明

http://marcatectura.com/wp-content/uploads/2012/08/Slider-graphic.jpg http://marcatectura.com/wp-content/uploads/2012/08/Slider-graphic.jpg

I've been messing around with a JSfiddle for days, but just can't seem to achieve the desired effect: http://jsfiddle.net/Koubenec/yxPQV/50/ 我好几天都在搞混JSfiddle,但是似乎无法达到预期的效果: http : //jsfiddle.net/Koubenec/yxPQV/50/

Any help from the far more experienced folks on stackoverflow would be greatly appreciated. 非常感谢经验丰富的人员对stackoverflow的任何帮助。

基于Coda Slider(位于http://jqueryfordesigners.com/coda-slider-effect/ )的代码正是我想要的!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM