Forum Moderators: open

Message Too Old, No Replies

Poll and Voting scripts

         

mikeD

7:37 pm on Oct 3, 2002 (gmt 0)

10+ Year Member



Anybody know any good ones?

vibgyor79

7:48 pm on Oct 3, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sparklit.com

Extremely affordable!

It is Free :)

SethCall

7:54 pm on Oct 3, 2002 (gmt 0)

10+ Year Member



come on buddy, you can try harder than that;)

Its like this:
function (radioChoice){

//Store result in database/file

openFile("results.txt");
readFile("read in yes results and no results);
so now
var radioYes = "# from your file";
var radioNo = "# from your file";
if(radioChoice=="yes")
radioYes+=1;
else
radioNo+=1;

writeFile("write back yes and no with new variables");

/*Show results in cute image!
these divs will be a certain width, and a certain background color( green for yes, red for no), and their div.style.width will be a proportion between the yes and no answers.*/

ex.:
radioYes = 15, radioNo = 5; maxWidthofDiv = 30% of screen;

divYes.style.width = radioYes/(radioYes + radioNo) *maxWidthOfDiv;
divNo.style.width = radioNo/(radioYes + radioNo) * maxWidthOfDiv;

divYes.style.visible="visible";
divNo.style.visible="visible";

and u've done it!

LOOOL :)

vibgyor79

8:01 pm on Oct 3, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



um.. ahem.. yeah :)

I always do it the hard way

SethCall

8:08 pm on Oct 3, 2002 (gmt 0)

10+ Year Member



lol sorry viby! i was making that msg as u posted yours ... either way, my comment makes sense, though not the same meaning ;)

Visit Thailand

2:27 am on Oct 4, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a good one if you do not want to write your own :

[ralusp.net...]

jrstark

1:35 am on Oct 8, 2002 (gmt 0)

10+ Year Member



I'll second the recommendation for sympoll. Very easy to customize, to add new polls you just type in the question and answer.