<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Assignment 2</title>
<script type="text/javascript">
// Declare variables which need page scope here
//
// Document what your function does here.
//
function createCityInfo() {
// Insert your code here. Remember to include comments.
}
//
// Document what your function does here.
//
function selectCity() {
// Insert your code here. Remember to include comments.
var londonTemp = new Array();
londonTemp = [3.9,4.2,5.7,8.5,11.9,15.2,17.0,16.6,14.2,10.3,6.6,4.8];
var londonRain = new Array();
londonRain = [48.9,38.8,39.3,41.4,47.0,48.3,59.0,59.6,52.4,65.2,59.3,51.2];
var tempTable;
for (i=0;i<londonTemp.length;i++) {
tempTable += '<td rowspan="9" valign="bottom" class="borderBR"><img src="images/temperature.gif" alt="" width="40" height="'+ (String)(londonTemp[i] * 4) +' " /></td>'
}
//mainFrame.document.getElementById('Temp').innerHTML = tempTable
//status = tempTable
}
}
//
// Document what your function does here.
//
function readDefaultCity() {
// Insert your code here. Remember to include comments.
}
//
// Document what your function does here.
//
function writeDefaultCity() {
// Insert your code here. Remember to include comments.
}
//
// Document what your function does here.
//
function setDefaultCity() {
// Insert your code here. Remember to include comments.
}
</script>
</head>
<frameset rows="100,*" frameborder="no" border="0" framespacing="0">
<frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" marginwidth="0" marginheight="0" id="topFrame" />
<frame src="main.html" name="mainFrame" marginwidth="0" marginheight="0" id="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>