<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
My Definitions
</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body onload="init();">
<script type="text/javascript">
var define;
var selList;
var tdDef;
function init()
{
selList = document.getElementById("list");
tdDef = document.getElementById("def");
define = new Object;
define["Unicode"] = "unicoded";
define["Hexadecimal"] = "hex";
define["Binary"] = "bin";
define["Compiler"] = "compil";
define["Interpreter"] = "inter";
define["Topology"] = "top";
define["Server"] = "ser";
define["Overflow Error"] = "of";
define["Phishing"] = "phish";
define["Network"] = "net";
setDefText();
}
function definition(def)
{
return define[def];
}
function setDefText()
{
var idxSel = selList.selectedIndex;
var strSel = selList.options.item(idxSel).text;
tdDef.firstChild.nodeValue = definition(strSel);
}
</script>
Select a definition from the list:
<select id="list" onchange="setDefText();">
<option>Unicode
</option>
<option>Hexadecimal
</option>
<option>Binary
</option>
</select>
<br>
<br>
<table border="1" width="100" cellpadding="5">
<tr><th>Definition:
</th><th>Picture:
</th></tr>
<tr><td id="def">--
</td><td id="pic"></td></tr>
</table>
</body>
</html>