aboutsummaryrefslogtreecommitdiffstats
path: root/csci4131/lec/Lec6Ex2.html
blob: 99f58436315892500e5dc89254b62522a2ed355c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Possible HW2 constructs</title>
		<style>
			table, tr, td {
					border:0.25em solid black;
					border-collapse:collapse;
			}
		</style>
		<script>
			function chgimg(name, txt) {
				// Debug output statements - rudimentary stuff
				 //alert("name: " + name);
				 //alert("alternate text: " + txt);
				var theimage = document.getElementById("image");
				theimage.src = name;
				theimage.alt = txt;
			}
		</script>
		
	</head>
	<body>
		<table>
			<tr onmouseover="chgimg('08ShepherdLabs960.jpg', 'Shepherd Labs')">
				<td> Shepherd Labs </td>
				<td> 100 Union St SE <br> Minneapolis, MN 55455 </td>
			</tr>
		</table>
		<div>
			<img id="image" src="gophers-mascot.png" alt="Goldy Gopher">
		</div>
	</body>
<html>