Look at this javascript code please!!!!!!
Posted: Sun Feb 15, 2009 3:15 pm
I hate doing my homework could someone please tell me how to find the answer to the problems by looking at the javascript code?????
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Setting the header tab selection -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>MyCompLab</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="Javascript" type="text/javascript" src="/mel/javascript/common.js"></script>
<script language="Javascript" type="text/javascript" src="/mel/javascript/html2xhtml.js"></script>
<script language="Javascript" type="text/javascript" src="/mel/javascript/richtext_compressed.js"></script>
<script language="Javascript" type="text/javascript" src="/mel/javascript/mcl/studentNavigation.js"></script>
<link rel="stylesheet" type="text/css" href="/mel/css/common/common.css" media="all" />
<link rel="stylesheet" type="text/css" href="/mel/css/mcl/css.css" media="all" /><script language="javascript" type="text/javascript" src="/mel/javascript/mcl/detect.js"></script>
<link rel="stylesheet" type="text/css" href="/mel/css/mcl/content.css" media="all" />
<script type="text/javascript">
function getNextQuestion()
{
document.forms[0].action="/mel/nextQuestionAction.do";
document.forms[0].submit();
}
function showResults() {
document.forms[0].action = "/mel/setResultReportAction.do"
document.forms[0].eventName.value = "showResults";
document.forms[0].submit();
}
var sizeArray = new Array('xx-small','x-small','small','medium','large','x-large','xx-large');
var initSize = 2;
function fontSizer(inc) {
var size = initSize;
size += inc;
if (size < 0 ) {
size = 0;
}
if (size > 6 ) {
size = 6;
}
initSize = size;
if(window.frames[0] != null)
{
var frameBody = window.frames[0].document.getElementsByTagName('body')[0];
frameBody.style.fontSize = sizeArray[size];
var httpReq = NewHttpReq();
DoRequest(httpReq,'/mel/SetFontSizeServlet','fontSize='+size,false);
}
}
</script>
<style>
#questionDetails ul{
padding:0px 0px 0px 15px;
margin:10px 0px 0px 15px;
}
#questionDetails ul li{
list-style:disc;
}
</style>
<!--[if lte IE 6]>
<link href="/mel/css/mcl/ie.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->
<!--[if IE]>
<style type="text/css" media="screen">
body { behavior: url(/mel/css/mcl/csshover.htc); }
</style>
<![endif]-->
</head>
<body onload="javascript:fontSizer(0);">
<div class="mainContent" style="min-width: 942px; width:auto !important; width:942px;">
<div class="head">
<div class="logo"></div>
<div class="linksContainer">
<div class="options">
Student:
Levi Harman
|
<span class="secOptions">
<a href="javascript:showSetttings();">Settings</a> |
<a href="javascript:showContextHelp('http://help.pearsoncmg.com/mycomplab/student/mcl_student.htm');">Help</a> |
<a href="javascript:logOut();">Logout</a>
</span>
</div> <!-- options -->
<div class="nav">
<div class="btnHome">
<a href="javascript:showHomePage();"><img src="images/spacer.gif" alt="Home" title="Home" border="0" width="120" height="40" /></a></div>
<div class="btnTODO">
<a href="javascript:showCourseTODO();"><img src="images/spacer.gif" alt="To Do" title="To Do" border="0" width="120" height="40" /></a></div>
<div class="btnResourcesOn">
<a href="javascript:showStudyPlan();"><img src="images/spacer.gif" alt="Resources" title="Resources" border="0" width="120" height="40" /></a></div>
<div class="btnComposing">
<a href="javascript:showCompositionListing();"><img src="images/spacer.gif" alt="Composing" title="Composing" border="0" width="120" height="40" /></a></div>
<div class="btnPortfolio">
<a href="javascript:showPortfolio();"><img src="images/spacer.gif" alt="Portfolio" title="Portfolio" border="0" width="120" height="40" /></a></div>
<div class="btnGradebook">
<a href="javascript:showGradeBookOptions();"><img src="images/spacer.gif" alt="Gradebook" title="Gradebook" border="0" width="120" height="40" /></a></div>
</div> <!-- nav -->
</div> <!-- links Container -->
<div class="search">
<iframe src="/mel/jsp/common/mclSearch.jsp" width="100%" frameborder="0" height="23" scrolling="no"></iframe>
</div>
<div class="cleared"></div>
</div><div class="top">
<div class="topleft"></div>
<div class="topright"></div>
</div>
<div id="crumbs"><ul>
<ul>
<li><a href="javascript:showHomePage();">Home</a></li>
<li> > <a href="javascript:showStudentStudyPlanTopic(7638);">Resources</a></li>
<li> > <a href="javascript:showStudentStudyPlanTopic(7638);">Grammar</a></li>
<li> > <a href="javascript:showStudentStudyPlanTopic(7638);">Basic Grammar</a></li>
<li>> <a href="javascript:showTopic();">Adjectives and Adverbs </a></li>
<li>> Participles as Adjectives</li>
</ul>
</ul>
</div>
<div class="body">
<div class="content" style="margin-bottom:30px;">
<div id="questionDetails" style="margin: auto; width: 90%; position: relative;">
<div style="margin-bottom:30px;margin-left:0px;">
<h1>Adjectives and Adverbs : Participles as Adjectives</h1>
</div>
<form action="/mel/studyPlan.do" method="post" onsubmit="javascript:return false;">
<input type="hidden" name="eventName" value="getStudentStudyPlan"/>
<input type="hidden" name="courseProductFlag" value="course"/>
<!-- when courseProductFlag = course -->
<input type="hidden" name="courseID" value="69572"/>
<!-- when courseProductFlag = product -->
<input type="hidden" name="productID" value="944"/>
<!-- in either case there will be a corresponding studentCourse and its view-->
<input type="hidden" name="studentCourseID" value=""/>
<input type="hidden" name="view" value=""/>
<input type="hidden" name="showDiagnosticsOnly" value=""/>
<!--fields for the topics -->
<input type="hidden" name="courseTopicID" value="2433376"/>
<input type="hidden" name="productTopicID" value="8017"/>
<input type="hidden" name="studentTopicID" value="22551702"/>
<input type="hidden" name="topicTitle" value="Adjectives and Adverbs "/>
<!-- fields for the exercise -->
<input type="hidden" name="productExerciseID" value="25496"/>
<input type="hidden" name="courseExerciseID" value="12722553"/>
<input type="hidden" name="menuName" value="menu1"/>
<!--fields for the readings -->
<input type="hidden" name="courseReadingID" value=""/>
<input type="hidden" name="productReadingID" value=""/>
<input type="hidden" name="studentCourseReadingID" value=""/>
<input type="hidden" name="readingTypeID" value=""/>
<input type="hidden" name="readingID" value=""/>
<!--fields for the assignment exercises -->
<input type="hidden" name="assignmentID" value=""/>
<input type="hidden" name="studentAssignmentID" value=""/>
<input type="hidden" name="saveQuestion" value=""/>
<input type="hidden" name="org.apache.struts.taglib.html.TOKEN" value="df339f8313216c79f79fddba9fc241af"/>
<input type="hidden" name="nextQuestionRequest" value=""/>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:4px;color: #000000;">
<tr>
<td width="4"><img src="/mel/mcl-images/sidetopleft.gif" width="4" height="4" alt="" /></td>
<td bgcolor="#FFFFFF"><img src="/mel/mcl-images/spacer.gif" width="4" height="4" alt="" /></td>
<td width="4"><img src="/mel/mcl-images/sidetopright.gif" width="4" height="4" alt="" /></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF" style="padding:5px 15px 5px 10px">
<input type="hidden" name="studentExerciseID" value="6794311"/>
<div style="margin-bottom:20px;">
<div id="sharedInfoDiv">
<p class="header"></p>
<div class="reading" style="margin-left:0px;padding-left:0px;">
<p>Select the participle that correctly completes each sentence.</p></div>
</div></div>
<script>
function answerQuestion()
{
if(document.forms[0].answer.value != ''){
if(document.forms[0].answerButton != null)
{
document.forms[0].answerButton.disabled = true;
}else if(document.getElementById('answerButton') != null)
{
document.getElementById('answerButton').href="#";
}
document.forms[0].action="/mel/gradeQuestionAction.do";
document.forms[0].submit();
}else{
alert("Please select your answer!");
}
}
function setAnswer(responseID){
document.forms[0].answer.value = responseID;
}
function setAnswerFromList(){
var selectedResponse = document.getElementById("answerlist").selectedIndex;
var responseID = document.forms[0].answerlist.options[selectedResponse].value;
document.forms[0].answer.value = responseID;
};
</script>
<input type="hidden" name="answer" value="" />
<div>
<div style="padding-top:10px;">
<div style="float:left;">
<img src="/mel/images/blank.gif" width="15"/>
</div>
<div style="float:left;">
<a style="text-decoration:none;" name="3">3. </a>
</div>
<div class="questionText">
A rollercoaster is a __________ ride.</div>
<div>
<br/>
<div id="radioChoices" style="display:none">
<div class="newResponse">
<div style="float:left;">
<input id="answerRadio" type="radio" name="answerRadio" value="135180" onclick="javascript:setAnswer(135180)" />
</div>
<div style="margin-left:20px;">
<div style="float:left;">a)</div>
<div style="margin-left:20px;"> thrilling</div>
</div>
</div>
<div class="newResponse">
<div style="float:left;">
<input id="answerRadio" type="radio" name="answerRadio" value="135181" onclick="javascript:setAnswer(135181)" />
</div>
<div style="margin-left:20px;">
<div style="float:left;">b)</div>
<div style="margin-left:20px;"> thrilled</div>
</div>
</div>
</div>
<div style="float:left;padding-left:10px;">
<a href="javascript:answerQuestion();" class='buttonLink' id='answerButton' title='Submit'><span class='button arrowRightRound2'><span class='descRound2 buttonFont' id='Submit' >Submit</span></span></a></div>
<div style="float:right;">Question <b>3</b> of <b>10</b></div>
</div>
</div>
<br/>
<script>
var questionText = "A rollercoaster is a __________ ride.";
var oDiv = document.getElementById("radioChoices");
oDiv.style.display = "block";
</script></td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr style="height:4;">
<td><img src="/mel/mcl-images/sidebottomleft.gif" width="4" height="4" alt="" /></td>
<td bgcolor="#FFFFFF"><img src="/mel/mcl-images/spacer.gif" width="4" height="4" alt="" /></td>
<td><img src="/mel/mcl-images/sidebottomright.gif" width="4" height="4" alt="" /></td>
</tr>
</table>
<div id="resourceDiv" style="text-align: center;margin-top:30px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="tableCornerTopRight"><img src="/mel/mcl-images/spacer.gif" width="11" height="11" alt=""/></td>
<td class="tableBgTop"><img src="/mel/mcl-images/spacer.gif" width="" height="11" alt=""/></td>
<td class="tableCornerTopLeft"><img src="/mel/mcl-images/spacer.gif" width="11" height="11" alt=""/></td>
</tr>
<tr>
<td class="tableBgLeftSide"></td>
<td>
<div class="tbodyExtended" style="background-color:#C6CCDC;border:none;">
<div style="width:100%;"><div class="note">
<div class="resourceBlurb"><b>Need a refresher?</b> Choose a resource from the dropdown menu. </div>
<table>
<tr>
<td class="first">
<select name="menu1" style="width:300px">
<option value="2089">Comparative and Superlative Forms</option>
<option value="2090">Negative Expressions</option>
<option value="2091">Predicate Adjectives</option>
<option value="2166">Adjective-Adverb Confusion</option>
<option value="3290">Adjectives (eBook)</option>
<option value="3291">Adverbs (eBook)</option>
</select>
<input type="hidden" id="Type2089" value="Html"/>
<input type="hidden" id="URL2089" value=""/>
<input type="hidden" id="popupWidth2089" value=""/>
<input type="hidden" id="popupHeight2089" value=""/>
<input type="hidden" id="Type2090" value="Html"/>
<input type="hidden" id="URL2090" value=""/>
<input type="hidden" id="popupWidth2090" value=""/>
<input type="hidden" id="popupHeight2090" value=""/>
<input type="hidden" id="Type2091" value="Html"/>
<input type="hidden" id="URL2091" value=""/>
<input type="hidden" id="popupWidth2091" value=""/>
<input type="hidden" id="popupHeight2091" value=""/>
<input type="hidden" id="Type2166" value="WebLink"/>
<input type="hidden" id="URL2166" value="http://media.pearsoncmg.com/alt/comp/gramanims/AA1/mycomplab.html"/>
<input type="hidden" id="popupWidth2166" value="670"/>
<input type="hidden" id="popupHeight2166" value="470"/>
<input type="hidden" id="Type3290" value="WebLink"/>
<input type="hidden" id="URL3290" value="javascript:openEbook(564,311.4);"/>
<input type="hidden" id="popupWidth3290" value=""/>
<input type="hidden" id="popupHeight3290" value=""/>
<input type="hidden" id="Type3291" value="WebLink"/>
<input type="hidden" id="URL3291" value="javascript:openEbook(565,98.65);"/>
<input type="hidden" id="popupWidth3291" value=""/>
<input type="hidden" id="popupHeight3291" value=""/>
</td>
<td>
<a href="javascript:loadResource(resourceName);" class='buttonLink' id='View' title='View'><span class='button arrowRightRound2'><span class='descRound2 buttonFont' id='View' >View</span></span></a></td>
</tr>
</table>
</div>
<script type="text/javascript">
var resourceName = document.forms[0].menu1;
</script>
</div>
</div>
</td><td class="tableBgRightSide"></td>
</tr>
<tr>
<td class="tableCornerBottomLeft"><img src="/mel/mcl-images/spacer.gif" width="11" height="11" alt=""/></td>
<td class="tableBgBottom"><img src="/mel/mcl-images/spacer.gif" width="" height="11" alt=""/></td>
<td class="tableCornerBottomRight"><img src="/mel/mcl-images/spacer.gif" width="11" height="11" alt=""/></td>
</tr>
</table>
</div>
</div>
</div>
</form>
</div>
<div class="bottom">
<div class="bottomleft"></div>
<div class="bottomcenter"></div>
<div class="bottomright"></div>
</div>
<div id="footerDiv" style="margin-top:55px;">
<div style="height: 30px;"></div>
<div id="footer">
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
<td>
<div id="inside"><img src="/mel/images/logo_pearson_bottom.gif" alt="Pearson Education" width="67" height="29" border="0" />
<span class="text">Copyright © Pearson Education, Inc. All rights reserved. <a href="javascript:OpenLevel2Window('http://www.pearsoned.com/legal/index.htm','');">Legal Notice</a> - <a href="javascript:OpenLevel2Window('http://www.pearsoned.com/legal/privacy.htm','');">Privacy Policy</a> - <a href="javascript:OpenLevel2Window('http://www.pearsoned.com/legal/permissions.htm','');">Permissions</a>.
Course ID: Crouse255467C</span></div>
</td>
</tr></table>
</div></div>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-738928-1"; urchinTracker(); </script>
</body>
</html>