Search in forum:
Search


« View previous topic :: View next topic »  
Author Message
Post09/17/2012 at 9:55am (UTC)    
Post subject: [JavaScript] Create Your Own Quiz

Quote:
<form name = "quizQ1">

<b>Questione 1: scrivi qui la tua questione?</b><br> <br>

<input type = "radio" name = "rad1" onclick = "getAnswer('a')"> Risposta Corretta! <br>
<input type = "radio" name = "rad1" onclick = "getAnswer('b')"> Distrattore 1 <br>
<input type = "radio" name = "rad1" onclick = "getAnswer('c')"> Distrattore 2 <br>
<input type = "radio" name = "rad1" onclick = "getAnswer('d')"> Distrattore 3 <br><br><br>
</form>

<script type = "text/javascript">

function getAnswer(input) {
if (input == "a") {alert ("Tu sei grande! Correggere!")}
else {alert ("No! Riprova..")}
}

</script>

______________
- If you love your own-free-website, fight against to spams and spammers! Please support us, let's remove all the spammers together! We don't want to see spams and spammers on OFW board!

- The only language of the board is English / Englisch / Anglaise / Ingl├ęs / Inglese / İngilizce / Angielski / Английский / Αγγλικά / 英语 / 英语简体英文. So please write in just English!

Own-free-website.com

Post10/06/2012 at 11:03am (UTC)    
Post subject:

Hi,

Thank you for this topic!
I'm sure, this topic will be helpful for some users.

Regards,

Muhammed!
Display posts from previous:   


Powered by phpBB © 2001, 2005 phpBB Group