Jump to content

[SOLVED] ADVANCED JAVA PLEASE HELP!


addtrain

Recommended Posts

ok, wow! i have gotten tons of help here, im sure someone will be able to help with this its really hard:

my website has 5 pics you have to click. there is a DISABLED form at the bottom of the page. how can i tell it that AFTER i click on EVERY IMAGE, the form will become un-disabled. so pretty much after the person clicks on everyimage, the form that WAS disabled, becomes NOT DISABLED.

thank you for all of the replys.

Link to comment
Share on other sites

Actually I don't think it's so hard:

<html>
<head>
<script type='text/javascript'>
var img1 = false;
var img2 = false;
var img3 = false;
var img4 = false;
var img5 = false;
function check() {
  if(img1 && img2 && img3 && img4 && img5)
    document.getElementById('input1').disabled = false;
}
</script>
</head>

<body>
<img src='image1.jpg' onclick='img1=true;check();' />
<img src='image2.jpg' onclick='img2=true;check();' />
<img src='image3.jpg' onclick='img3=true;check();' />
<img src='image4.jpg' onclick='img4=true;check();' />
<img src='image5.jpg' onclick='img5=true;check();' />
<br>
<form action='whatever.php' method='post'>
<input type='text' id='input1' disabled='true' />
</form>
</body>
</html>

Link to comment
Share on other sites

wow dude youve helped me out alot. i am not super expeireicned with java, or php (dont know alot bout variables ???)

thanks a bunch my website is gonna be working soon this forum is great!

this topic is SOLVED!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.