Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Change Image Question
Old 08-15-2008, 04:03 PM Change Image Question
Junior Talker

Posts: 1
Trades: 0
In the code I have four butons that when the user clicks on the square button it should get rid of the question marl and display the square. This would apply to all the buttons just different symbols.

<html>
<head>
<title>Exercise 11.17 ESP Test</title>
</head>

<body>
<h1 style="text-align:center">ESP Test</h1>

<h2 style="text-align:center">Measur your Extra-Sensory Perception</h2>

<h3 style="text-align:center">The card below hides the image of a square, circle, or star. Concentrate on the hidden image, then click on the corresponding button to make your guess.</h3>

<h3 style="text-align:center"><p align="center">Statistics showing the number and percentage of correct guesses will appear in the boxes.</p></h3>

<hr />
</body>
<HEAD>


</HEAD>
</p>
<script type="text/javascript">
</script>
<div align="center">
<img name="face" src="../../../Desktop/mystery.gif" alt="face image" />

<form name="TempForm">

<input type="Button" value= "button" onClick="ChangeImage(Desktop/square.gif"/>
<input type= "button" value="triangle" onClick="ChangeImage(desktop/trangle.gif)" />
<input type= "button" value="circle" onClick="ChangeImage(circle.gif)" />
<input type= "button" value="star" onClick="ChangeImage(star.gif)" />
<br>


&nbsp;<body><br />


<br><br />
You have guessed correctly:<input type="text" name="" size="10" value="" />
out of:<input type="text" name="" size="10" value="" /> times.
<br>
<br />
That means you were correct:<input type="text" name="" size="10" value="" /> % of the time.
</form>
</body>
</html>
vder is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-16-2008, 09:57 AM Re: Change Image Question
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
What the heck is this??
Quote:
</body>
<HEAD>


</HEAD>
</p>
Do you really have two <body> and <head> tags on your page?? It would be easier if you could provide a link to the page so we can see the real code instead of just guessing. To make things easier for us you should place your code into HTML tags: http://www.webmaster-talk.com/php-fo...st-my-php.html
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-18-2008, 04:19 AM Re: Change Image Question
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I can see the problem instantly with the above code. ....














...

There's no javascript in it!

and BTW did you actually have a question or did you just want to post us some practice code?
But then it is for an ESP test so, I guess mine isn't working
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-18-2008, 09:30 AM Re: Change Image Question
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
OMG, ur right. ROFL!
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Change Image Question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13442 seconds with 12 queries