Author Topic: YUI Library  (Read 780 times)

0 Members and 1 Guest are viewing this topic.

Offline _tina_Topic starter

  • Enthusiast
  • Posts: 78
    • View Profile
YUI Library
« on: January 23, 2010, 05:14:44 PM »
Hi,

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 :)

Offline _tina_Topic starter

  • Enthusiast
  • Posts: 78
    • View Profile
Re: YUI Library
« Reply #1 on: January 25, 2010, 10:18:00 AM »
Anybody have any idea on this one?

Thanks again

Offline ronvanb

  • Irregular
  • Posts: 9
  • Gender: Male
    • View Profile
    • ronvanb
Re: YUI Library
« Reply #2 on: February 23, 2010, 07:12:16 PM »
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.
:)


 



Go with the flow.