Forum Moderators: open
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script>
function showhide(id){
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none"){
obj.style.display = "";
} else {
obj.style.display = "none";
}
}
}
</script>
<title>Untitled Document</title>
</head>
<body>
<a href="#div1" onclick="showhide('div1'); return(false);">div1</a> <a href="#div2" onclick="showhide('div2'); return(false);">div2</a> <a href="#div3" onclick="showhide('div3'); return(false);">div3</a>
<div style="display: none;" id="div1"><p>this is div1. this is div1. this is div1. this is div1. this is div1. this is div1. this is div1. this is div1. this is div1. this is div1. this is div1. this is div1. this is div1. this is div1. this is div1. this is div1.</p> </div>
<div style="display: none;" id="div2"><p>this is div2. this is div2. this is div2. this is div2. this is div2. this is div2. this is div2. this is div2. this is div2. this is div2. this is div2.</p></div>
<div style="display: none;" id="div3"><p>this is div3. this is div3. this is div3. this is div3. this is div3. this is div3. this is div3. this is div3. this is div3. this is div3. this is div3. this is div3.</p></div>
</body>
</html>
I'm not an AJAX Kool-Aid drinker, but this is the kind of thing it's good for. It allows you to maintain a folder full of documents that can be accessed from any page and displayed in a number of ways.