Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as JavaScript by tabse ( 14 years ago )
function auswerten() {
 var punkte = 0;
 for (i=0; obj = document.getElementsByName('richtig')[i]; i++)
  if (obj.checked) punkte++;
 document.getElementById('ausgabe').firstChild.data =
  'Du hast '+ punkte +' von '+ (pmax = document.getElementsByName('richtig').length) +
  ' möglichen Punkten erreicht. Das sind '+ Math.round(punkte*100/pmax) +' Prozent.';
}
//-->

 

Revise this Paste

Your Name: Code Language: