<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>
<script type="text/javascript">
function disp(hId){
if(document.getElementById(hId).attributes.collapse.value == "false"){
hide(hId);
return true;
}
document.getElementById(hId).style.display="block";
document.getElementById(hId).attributes.collapse.value=false;
}
function hide(hId){
document.getElementById(hId).style.display="none";
document.getElementById(hId).attributes.collapse.value=true;
}
</script>
</head>
<body>
<div onclick="disp('def1');" id="clsp1" />Click to see definition 1
<div style="display:none" id="def1" collapse="true">
<p>This is definition 1-1</p>
<p>This is definition 1-2</p>
<p>This is definition 1-3</p>
</div>
</div>
<div onclick="disp('def2');" id="clsp2" />Click to see definition 2
<div style="display:none" id="def2" collapse="true">
<p>This is definition 2-1</p>
<p>This is definition 2-2</p>
<p>This is definition 2-3</p>
</div>
</div>
</body>
</html>
Bookmarks