Slider Update

2006-03-12 10:00 - Programming

I wrote a javascript slider control a while back, used in my games section to allow players to choose how big the game should be. It was purposely very small and simple. It worked, but not perfectly.

Today, I "ballooned" the size from 2,611 bytes to 2,944 bytes, plus a 1,267 byte license block. It works much better. I've tested it in Firefox 1.5 and WinIE 6, to now allow clicking anywhere in the slider to set a value, and dragging from there, or dragging the slider knob without bugs.

Like always, you can put as many sliders in the page as you like. Sample code is available. Enjoy!

Comments:

slider
2009-11-11 03:56 - fabio

It's posible to autoset the slider ? i have a web player and want to use your slider for the Music Loaded Bar.. i tried to use drawSliderByVal(slider) but don't want to work.. i don't know the value of: slider i wan't to input my slider position like a number from 1 to 100. please help me. thanks

ps: i'm new in javascript...

Post a comment:

Username
Password
  If you do not have an account to log in to yet, register your own account. You will not enter any personal info and need not supply an email address.
Subject:
Comment:

You may use Markdown syntax in the comment, but no HTML. Hints:

If you are attempting to contact me, ask me a question, etc, please send me a message through the contact form rather than posting a comment here. Thank you. (If you post a comment anyway when it should be a message to me, I'll probably just delete your comment. I don't like clutter.)