<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/jQuizMe.js"></script>
<script type="text/javascript">
var mcqimg = new Image();
mcqimg.src = "images1.JPG";
function image1(){
if (document.images) {
document["imagename"].src = mcqimg.src
}};
</script>
</head>
<body>
<div id="header"></div>
<div id="content">
<div id="quizArea"/>
<script type="text/javascript">
$( function($){
var quizMulti = {
multiList:
[
/* Core Questions */
{ ques: "Question1", ans: "right answer", ansSel : [ "wrong answer1", "wrong answer2", "wrong answer3" ] },
{ ques: "Question2", ans: "right answer", ansSel : [ "wrong answer1", "wrong answer2", "wrong answer3" ] },
{ ques: "Question3", ans: "right answer", ansSel : [ "wrong answer1", "wrong answer2", "wrong answer3" ] },
</script>
</body>
</html>
This is not all of my code but its a good post to start with to explain my issue, the full documents involved total about 1600 lines.
the multiList array contains multiple choice questions, for each of these there is a specific picture file the user must be able to access, however i'm having some serious trouble getting the correct picture to associate with the questions, every time i try to link to a picture or use a variable or function in the question array all the javascript stops working and an error is thrown.
any pointers towards solutions would be welcome and i can supply more information if needed but due to my client am unable to supply the entire file or any of the content so it will need to be edited before posting.
many thanks in advance!
- Tez Grant

New Topic/Question
Reply



MultiQuote




|