_tina_ Posted January 23, 2010 Share Posted January 23, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/189562-yui-library/ Share on other sites More sharing options...
_tina_ Posted January 25, 2010 Author Share Posted January 25, 2010 Anybody have any idea on this one? Thanks again Quote Link to comment https://forums.phpfreaks.com/topic/189562-yui-library/#findComment-1001302 Share on other sites More sharing options...
ronvanb Posted February 24, 2010 Share Posted February 24, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/189562-yui-library/#findComment-1017117 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.