Download form input slider

Demo

Download

You can download the files used in the example from this zip file.

The color_functions.js file is just needed for the examples in order to create RGB color from HSB.

Configuration

Include the dhtmlgoodies_slider.js file like this:
<script src="dhtmlgoodies_slider.js"></script>

Create a form input field and an empty element with an ID. Example:
<td id="slider_target"></td>
<td><input type="text" name="textfield1" size="3" value="55" onchange="aFunction()"></td>

Here, we have created the empty element with the ID "slider_target" and the form element we wish to connect to the slider

Now, we need to initialize the slider. We do that with the following line:
<script type="text/javascript">
form_widget_amount_slider('slider_target',document.forms[0].textfield1,200,0,360,"aFunction()");
</script>

The arguments to the form_widget_amount_slider function are:

  1. 'slider_target' = the ID of the empty element where the slider should be inserted
  2. document.forms[0].textfield1 = the reference to the form field the slider should be connected to
  3. 200 = The width of the slider in pixels
  4. 0 = Minimum value of the slider
  5. 360 = Maximum value of the slider
  6. "aFunction()" = The name of the function that should be called from the slider when a value is changed. If you don't need such a function, just put in false(without quotes)

Comments

Him
Doesn't work.
Him at 11:20PM, 2011/10/21.
Scott Rubyton
Thank you for your awesome script! However there needs to be a tiny change in the js file for it to work with negative min values:I changed line 61 to:if(!theValue.match(/^-?[0-9.]*$/g))theValue=sliderObjectArray[theIndex]['min'] +'';Original:if(!theValue.match(/^[0-9.]*$/g))theValue=sliderObjectArray[theIndex]['min'] +'';I'm still a newbie with regex, so please correct me if I did anything wrong.
Scott Rubyton at 05:48AM, 2011/12/16.
amir habibzadeh
hi ,how can i submit this slider values to other page ????can you give me an example...
amir habibzadeh at 02:44PM, 2012/05/19.
Francisjuide
Оказываем услуги по сбору любой информации по интернет.
Соберем все: информацию, ссылки, статьи, контакты клиентов
или поставщиков итд
Выполним любые Ваши поручения по сбору информации в интернет
Подробности по email: dimagurin491@gmail.com
Francisjuide at 10:08AM, 2018/07/29.
JamesSeems
Online Business Help You Can Use Today

Life can hit you by surprise sometimes. You may suddenly lose your task after working for many years, and you may be undecided about where to start. Have you thought about opening up your personal work from your home business? The next article will give you helpful advice on becoming your own boss.

Create an elevator pitch for the business. This soundbite can impress your drive and clients home your core focus. You can even shorten it in to a slogan!

So that you can run a profitable home-based business, you will need to be determined. Developing a separate structure for your own home business may well be a good idea - or maybe a legally required one, according to your neighborhood codes. This can be particularly well-suited for home businesses with a lot of face-to-face sales, mainly because it keeps customers from your private home. This is a very good way to keep up clear and appropriate boundaries between work and home.

One action you can take to produce an income from your home is always to give people lessons around the things you're able to do. A lot of people love to take private lessons rather than attending a school that costs more and possesses strict schedules. It is possible to teach piano or guitar, or hobbies like knitting. Perhaps you are a sharp photographer. Teaching will make you money.

Produce a good subscriber list for clients. While you would like to connect with your clients, will not spam them with too frequent or unimportant information. Many people use a email list to enhance things like a sale or possibly a certain promotion. Another approach is usually to schedule regularnewsletters and coupons, or product information emails. Make sure you add inside a link where they can join to participate this list.

Be described as a forward thinker. When you should celebrate each success mainly because it happens, you must put them in days gone by after the celebration. Tomorrow and additional in the future is where your focus ought to be. Accomplishing this will help get you ready for future opportunities and potential pitfalls. If you stay focused on the future, you are going to increase the likelihood of being ready for whatever will come your way.

It is best to save a few of the money that you make annually to help you your taxes. Income taxes are due at the end of every quarter. The tax rate is normally 15 to 20 % which could cause substantial amounts owed.

Put in place a fund which can be used in case there is emergency, in order to guarantee your business' financial security. Accomplishing this ensures you can find no unexpected surprises that may damage your small business. However, take care not to make use of your emergency funds unless it really is truly an urgent situation. Replenish the fund the instant you can.

If you wish to open a internet business but can't decide what you should do, the net is a good place to gather inspiration and concepts. However, you must learn that we now have many scams about home businesses online. Many website sell guides to information already accessible for free, and other information is mostly worthless. Some scams lure their victims into purchasing access to high-quality work that does not really exist and some may provide fake online classes. The offer is never just like it might appear.

When you receive your sign in the mail, you should accept it for the bank immediately. Try and deposit over a daily or weekly basis. In the event you don't leave your check laying around, you're not as likely to reduce it. To guarantee your deposit will make it to the account quickly and without hassle, opt for the teller across the ATM machine.

Developing a business you could run from home can be something that men and women who wish to work for themselves should do. Do your best to formulate the most effective business possible so you can live comfortably while working from your home. Reaching your desired profit level does not must be hard, and following the tips you learned here may help you on the journey. Your home business could become a priceless investment and a great asset, too.


https://www.instagram.com/oody_geffen/


oody geffen
JamesSeems at 07:30AM, 2019/06/25.

Post your comment

Don't have an avatar? Create one at Gravatar.com.

Confirmation code:

Go to cbolson.com


About/Contact | A good idea? | Submit a script | Privacy notice
© 2005 - 2024 dhtmlgoodies.com