Issue with Javascript



Share on Google+Share on Google+

Issue with Javascript
0 Answer(s)      5 years and 2 months ago
Posted in : HTML

Hi I created arrays in javascript in following way

var myimages= new Array(); myimages[0]="iphone_pushups.png"; myimages[1]= "cricket.png"; myimages[2]= "july.png"; myimages[3]= "matrix.png"; myimages[4]= "rhymes.png";

var Questions= new Array(); Questions[0]= "

How many iphone styles are present in the image?

"; Questions[1]= "

What is the name of the game present in the image?

"; Questions[2]= "

What is the colour of the stars in the image?

"; Questions[3]= "

How many blocks of same size are present?

"; Questions[4]= "

What is the language of rhymes found from image?


var answers= new Array(); answers[0]="Five"; answers[1]="Cricket"; answers[2]="White"; answers[3]="Four"; answers[4]="Telugu";

var options= new Array(); options[0]="One"; options[1]="Three"; options[2]="Five"; options[3]="None";
options[4]="Golf"; options[5]="Cricket"; options[6]="Chess"; options[7]="Carroms"; options[8]="White"; options[9]="red"; options[10]="blue"; options[11]="orange"; options[12]="Two"; options[13]="Three"; options[14]="Four"; options[15]="Five"; options[16]="English"; options[17]="Kannada"; options[18]="Telugu"; options[19]="Hindi";

For these arrays i have to write the code using javascript that for the question we should get 4 options and for the each question we should find the correct answer. it would be displayed as multiple choice question and if we click on one option it would show whether the answer is correct or not. I need code of this in javascript.If you don't mine get me reply as as quickly as possible.

View Answers

Related Tutorials/Questions & Answers:
Issue with Javascript
Issue with Javascript  Hi I created arrays in javascript in following way var myimages= new Array(); myimages[0]="iphone_pushups.png... using javascript that for the question we should get 4 options and for the each
javascript issue
javascript issue  hi, i have an xml file which have country name and there browsers name list so now in 1st dropdown list country name should print and when we select country corresponding to that in 2nd dropdown list browsers
issue on jcombobox
issue on jcombobox  i have JTextfield and JComboBox. there are several values in combobox.when i select a value from combobox how to make textfiled as a combobox.only few values in the combobox need this functionality. need
jdialogbox issue.
jdialogbox issue.  i have one button.when clicked on it has to show a dialog box.but even click on it several times it has to open dialog box only once. if it is already not opened atleast once,then only it has to open dialog
to go back for another search. Now issue is -- when I put some input data
Decimal Format Issue Java
Decimal Format Issue Java  Decimal Format Issue Java
JavaScript  clone JavaScript
javascript  javascript code to dynamically add table on button click.../javascript/javascriptexamples/javascript-add-row-dynamically.shtml
Javascript  How validations are done using javascript ,with example? and interview questions on javASCRIPT
should use JavaScript? Thanks   Hi, JavaScript is scripting language that runs on browser. You have to embed JavaScript in HTML page. Please see JavaScript tutorial. Thanks
JavaScript  how to get full path of a file type in javascript
javascript  Hi deepak, how to write form validation on javascript
javascript  write a program to display implement about browsers using javascript
javaScript  How to open a browser window that cannot be resized? (HTML + Javascript
javascript  i have just learned javascript... can you tell me what kind of applications can be made by javascript?? thank you
jquery issue plese help
jquery issue plese help  Im am trying to Change the background color... }); // end ready JavaScript & jQuery TheMissingManual... JavaScript & jQuery: The Missing Manual, by David McFarland. Published
javascript  how to set the request or session attribute in javascript head part of jsp page
javascript  Hi sir, This is sinduri, i want to learn javascript, so plz can u help to learn
javascript  hi sir, if i want to learn javascript. what concepts i want to know
JAVASCRIPT  I have one textbox and I want to validate that it must start with number(1-0). can anyone tell me a javascript for that ? thanks in advance
Javascript   Javascript to check Numeric entry in checkbox.....   Hi Please find the following code for numeric entry validation in javascript function validateBox(){ var data=document.myForm.someText.value
javascript  hi, I was actually working on to calculate the number of days between two dates of yyyy-mm-dd format using javascript, and when i click on button then number of days should be display in textbox
javaScript  . Print a table like below in JAVASCRIPT 5 x 1 = 5 5 x 2 = 10 ΓΆβ?¬Β¦ΓΆβ?¬Β¦ΓΆβ?¬Β¦. 5 x 20 = 100
javascript  passing javascript values to jsp   Hi Friend, Try the following code: form.jsp: <html> <script> function getMsg...;/script> <input type="button" onclick="getMsg();" value="Get Javascript value
semantic issue xcode 4.2
semantic issue xcode 4.2  I have updated xcode 4.0 to 4.2 .. but once i open any application in this new version of xcode throws lots of semantic issue. Can anyone please explain why it occurs and how to resolve
this format xxx-xxx-xxxx, i want the code in javascript. as a function.   Javascript Phone Number Validation <html> <script> function..." method="post" onsubmit="javascript:return validate();"> Phone Number:<
Javascript  Dear Sir, Thank You a lot for your continuos support.Again i am in need of your help. What is the javascript code to disable a link,once... javascript or css Please help me.Urgent Regards Debasis   Hello Friend
Resultset Issue in SQL
Resultset Issue in SQL  when i call in my code it is returning false, though im having valid query to execute and fetch a row from can i resolve this issue. My code is: SELECT JOBDESCRIPTION,CATEGORY
Javascript  <html> <head> <script type="text/javascript"> function validateForm() { var sname=document.getElementById('spocname'); var scontact=document.getElementById('spoccontact'); if(sname.value.length
javascript  how to create random question using javascript?   <html> <script> function displayQuestions() { document.getElementById("text").value=" "; var Questions = new Array(20