Jump to content
#StayAtHome ×


This topic is now archived and is closed to further replies.


YUI Library

Recommended Posts



I'm trying to implement the slider in the following link: http://developer.yahoo.com/yui/examples/slider/slider_dual_with_highlight.html


I know the code is all there, but is that all I need to make it work?  Or do I need to include files with it?  It says something at the very bottom of the page about loading necessary JS and CSS.


Also, and this is the main problem I'm having.  Is it possible to have the slider work with different ranges and different increments?  For example, I want to make it be a range from 1.0 to 5.0 in increments of .5.  So i.0, 1.5, 2.0, 2.5 etc.  Is this possible?


Thanks in advance for any help :)


Share this post

Link to post
Share on other sites

Hi _tina_


I am new at this forum. Please correct me if i am doing something wrong.

Sorry for my english. :-\


On the slider page in the examples. View the source of the page. At the top there are some javascripts you have to include in your document.

Just download the yahoo yui library (2006).

You can find these scripts in the library build files. Always put yahoo.js before all other javascripts.


I think that the slider uses pixels to count. So that would be a problem.

I think you have to use whole numbers.

Correct me if i am wrong.

You can change the range and tickSize in the javascript. Just change these values to what you like.


Dont forget to fit the css to your needs.

#demo_bg has a width of 310px.

Just set the right width to what you need.

You can create your own images or copy them from the yui library. :)








Share this post

Link to post
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.