Jump to content

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/189562-yui-library/
Share on other sites

  • 5 weeks later...

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

 

 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/189562-yui-library/#findComment-1017117
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.