Thread: Help with onclick and buttons
-
November 23rd, 2009, 01:15 AM #1Junior Member
- Join Date
- Nov 2009
- Location
- Pa.
- Posts
- 1
Help with onclick and buttons
Hello,
I am trying to make a simple (or so I thought) game:
Goal: Background picture
X covered with 16 buttons. (obscuring view of picture)
When clicking on a button, the button disappears revealing that part of picture.
After all buttons are clicked on, the entire picture is revealed.
Here is a part of the goal which I can not seem to get to work --
It is only a test I am trying to get the buttons to change to something else when clicked, at
this point I don't care what, I just need to get over this problem, so I can continue.
Thanks very much for any help
(PS Newbee, please be kind)
Steve in Pa.
My test code:
<html>
<head>
<script type="text/javascript">
value=0
function clearblock()
{
if (document.getElementById("but1").value == 1) {
alert("test");
</script>
</head>
<button id="but1" name="but1" onclick="clearblock()" style="height: 125; width: 170;" type="button" value=1>
<font face="arial" size="7">1</font>
</button>
<button id="bt1" name="bt2" onclick="clearblock()" style="height: 125; width: 170;" type="button">
<font face="arial" size="7">2</font>
</button>
</html>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[HTML] onClick link into new window?
By Whir in forum Webmastering and ProgrammingReplies: 13Last Post: May 5th, 2011, 01:52 PM -
Onclick goto page?
By olliee in forum Webmastering and ProgrammingReplies: 1Last Post: December 21st, 2008, 11:37 PM -
AJAX: Determine the link "onclick" within a DIV
By gberz3 in forum Webmastering and ProgrammingReplies: 2Last Post: September 6th, 2006, 02:53 PM -
Buttons?
By davidamarkley in forum Suggestion BoxReplies: 6Last Post: May 5th, 2004, 10:33 AM



LinkBack URL
About LinkBacks



Reply With Quote

Of course not. She's still on the payroll. Now that she is compelled to testify, the committee has leverage to force her to talk or go to jail until she does. I think she'll be singing like a...
IRS Lois Lerner Refuses to Resign