develop a " prize page" for an existing site.
$30-250 USD
Paid on delivery
TrafficMad
Dear Sir,
I am trying to help a friend develop a “ prize page” for an existing site.
While researching this I came across a script that I think this script could be adapted for my idea without too much trouble. Below my signature is the old “Lets Make a Deal “ TV program :
I do not have the original script you would be adding to. I do have the hosting and cpanel info.
Here is link to the site [url removed, login to view] and the UN/PW is wheels031799/ pxh27mgw .
What I am trying to do is replace or add a prize page that comes up every XX pages surfed. The new page would consist of three muscle cars that the user would click on their choice (hood is down). Choice would appear with hood up, showing engine which would have a changeable by admin prize in a space on the air cleaner of the engine (would be a point prize).
If you are interested in this please reply to this email as I am unable to speak on telephone. I will furnish graphics.
Best Regards,
Java Code Here:
[
doc = document;
function init()
{
// set up objects
stob = [url removed, login to view]["teaser"].stayer;
rob = [url removed, login to view]["teaser"].randomer;
swob = [url removed, login to view]["teaser"].switcher;
}
function proveIt()
{
// create/clear out array
doors = new Array(false,false,false);
// reset tallies
stwin = 0;
stloss = 0;
rwin = 0;
rloss = 0;
swwin = 0;
swloss = 0;
// clear out textareas
[url removed, login to view] = "";
[url removed, login to view] = "";
[url removed, login to view] = "";
// loop through 100 times
for (l=100;l>0;l--)
{
// decide which door holds the prize
d = rand(3);
doors[d] = true;
// randomly pick a door
p = rand(3);
// randomly remove one of the loser doors
removed = false;
while (!removed)
{
r = rand(3);
if (r != d && r != p)
{
removedvalue = r;
removed = true;
}
}
// for randomer, randomly switch/stay
ss = rand(2);
if (ss==0)
{
// switch
switchstay = false;
while (!switchstay)
{
s1 = rand(3);
if (s1 != p && s1 != removedvalue)
{
switchstayvalue = s1;
switchstay = true;
}
}
}
else
{
// stay
switchstayvalue = p;
}
// for switcher, switch
for (s2=0;s2<3;s2++)
{
if (s2 != p && s2 != removedvalue)
{
switchervalue = s2;
switcher = true;
break;
}
}
// determine outcomes
// stayer
if (d==p)
{
stwin++;
[url removed, login to view] = stwin + " Winner\n" + [url removed, login to view];
}
else
{
stloss++;
[url removed, login to view] = stloss + " Loser\n" + [url removed, login to view];
}
// randomer
if (d==switchstayvalue)
{
rwin++;
[url removed, login to view] = rwin + " Winner\n" + [url removed, login to view];
}
else
{
rloss++;
[url removed, login to view] = rloss + " Loser\n" + [url removed, login to view];
}
// switcher
if (d==switchervalue)
{
swwin++;
[url removed, login to view] = swwin + " Winner\n" + [url removed, login to view];
}
else
{
swloss++;
[url removed, login to view] = swloss + " Loser\n" + [url removed, login to view];
}
}
// write final tallies
[url removed, login to view] = stwin + " winners\n" + stloss + " losses" + "\n-----\n" + [url removed, login to view];
[url removed, login to view] = rwin + " winners\n" + rloss + " losses" + "\n-----\n" + [url removed, login to view];
[url removed, login to view] = swwin + " winners\n" + swloss + " losses" + "\n-----\n" + [url removed, login to view];
}
// Usage: rand(n) returns random integer between 0 and n-1
[url removed, login to view] = new Date();
[url removed, login to view] = [url removed, login to view]();
function rnd()
{
[url removed, login to view] = ([url removed, login to view]*9301+49297) % 233280;
return [url removed, login to view](233280.0);
}
function rand(number)
{
return [url removed, login to view](rnd()*number)-1;
}
]
Project ID: #3981353
About the project
4 freelancers are bidding on average $135 for this job
Custom software development: w w w . The Administrator removed this message for containing contact details which breaches our Terms of Service . i o