14/08/2008, 16:59
|
| | Fecha de Ingreso: agosto-2008
Mensajes: 3
Antigüedad: 16 años, 3 meses Puntos: 0 | |
aqui esta la pagina con javascript original, como dices no corre <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Created using eXe: http://exelearning.org -->
<head>
<style type="text/css">
@import url(base.css);
@import url(content.css);
@import url(nav.css);</style>
<title> Inicio </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="common.js"></script>
</head>
<body onload="calcScore2">
<div id="content">
<div id="navcontainer">
<ul id="navlist">
<div id="active" class="withoutChild">Inicio</div>
</ul>
</div>
<div id="main">
<div id="nodeDecoration"><p id="nodeTitle">Inicio</p></div>
<div class="QuizTestIdevice" id="id0">
<script type="text/javascript">
<!-- //<![CDATA[
var numQuestions = 2;
var rawScore = 0;
var actualScore = 0;
var question0;
var question1;
var key0 = 0;
var key1 = 1;
function getAnswer()
{
for (var i=0; i < 2; i++)
{
if (document.getElementById("quizForm0").key0b0[i].checked)
{
question0 = document.getElementById("quizForm0").key0b0[i].value;
break;
}
}
for (var i=0; i < 2; i++)
{
if (document.getElementById("quizForm0").key1b0[i].checked)
{
question1 = document.getElementById("quizForm0").key1b0[i].value;
break;
}
}
}
function calcRawScore(){
if (question0 == key0)
{
rawScore++;
}
if (question1 == key1)
{
rawScore++;
}
}
function calcScore2()
{
getAnswer();
calcRawScore();
actualScore = Math.round(rawScore / numQuestions*10);
quizForm0.cal.value=actualScore;
}
//]]> -->
</script>
<form name="quizForm0" id="quizForm0" method="post" action="procesa.php" >
<div class="iDevice emphasis1">
<img alt="" class="iDevice_icon" src="icon_question.gif" />
<span class="iDeviceTitle">Examen SCORM</span>
<div class="iDevice_inner">
<div id="taquestion0b0" class="block" style="display:block">gato
</div><br/>
<table><tr><td><input type="radio" name="key0b0" value="0" />
</td><td>
<div id="taoptionAnswer0q0b0" class="block" style="display:block">a
</div></td></tr>
<tr><td><input type="radio" name="key0b0" value="1" />
</td><td>
<div id="taoptionAnswer1q0b0" class="block" style="display:block">b
</div></td></tr>
</table><br/><div id="taquestion1b0" class="block" style="display:block">perro
</div><br/>
<table><tr><td><input type="radio" name="key1b0" value="0" />
</td><td>
<div id="taoptionAnswer0q1b0" class="block" style="display:block">a
</div></td></tr>
<tr><td><input type="radio" name="key1b0" value="1" />
</td><td>
<div id="taoptionAnswer1q1b0" class="block" style="display:block">b
</div></td></tr>
</table><br/><input type="submit" name="submitB" value="Respuestas propuestas" onclick="calcScore2()"/>
<input name="cal" type="hidden" id="cal" value="" />
<label>
<input name="cal1" type="text" id="cal1" />
</label>
</div></div>
</form>
</div>
<div class="noprt" align="right"></div>
</div>
</div>
</body></html> |