ActiveDen

sliding multiple choice selector

Use these sliding multiple choice as2 selectors in forms or polls or anywhere where you need the user to select between a few different options. Works best for “scale” measurement as well as yes and no answers.

They are easily customisable to any amount of options you need.

// EDIT Nayyer pointed out that I dont actually have a working example. Sorry guys – Will try and update this file asap. Meanwhile, here’s how you would use it.

Lets assume your slider is called slider 1. Whenever you need to know the value, call the following: slider1.getValue();

That will return a number that corresponds to the position of the dot.

If you then want to attach a value to the number, you need to create an array that holds your options. Like so: slider1Array = [””,”DISAGREE”,”NEUTRAL”,”AGREE”];

Then use the returned value in the array: slider1Array[slider1.getValue()] // This will return one of the above.

If you are using the sliders over many frames you’ll have to store each value when a person clicks continue in an array:

surveyArray = new Array(); btnNext.onRelease = function(){ surveyArray.push(slider1.getValue()); }

Then, on the final page loop through the array and format results the way you want to.

Hope that helps in the interim.

More files by me

Solitarious – Chinese Solitaire game

Themed memory game with php and asp save enabled

Themed memory game (Simple – No save)

Explosion of stars

Shuffle type

by
by
by
by
by