function MM_callJS(jsStr) { //v2.0 return eval(jsStr) } function MM_changeProp(objId,x,theProp,theValue) { //v9.0 var obj = null; with (document){ if (getElementById) obj = getElementById(objId); } if (obj){ if (theValue == true || theValue == false) eval(“obj.style."+theProp+"="+theValue); else eval(“obj.style."+theProp+"=’"+theValue+”’”); } } function validateform() { var correctAnswer = 1; if (document.question.answers[correctAnswer].checked == true) { //alert(‘correct’); MM_changeProp(‘wrong’,’’,‘visibility’,‘hidden’); MM_changeProp(‘correct’,’’,‘visibility’,‘visible’); } else { //alert(‘wrong’); MM_changeProp(‘wrong’,’’,‘visibility’,‘visible’); MM_changeProp(‘correct’,’’,‘visibility’,‘hidden’); } }
#wrong, #correct { visibility: hidden; }
Question #13
し
i
si
ko
ku
Yes, that’s right! On to the next question.
Sorry, try again!
[Home]