Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Visual basics 2010 problem!

$
0
0
Basically I'm completely stuck on making a quiz in visual basics with coding it.
So far I have
<head>
    <title>Garden Animals</title>
</head>
  <body>
    <p><b>Garden animals</b></p> 

  </body>

<input id="Question" type="button" value="?" />
<p> </body>
  <input id="Damselfly" type="button" value="Animal 1" />
  <img id="Damselfly" src="AnimalDamselfly.jpg" style= "width:100px; height:100px" />
  <input id="Frog" type="button" value="Animal 2" />
  <img id="Frog" src="AnimalFrog.jpg" style= "width:100px; height:100px" />
  <input id="Newt" type="button" value="Animal 3" />
  <img id="Newt" src="AnimalNewt.jpg" style= "width:100px; height:100px" />  
  <input id="Hedgehog" type="button" value="Animal 4" />
  <img id="Hedgehog" src="AnimalHedgehog.jpg" style= "width:100px; height:100px"/>
  <input id="Slowworm" type="button" value="Animal 5" />
  <img id="Slowworm" src="AnimalSlowworm.jpg" style= "width:100px; height:100px"/>
  <input id="Thrush" type="button" value="Animal 6" />
  <img id="Thrush" src="AnimalThrush.jpg" style= "width:100px; height:100px"/>
  <input id="Tortoiseshell" type="button" value="Animal 7" />
  <img id="Tortoiseshell" src="AnimalTortoiseshell.jpg" style= "width:100px; height:100px"/> </p>
   Feedback:<br /> 
   <textarea rows="6" cols="50"></textarea><br />
   Rating of my website:
   <img id="GreyStar" src="StarOff.gif" style= "width:75px; height:75px"/>
   <img id="Img1" src="StarOff.gif" style= "width:75px; height:75px"/>
   <img id="Img2" src="StarOff.gif" style= "width:75px; height:75px"/>
   <img id="Img3" src="StarOff.gif" style= "width:75px; height:75px"/>
   <img id="Img4" src="StarOff.gif" style= "width:75px; height:75px"/>

  </html>

<script language="VBScript"
  
Sub btnQuestion_onclick() 
<rnd id



But I need my "question button" when clicked to choose a random non repeated animal and to play the matching sound (which I have the ID for). I also need it to then coming up saying "Correct" or "Wrong" and for when they select it to play the sound corresponding to the button’s animal and highlighting the animal they should have selected.

If anyone can help me I will pay them! Would really appreciate it I bit off more than I could chew when I told my friends I could do this :( Message me or reply if possible :)

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>