Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


How to creat a post like this in blogger.com

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,56733
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> How to creat a post like this in blogger.com
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 How to creat a post like this in blogger.com - 2/16/2008 12:30:18 AM   
  onetruelove

 

Posts: 1
Score: 0
Joined: 2/16/2008
Status: offline
I want to creat a post like this http://onlinetoefltest.blogspot.com/2007/08/toefl-lesson-1.html
When you chose the answers and click the Show answer button, a msg box will appear and tells how many answers are correct.
Since i know nothing about programming i just view page source and copied all the related code to my post. But it doesn't work when i cilck the show answers button, can any one help me with the code please, thanks in advance.

<script id="clientEventHandlersJS" language="javascript"><br /><br />function button1_onclick() {<br /><br />var correct,Total;<br /><br />Total=0;<br /><br />correct= 0;<br /><br />oElement = document.getElementById("choice1A");<br />if (oElement) {  <br />  Total=Total+1<br /><br />  document.getElementById("choice1A").disabled=true;<br />  <br />  if ((document.getElementById("choice1A").value==document.getElementById("text1").value)&&(document.getElementById("choice1A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice1B").disabled=true;<br />  <br />  if ((document.getElementById("choice1B").value==document.getElementById("text1").value)&&(document.getElementById("choice1B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice1C").disabled=true;<br />  <br />  if ((document.getElementById("choice1C").value==document.getElementById("text1").value)&&(document.getElementById("choice1C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice1D").disabled=true;<br />  <br />  if ((document.getElementById("choice1D").value==document.getElementById("text1").value)&&(document.getElementById("choice1D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice1A").value==document.getElementById("text1").value)) document.getElementById("C1A").style.color='red';<br />  <br />  if ((document.getElementById("choice1B").value==document.getElementById("text1").value)) document.getElementById("C1B").style.color='red';<br />  <br />  if ((document.getElementById("choice1C").value==document.getElementById("text1").value)) document.getElementById("C1C").style.color='red';<br />  <br />  if ((document.getElementById("choice1D").value==document.getElementById("text1").value)) document.getElementById("C1D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice2A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice2A").disabled=true;<br />  <br />  if ((document.getElementById("choice2A").value==document.getElementById("text2").value)&&(document.getElementById("choice2A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice2B").disabled=true;<br />  <br />  if ((document.getElementById("choice2B").value==document.getElementById("text2").value)&&(document.getElementById("choice2B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice2C").disabled=true;<br />  <br />  if ((document.getElementById("choice2C").value==document.getElementById("text2").value)&&(document.getElementById("choice2C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice2D").disabled=true;<br />  <br />  if ((document.getElementById("choice2D").value==document.getElementById("text2").value)&&(document.getElementById("choice2D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice2A").value==document.getElementById("text2").value)) document.getElementById("C2A").style.color='red';<br />  <br />  if ((document.getElementById("choice2B").value==document.getElementById("text2").value)) document.getElementById("C2B").style.color='red';<br />  <br />  if ((document.getElementById("choice2C").value==document.getElementById("text2").value)) document.getElementById("C2C").style.color='red';<br />  <br />  if ((document.getElementById("choice2D").value==document.getElementById("text2").value)) document.getElementById("C2D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice3A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice3A").disabled=true;<br />  <br />  if ((document.getElementById("choice3A").value==document.getElementById("text3").value)&&(document.getElementById("choice3A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice3B").disabled=true;<br />  <br />  if ((document.getElementById("choice3B").value==document.getElementById("text3").value)&&(document.getElementById("choice3B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice3C").disabled=true;<br />  <br />  if ((document.getElementById("choice3C").value==document.getElementById("text3").value)&&(document.getElementById("choice3C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice3D").disabled=true;<br />  <br />  if ((document.getElementById("choice3D").value==document.getElementById("text3").value)&&(document.getElementById("choice3D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice3A").value==document.getElementById("text3").value)) document.getElementById("C3A").style.color='red';<br />  <br />  if ((document.getElementById("choice3B").value==document.getElementById("text3").value)) document.getElementById("C3B").style.color='red';<br />  <br />  if ((document.getElementById("choice3C").value==document.getElementById("text3").value)) document.getElementById("C3C").style.color='red';<br />  <br />  if ((document.getElementById("choice3D").value==document.getElementById("text3").value)) document.getElementById("C3D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice4A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice4A").disabled=true;<br />  <br />  if ((document.getElementById("choice4A").value==document.getElementById("text4").value)&&(document.getElementById("choice4A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice4B").disabled=true;<br />  <br />  if ((document.getElementById("choice4B").value==document.getElementById("text4").value)&&(document.getElementById("choice4B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice4C").disabled=true;<br />  <br />  if ((document.getElementById("choice4C").value==document.getElementById("text4").value)&&(document.getElementById("choice4C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice4D").disabled=true;<br />  <br />  if ((document.getElementById("choice4D").value==document.getElementById("text4").value)&&(document.getElementById("choice4D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice4A").value==document.getElementById("text4").value)) document.getElementById("C4A").style.color='red';<br />  <br />  if ((document.getElementById("choice4B").value==document.getElementById("text4").value)) document.getElementById("C4B").style.color='red';<br />  <br />  if ((document.getElementById("choice4C").value==document.getElementById("text4").value)) document.getElementById("C4C").style.color='red';<br />  <br />  if ((document.getElementById("choice4D").value==document.getElementById("text4").value)) document.getElementById("C4D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice5A");<br />if (oElement) {<br /><br />  Total=Total+1<br />  document.getElementById("choice5A").disabled=true;<br />  <br />  if ((document.getElementById("choice5A").value==document.getElementById("text5").value)&&(document.getElementById("choice5A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice5B").disabled=true;<br />  <br />  if ((document.getElementById("choice5B").value==document.getElementById("text5").value)&&(document.getElementById("choice5B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice5C").disabled=true;<br />  <br />  if ((document.getElementById("choice5C").value==document.getElementById("text5").value)&&(document.getElementById("choice5C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice5D").disabled=true;<br />  <br />  if ((document.getElementById("choice5D").value==document.getElementById("text5").value)&&(document.getElementById("choice5D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice5A").value==document.getElementById("text5").value)) document.getElementById("C5A").style.color='red';<br />  <br />  if ((document.getElementById("choice5B").value==document.getElementById("text5").value)) document.getElementById("C5B").style.color='red';<br />  <br />  if ((document.getElementById("choice5C").value==document.getElementById("text5").value)) document.getElementById("C5C").style.color='red';<br />  <br />  if ((document.getElementById("choice5D").value==document.getElementById("text5").value)) document.getElementById("C5D").style.color='red';<br />  <br />  }<br />  <br />oElement = document.getElementById("choice6A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice6A").disabled=true;<br />  <br />  if ((document.getElementById("choice6A").value==document.getElementById("text6").value)&&(document.getElementById("choice6A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice6B").disabled=true;<br />  <br />  if ((document.getElementById("choice6B").value==document.getElementById("text6").value)&&(document.getElementById("choice6B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice6C").disabled=true;<br />  <br />  if ((document.getElementById("choice6C").value==document.getElementById("text6").value)&&(document.getElementById("choice6C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice6D").disabled=true;<br />  <br />  if ((document.getElementById("choice6D").value==document.getElementById("text6").value)&&(document.getElementById("choice6D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice6A").value==document.getElementById("text6").value)) document.getElementById("C6A").style.color='red';<br />  <br />  if ((document.getElementById("choice6B").value==document.getElementById("text6").value)) document.getElementById("C6B").style.color='red';<br />  <br />  if ((document.getElementById("choice6C").value==document.getElementById("text6").value)) document.getElementById("C6C").style.color='red';<br />  <br />  if ((document.getElementById("choice6D").value==document.getElementById("text6").value)) document.getElementById("C6D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice7A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice7A").disabled=true;<br />  <br />  if ((document.getElementById("choice7A").value==document.getElementById("text7").value)&&(document.getElementById("choice7A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice7B").disabled=true;<br />  <br />  if ((document.getElementById("choice7B").value==document.getElementById("text7").value)&&(document.getElementById("choice7B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice7C").disabled=true;<br />  <br />  if ((document.getElementById("choice7C").value==document.getElementById("text7").value)&&(document.getElementById("choice7C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice7D").disabled=true;<br />  <br />  if ((document.getElementById("choice7D").value==document.getElementById("text7").value)&&(document.getElementById("choice7D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice7A").value==document.getElementById("text7").value)) document.getElementById("C7A").style.color='red';<br />  <br />  if ((document.getElementById("choice7B").value==document.getElementById("text7").value)) document.getElementById("C7B").style.color='red';<br />  <br />  if ((document.getElementById("choice7C").value==document.getElementById("text7").value)) document.getElementById("C7C").style.color='red';<br />  <br />  if ((document.getElementById("choice7D").value==document.getElementById("text7").value)) document.getElementById("C7D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice8A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice8A").disabled=true;<br />  <br />  if ((document.getElementById("choice8A").value==document.getElementById("text8").value)&&(document.getElementById("choice8A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice8B").disabled=true;<br />  <br />  if ((document.getElementById("choice8B").value==document.getElementById("text8").value)&&(document.getElementById("choice8B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice8C").disabled=true;<br />  <br />  if ((document.getElementById("choice8C").value==document.getElementById("text8").value)&&(document.getElementById("choice8C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice8D").disabled=true;<br />  <br />  if ((document.getElementById("choice8D").value==document.getElementById("text8").value)&&(document.getElementById("choice8D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice8A").value==document.getElementById("text8").value)) document.getElementById("C8A").style.color='red';<br />  <br />  if ((document.getElementById("choice8B").value==document.getElementById("text8").value)) document.getElementById("C8B").style.color='red';<br />  <br />  if ((document.getElementById("choice8C").value==document.getElementById("text8").value)) document.getElementById("C8C").style.color='red';<br />  <br />  if ((document.getElementById("choice8D").value==document.getElementById("text8").value)) document.getElementById("C8D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice9A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice9A").disabled=true;<br />  <br />  if ((document.getElementById("choice9A").value==document.getElementById("text9").value)&&(document.getElementById("choice9A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice9B").disabled=true;<br />  <br />  if ((document.getElementById("choice9B").value==document.getElementById("text9").value)&&(document.getElementById("choice9B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice9C").disabled=true;<br />  <br />  if ((document.getElementById("choice9C").value==document.getElementById("text9").value)&&(document.getElementById("choice9C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice9D").disabled=true;<br />  <br />  if ((document.getElementById("choice9D").value==document.getElementById("text9").value)&&(document.getElementById("choice9D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice9A").value==document.getElementById("text9").value)) document.getElementById("C9A").style.color='red';<br />  <br />  if ((document.getElementById("choice9B").value==document.getElementById("text9").value)) document.getElementById("C9B").style.color='red';<br />  <br />  if ((document.getElementById("choice9C").value==document.getElementById("text9").value)) document.getElementById("C9C").style.color='red';<br />  <br />  if ((document.getElementById("choice9D").value==document.getElementById("text9").value)) document.getElementById("C9D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice10A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice10A").disabled=true;<br />  <br />  if ((document.getElementById("choice10A").value==document.getElementById("text10").value)&&(document.getElementById("choice10A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice10B").disabled=true;<br />  <br />  if ((document.getElementById("choice10B").value==document.getElementById("text10").value)&&(document.getElementById("choice10B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice10C").disabled=true;<br />  <br />  if ((document.getElementById("choice10C").value==document.getElementById("text10").value)&&(document.getElementById("choice10C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice10D").disabled=true;<br />  <br />  if ((document.getElementById("choice10D").value==document.getElementById("text10").value)&&(document.getElementById("choice10D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice10A").value==document.getElementById("text10").value)) document.getElementById("C10A").style.color='red';<br />  <br />  if ((document.getElementById("choice10B").value==document.getElementById("text10").value)) document.getElementById("C10B").style.color='red';<br />  <br />  if ((document.getElementById("choice10C").value==document.getElementById("text10").value)) document.getElementById("C10C").style.color='red';<br />  <br />  if ((document.getElementById("choice10D").value==document.getElementById("text10").value)) document.getElementById("C10D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice11A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice11A").disabled=true;<br />  <br />  if ((document.getElementById("choice11A").value==document.getElementById("text11").value)&&(document.getElementById("choice11A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice11B").disabled=true;<br />  <br />  if ((document.getElementById("choice11B").value==document.getElementById("text11").value)&&(document.getElementById("choice11B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice11C").disabled=true;<br />  <br />  if ((document.getElementById("choice11C").value==document.getElementById("text11").value)&&(document.getElementById("choice11C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice11D").disabled=true;<br />  <br />  if ((document.getElementById("choice11D").value==document.getElementById("text11").value)&&(document.getElementById("choice11D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice11A").value==document.getElementById("text11").value)) document.getElementById("C11A").style.color='red';<br />  <br />  if ((document.getElementById("choice11B").value==document.getElementById("text11").value)) document.getElementById("C11B").style.color='red';<br />  <br />  if ((document.getElementById("choice11C").value==document.getElementById("text11").value)) document.getElementById("C11C").style.color='red';<br />  <br />  if ((document.getElementById("choice11D").value==document.getElementById("text11").value)) document.getElementById("C11D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice12A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice12A").disabled=true;<br />  <br />  if ((document.getElementById("choice12A").value==document.getElementById("text12").value)&&(document.getElementById("choice12A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice12B").disabled=true;<br />  <br />  if ((document.getElementById("choice12B").value==document.getElementById("text12").value)&&(document.getElementById("choice12B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice12C").disabled=true;<br />  <br />  if ((document.getElementById("choice12C").value==document.getElementById("text12").value)&&(document.getElementById("choice12C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice12D").disabled=true;<br />  <br />  if ((document.getElementById("choice12D").value==document.getElementById("text12").value)&&(document.getElementById("choice12D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice12A").value==document.getElementById("text12").value)) document.getElementById("C12A").style.color='red';<br />  <br />  if ((document.getElementById("choice12B").value==document.getElementById("text12").value)) document.getElementById("C12B").style.color='red';<br />  <br />  if ((document.getElementById("choice12C").value==document.getElementById("text12").value)) document.getElementById("C12C").style.color='red';<br />  <br />  if ((document.getElementById("choice12D").value==document.getElementById("text12").value)) document.getElementById("C12D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice13A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice13A").disabled=true;<br />  <br />  if ((document.getElementById("choice13A").value==document.getElementById("text13").value)&&(document.getElementById("choice13A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice13B").disabled=true;<br />  <br />  if ((document.getElementById("choice13B").value==document.getElementById("text13").value)&&(document.getElementById("choice13B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice13C").disabled=true;<br />  <br />  if ((document.getElementById("choice13C").value==document.getElementById("text13").value)&&(document.getElementById("choice13C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice13D").disabled=true;<br />  <br />  if ((document.getElementById("choice13D").value==document.getElementById("text13").value)&&(document.getElementById("choice13D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice13A").value==document.getElementById("text13").value)) document.getElementById("C13A").style.color='red';<br />  <br />  if ((document.getElementById("choice13B").value==document.getElementById("text13").value)) document.getElementById("C13B").style.color='red';<br />  <br />  if ((document.getElementById("choice13C").value==document.getElementById("text13").value)) document.getElementById("C13C").style.color='red';<br />  <br />  if ((document.getElementById("choice13D").value==document.getElementById("text13").value)) document.getElementById("C13D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice14A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice14A").disabled=true;<br />  <br />  if ((document.getElementById("choice14A").value==document.getElementById("text14").value)&&(document.getElementById("choice14A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice14B").disabled=true;<br />  <br />  if ((document.getElementById("choice14B").value==document.getElementById("text14").value)&&(document.getElementById("choice14B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice14C").disabled=true;<br />  <br />  if ((document.getElementById("choice14C").value==document.getElementById("text14").value)&&(document.getElementById("choice14C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice14D").disabled=true;<br />  <br />  if ((document.getElementById("choice14D").value==document.getElementById("text14").value)&&(document.getElementById("choice14D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice14A").value==document.getElementById("text14").value)) document.getElementById("C14A").style.color='red';<br />  <br />  if ((document.getElementById("choice14B").value==document.getElementById("text14").value)) document.getElementById("C14B").style.color='red';<br />  <br />  if ((document.getElementById("choice14C").value==document.getElementById("text14").value)) document.getElementById("C14C").style.color='red';<br />  <br />  if ((document.getElementById("choice14D").value==document.getElementById("text14").value)) document.getElementById("C14D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice15A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice15A").disabled=true;<br />  <br />  if ((document.getElementById("choice15A").value==document.getElementById("text15").value)&&(document.getElementById("choice15A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice15B").disabled=true;<br />  <br />  if ((document.getElementById("choice15B").value==document.getElementById("text15").value)&&(document.getElementById("choice15B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice15C").disabled=true;<br />  <br />  if ((document.getElementById("choice15C").value==document.getElementById("text15").value)&&(document.getElementById("choice15C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice15D").disabled=true;<br />  <br />  if ((document.getElementById("choice15D").value==document.getElementById("text15").value)&&(document.getElementById("choice15D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice15A").value==document.getElementById("text15").value)) document.getElementById("C15A").style.color='red';<br />  <br />  if ((document.getElementById("choice15B").value==document.getElementById("text15").value)) document.getElementById("C15B").style.color='red';<br />  <br />  if ((document.getElementById("choice15C").value==document.getElementById("text15").value)) document.getElementById("C15C").style.color='red';<br />  <br />  if ((document.getElementById("choice15D").value==document.getElementById("text15").value)) document.getElementById("C15D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice16A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice16A").disabled=true;<br />  <br />  if ((document.getElementById("choice16A").value==document.getElementById("text16").value)&&(document.getElementById("choice16A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice16B").disabled=true;<br />  <br />  if ((document.getElementById("choice16B").value==document.getElementById("text16").value)&&(document.getElementById("choice16B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice16C").disabled=true;<br />  <br />  if ((document.getElementById("choice16C").value==document.getElementById("text16").value)&&(document.getElementById("choice16C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice16D").disabled=true;<br />  <br />  if ((document.getElementById("choice16D").value==document.getElementById("text16").value)&&(document.getElementById("choice16D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice16A").value==document.getElementById("text16").value)) document.getElementById("C16A").style.color='red';<br />  <br />  if ((document.getElementById("choice16B").value==document.getElementById("text16").value)) document.getElementById("C16B").style.color='red';<br />  <br />  if ((document.getElementById("choice16C").value==document.getElementById("text16").value)) document.getElementById("C16C").style.color='red';<br />  <br />  if ((document.getElementById("choice16D").value==document.getElementById("text16").value)) document.getElementById("C16D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice17A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice17A").disabled=true;<br />  <br />  if ((document.getElementById("choice17A").value==document.getElementById("text17").value)&&(document.getElementById("choice17A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice17B").disabled=true;<br />  <br />  if ((document.getElementById("choice17B").value==document.getElementById("text17").value)&&(document.getElementById("choice17B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice17C").disabled=true;<br />  <br />  if ((document.getElementById("choice17C").value==document.getElementById("text17").value)&&(document.getElementById("choice17C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice17D").disabled=true;<br />  <br />  if ((document.getElementById("choice17D").value==document.getElementById("text17").value)&&(document.getElementById("choice17D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice17A").value==document.getElementById("text17").value)) document.getElementById("C17A").style.color='red';<br />  <br />  if ((document.getElementById("choice17B").value==document.getElementById("text17").value)) document.getElementById("C17B").style.color='red';<br />  <br />  if ((document.getElementById("choice17C").value==document.getElementById("text17").value)) document.getElementById("C17C").style.color='red';<br />  <br />  if ((document.getElementById("choice17D").value==document.getElementById("text17").value)) document.getElementById("C17D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice18A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice18A").disabled=true;<br />  <br />  if ((document.getElementById("choice18A").value==document.getElementById("text18").value)&&(document.getElementById("choice18A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice18B").disabled=true;<br />  <br />  if ((document.getElementById("choice18B").value==document.getElementById("text18").value)&&(document.getElementById("choice18B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice18C").disabled=true;<br />  <br />  if ((document.getElementById("choice18C").value==document.getElementById("text18").value)&&(document.getElementById("choice18C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice18D").disabled=true;<br />  <br />  if ((document.getElementById("choice18D").value==document.getElementById("text18").value)&&(document.getElementById("choice18D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice18A").value==document.getElementById("text18").value)) document.getElementById("C18A").style.color='red';<br />  <br />  if ((document.getElementById("choice18B").value==document.getElementById("text18").value)) document.getElementById("C18B").style.color='red';<br />  <br />  if ((document.getElementById("choice18C").value==document.getElementById("text18").value)) document.getElementById("C18C").style.color='red';<br />  <br />  if ((document.getElementById("choice18D").value==document.getElementById("text18").value)) document.getElementById("C18D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice19A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice19A").disabled=true;<br />  <br />  if ((document.getElementById("choice19A").value==document.getElementById("text19").value)&&(document.getElementById("choice19A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice19B").disabled=true;<br />  <br />  if ((document.getElementById("choice19B").value==document.getElementById("text19").value)&&(document.getElementById("choice19B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice19C").disabled=true;<br />  <br />  if ((document.getElementById("choice19C").value==document.getElementById("text19").value)&&(document.getElementById("choice19C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice19D").disabled=true;<br />  <br />  if ((document.getElementById("choice19D").value==document.getElementById("text19").value)&&(document.getElementById("choice19D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice19A").value==document.getElementById("text19").value)) document.getElementById("C19A").style.color='red';<br />  <br />  if ((document.getElementById("choice19B").value==document.getElementById("text19").value)) document.getElementById("C19B").style.color='red';<br />  <br />  if ((document.getElementById("choice19C").value==document.getElementById("text19").value)) document.getElementById("C19C").style.color='red';<br />  <br />  if ((document.getElementById("choice19D").value==document.getElementById("text19").value)) document.getElementById("C19D").style.color='red';<br />}<br /><br />oElement = document.getElementById("choice20A");<br />if (oElement) {<br />  Total=Total+1<br />  document.getElementById("choice20A").disabled=true;<br />  <br />  if ((document.getElementById("choice20A").value==document.getElementById("text20").value)&&(document.getElementById("choice20A").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice20B").disabled=true;<br />  <br />  if ((document.getElementById("choice20B").value==document.getElementById("text20").value)&&(document.getElementById("choice20B").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice20C").disabled=true;<br />  <br />  if ((document.getElementById("choice20C").value==document.getElementById("text20").value)&&(document.getElementById("choice20C").checked)) correct=correct+1;<br />  <br />  document.getElementById("choice20D").disabled=true;<br />  <br />  if ((document.getElementById("choice20D").value==document.getElementById("text20").value)&&(document.getElementById("choice20D").checked)) correct=correct+1;<br />  <br />  if ((document.getElementById("choice20A").value==document.getElementById("text20").value)) document.getElementById("C20A").style.color='red';<br />  <br />  if ((document.getElementById("choice20B").value==document.getElementById("text20").value)) document.getElementById("C20B").style.color='red';<br />  <br />  if ((document.getElementById("choice20C").value==document.getElementById("text20").value)) document.getElementById("C20C").style.color='red';<br />  <br />  if ((document.getElementById("choice20D").value==document.getElementById("text20").value)) document.getElementById("C20D").style.color='red';<br />}<br /><br />document.getElementById("button1").disabled=true;<br /><br />alert(" Tra loi dung " + correct + " cau trong tong so " + Total + " cau.");<br />}<br /><br />    </script>

1. Upon hatching, ________. <input id="text1" style="visibility: hidden; width: 1px;" value="A">
<input id="choice1A" value="A" name="choice1" type="radio"><label id="C1A">(A) young ducks know how to  swim</label>
<input id="choice1B" value="B" name="choice1" type="radio"><label id="C1B">(B) swimming is known by young ducks</label>
<input id="choice1C" value="C" name="choice1" type="radio"><label id="C1C">(C) the knowledge of swimming is  in young ducks</label>
<input id="choice1D" value="D" name="choice1" type="radio"><label id="C1D">(D) how to swim is known in young ducks</label>
2.  Some of the rainwater from clouds evaporates before ________. <input id="text2" style="visibility: hidden; width: 1px;" value="A">
<input id="choice2A" value="A" name="choice2" type="radio"><label id="C2A">(A) reaching the ground</label>
<input id="choice2B" value="B" name="choice2" type="radio"><label id="C2B">(B) to reach the  ground</label>
<input id="choice2C" value="C" name="choice2" type="radio"><label id="C2C">(C) reach the ground</label>
<input id="choice2D" value="D" name="choice2" type="radio"><label id="C2D">(D) the ground reaches</label>
3. The truck  ________ crashed into the back of a bus scattering glass everywhere. <input id="text3" style="visibility: hidden; width: 1px;" value="D">
<input id="choice3A" value="A" name="choice3" type="radio"><label id="C3A">(A) loading with empty  bottles</label>
<input id="choice3B" value="B" name="choice3" type="radio"><label id="C3B">(B) which loading with empty bottles</label>
<input id="choice3C" value="C" name="choice3" type="radio"><label id="C3C">(C) it was loading with empty  bottles</label>
<input id="choice3D" value="D" name="choice3" type="radio"><label id="C3D">(D) loaded with empty bottles</label>
4. ________ is entirely up to  him. <input id="text4" style="visibility: hidden; width: 1px;" value="A">
<input id="choice4A" value="A" name="choice4" type="radio"><label id="C4A">(A) How he  travels</label>
<input id="choice4B" value="B" name="choice4" type="radio"><label id="C4B">(B) How traveling</label>
<input id="choice4C" value="C" name="choice4" type="radio"><label id="C4C">(C) He travels</label>
<input id="choice4D" value="D" name="choice4" type="radio"><label id="C4D">(D) How is he  traveling</label>
5. ________ he would have come to class. <input id="text5" style="visibility: hidden; width: 1px;" value="D">
<input id="choice5A" value="A" name="choice5" type="radio"><label id="C5A">(A) If Mike is able to finish his  homework</label>
<input id="choice5B" value="B" name="choice5" type="radio"><label id="C5B">(B) Would Mike be able to finish his homework</label>
<input id="choice5C" value="C" name="choice5" type="radio"><label id="C5C">(C) If Mike could  finish his homework</label>
<input id="choice5D" value="D" name="choice5" type="radio"><label id="C5D">(D) If Mike had been able to finish his  homework</label>
6. All of the people at the AAME conference are ________.  <input id="text6" style="visibility: hidden; width: 1px;" value="B">
<input id="choice6A" value="A" name="choice6" type="radio"><label id="C6A">(A) mathematic  teachers</label>
<input id="choice6B" value="B" name="choice6" type="radio"><label id="C6B">(B) mathematics teachers</label>
<input id="choice6C" value="C" name="choice6" type="radio"><label id="C6C">(C) mathematics teacher</label>
<input id="choice6D" value="D" name="choice6" type="radio"><label id="C6D">(D) mathematic's  teachers</label>
7. At an experimental agricultural station, many types of  grass are grown ________ various conditions. <input id="text7" style="visibility: hidden; width: 1px;" value="A">
<input id="choice7A" value="A" name="choice7" type="radio"><label id="C7A">(A) under</label>
<input id="choice7B" value="B" name="choice7" type="radio"><label id="C7B">(B) underneath</label>
<input id="choice7C" value="C" name="choice7" type="radio"><label id="C7C">(C)  below</label>
<input id="choice7D" value="D" name="choice7" type="radio"><label id="C7D">(D) beneath</label>
8. ________ techniques have been developed in  recent years to diagnose (genetic diseases in the developing fetus. <input id="text8" style="visibility: hidden; width: 1px;" value="A">
<input id="choice8A" value="A" name="choice8" type="radio"><label id="C8A">(A) Several</label>
<input id="choice8B" value="B" name="choice8" type="radio"><label id="C8B">(B) There are  several</label>
<input id="choice8C" value="C" name="choice8" type="radio"><label id="C8C">(C) They are several</label>
<input id="choice8D" value="D" name="choice8" type="radio"><label id="C8D">(D) Several of</label>
9. With new technology,  cameras can take pictures of underwater valleys ________ color. <input id="text9" style="visibility: hidden; width: 1px;" value="C">
<input id="choice9A" value="A" name="choice9" type="radio"><label id="C9A">(A) within</label>
<input id="choice9B" value="B" name="choice9" type="radio"><label id="C9B">(B) for</label>
<input id="choice9C" value="C" name="choice9" type="radio"><label id="C9C">(C)  in</label>
<input id="choice9D" value="D" name="choice9" type="radio"><label id="C9D">(D) by</label>
10. _______ are prepared from flour or meal derived  from some form of grain. <input id="text10" style="visibility: hidden; width: 1px;" value="C">
<input id="choice10A" value="A" name="choice10" type="radio"><label id="C10A">(A) With bakery products</label>
<input id="choice10B" value="B" name="choice10" type="radio"><label id="C10B">(B) While bakery products</label>
<input id="choice10C" value="C" name="choice10" type="radio"><label id="C10C">(C) Bakery  products</label>
<input id="choice10D" value="D" name="choice10" type="radio"><label id="C10D">(D) They are bakery products</label>
11. ________ a sizable  geographic area, it constitutes a biome. <input id="text11" style="visibility: hidden; width: 1px;" value="D">
<input id="choice11A" value="A" name="choice11" type="radio"><label id="C11A">(A) That a group of plants and  animals occupies</label>
<input id="choice11B" value="B" name="choice11" type="radio"><label id="C11B">(B) A group of plants and animals  occupying</label>
<input id="choice11C" value="C" name="choice11" type="radio"><label id="C11C">(C) A group of plants and animals occupies</label>
<input id="choice11D" value="D" name="choice11" type="radio"><label id="C11D">(D) When a group of  plants and animals occupies</label>
12. Modern blimps like the famous  Goodyear blimps ________ the first ones in that they are filled with helium  instead of hydrogen. <input id="text12" style="visibility: hidden; width: 1px;" value="A">
<input id="choice12A" value="A" name="choice12" type="radio"><label id="C12A">(A) differ from</label>
<input id="choice12B" value="B" name="choice12" type="radio"><label id="C12B">(B) different from</label>
<input id="choice12C" value="C" name="choice12" type="radio"><label id="C12C">(C) is different  from</label>
<input id="choice12D" value="D" name="choice12" type="radio"><label id="C12D">(D) different</label>
13. Although the Ojibwa Indians fought  frequently with the Sioux, they didn't have ________ with early white settlers.  <input id="text13" style="visibility: hidden; width: 1px;" value="A">
<input id="choice13A" value="A" name="choice13" type="radio"><label id="C13A">(A) much  contact</label>
<input id="choice13B" value="B" name="choice13" type="radio"><label id="C13B">(B) lots contact</label>
<input id="choice13C" value="C" name="choice13" type="radio"><label id="C13C">(C) many contact</label>
<input id="choice13D" value="D" name="choice13" type="radio"><label id="C13D">(D) large contact</label>
14.  In a hot, sunny climate, man acclimatizes by eating less, drinking more liquids,  wearing lighter clothing, and ________. <input id="text14" style="visibility: hidden; width: 1px;" value="C">
<input id="choice14A" value="A" name="choice14" type="radio"><label id="C14A">(A) skin changes that  darken</label>
<input id="choice14B" value="B" name="choice14" type="radio"><label id="C14B">(B) his skin may darken</label>
<input id="choice14C" value="C" name="choice14" type="radio"><label id="C14C">(C) experiencing a darkening of the  skin</label>
<input id="choice14D" value="D" name="choice14" type="radio"><label id="C14D">(D) darkens his skin</label>
15. Some forms of mollusks are extremely  useful as food, especially the bivalves ________ oysters, clams, and scallops.  <input id="text15" style="visibility: hidden; width: 1px;" value="B">
<input id="choice15A" value="A" name="choice15" type="radio"><label id="C15A">(A)  such</label>
<input id="choice15B" value="B" name="choice15" type="radio"><label id="C15B">(B) such as</label>
<input id="choice15C" value="C" name="choice15" type="radio"><label id="C15C">(C) as</label>
<input id="choice15D" value="D" name="choice15" type="radio"><label id="C15D">(D) so</label>
16. It is now believed  that some damage to tissues may result ________ them to frequent X-rays. <input id="text16" style="visibility: hidden; width: 1px;" value="C">
<input id="choice16A" value="A" name="choice16" type="radio"><label id="C16A">(A) the  exposing</label>
<input id="choice16B" value="B" name="choice16" type="radio"><label id="C16B">(B) from exposure</label>
<input id="choice16C" value="C" name="choice16" type="radio"><label id="C16C">(C) from exposing</label>
<input id="choice16D" value="D" name="choice16" type="radio"><label id="C16D">(D) expose</label>
17.  Rhododendrons would rather ________ in shady places, and so would azaleas.  <input id="text17" style="visibility: hidden; width: 1px;" value="D">
<input id="choice17A" value="A" name="choice17" type="radio"><label id="C17A">(A) to  grow</label>
<input id="choice17B" value="B" name="choice17" type="radio"><label id="C17B">(B) growing</label>
<input id="choice17C" value="C" name="choice17" type="radio"><label id="C17C">(C) grown</label>
<input id="choice17D" value="D" name="choice17" type="radio"><label id="C17D">(D) grow</label>
18. Recently, there  have been several outbreaks of disease like legionnaire's syndrome, and doctors  don't know ________. <input id="text18" style="visibility: hidden; width: 1px;" value="D">
<input id="choice18A" value="A" name="choice18" type="radio"><label id="C18A">(A) what is the cause</label>
<input id="choice18B" value="B" name="choice18" type="radio"><label id="C18B">(B) the cause is what</label>
<input id="choice18C" value="C" name="choice18" type="radio"><label id="C18C">(C) is what the  cause</label>
<input id="choice18D" value="D" name="choice18" type="radio"><label id="C18D">(D) what the cause is</label>
19. American author John Updike,  ________ spent his boyhood in Shillington, Pennsylvania. <input id="text19" style="visibility: hidden; width: 1px;" value="C">
<input id="choice19A" value="A" name="choice19" type="radio"><label id="C19A">(A) was the only child of a high  school mathematics teacher</label>
<input id="choice19B" value="B" name="choice19" type="radio"><label id="C19B">(B) whom the only child of a high school  mathematics teacher</label>
<input id="choice19C" value="C" name="choice19" type="radio"><label id="C19C">(C) the only child of a high school mathematics  teacher</label>
<input id="choice19D" value="D" name="choice19" type="radio"><label id="C19D">(D) he was the only child of a high school mathematics  teacher</label>
20. He entered a university________. <input id="text20" style="visibility: hidden; width: 1px;" value="C">
<input id="choice20A" value="A" name="choice20" type="radio"><label id="C20A">(A) when he had sixteen  years</label>
<input id="choice20B" value="B" name="choice20" type="radio"><label id="C20B">(B) when sixteen years were his age</label>
<input id="choice20C" value="C" name="choice20" type="radio"><label id="C20C">(C) at the age of  sixteen</label>
<input id="choice20D" value="D" name="choice20" type="radio"><label id="C20D">(D) at age sixteen years old</label>
<input language="javascript" id="button1" onclick="button1_onclick();" value="Show answers" name="button1" type="button">
 
 
Post #: 1
 
 RE: How to creat a post like this in blogger.com - 2/22/2008 9:06:59 AM   
  TNO


Posts: 974
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
I think that code gave me cancer..... (><)

Implementing a simple script like that for a quiz should never be that complex as that page listed. Here's a simple guide for how the concept works:

http://www.javascriptkit.com/javatutors/radiocheck.shtml

Give it a shot on your own from scratch and we'll help you along. Trust me, its better to understand how this works instead of a black box method of copy/paste.

_____________________________

Consolidated Script Component: Now in Testing stage!

A universe of complexity...

(in reply to onetruelove)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> How to creat a post like this in blogger.com Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts