Page 1 of 1

PHP or Javascript... can you help me

Posted: Tue Oct 06, 2009 11:41 pm
by robertbarzyk
im trying to recreate the javascript on this page,
http://mobstars.ultimateadds.net/index. ... d=94072068

i have my own site similar to that, but i cannot get my javascript to work like theres,

to see what i mean, you must try to click "ENTER " and find its disabled,
until you've cliked all the add buttons,

i have been trying to get this to work for the past 3 days, wasted over 40 hours of my life=/
could someone help me out?

Re: PHP or Javascript... can you help me

Posted: Wed Oct 07, 2009 1:09 am
by sr_umasankar
Hi,

Using Javascript : you can set some counter values for the add buttons, I mean when you click each add button you need to increase the counter value(using hidden box) . Once it is reaches the particular target( counter == no.of add buttons). you will enable the "Enter" key.

PHP : Instead of using "hidden box" you can use "session variables".

All the best!

Re: PHP or Javascript... can you help me

Posted: Wed Oct 07, 2009 7:17 am
by N1gel
Do you want the actual html syntax to disable a button and javascript syntax to enable it.

Code: Select all

 
echo "<input id='MyButton' type='button' value='Click Me' onclick='document.getElementById(\"MyDisabledButton\").disabled = false;document.getElementById(\"MyDisabledButton\").value = \"Enabled\"' />";
 
echo "<input id='MyDisabledButton' type='button' value='Disabled' disabled='true'/>";
 

Re: PHP or Javascript... can you help me

Posted: Fri Oct 09, 2009 10:08 am
by ceiroa
Why exactly does the link to that page need to contain a referral id? Looks like spam to me...