How to display html content
<script type="text/javascript">
function replaceContent(show) {
var display = new Array();
display[1] = 1.html;
display[2] = 2.html;
document.getElementById("ShowItems").innerHTML = display[show];
}
</script>
<a href="#" onclick="replaceContent(1)">1</a>
<a href="#" onclick="replaceContent(2)">2</a>
<a href="#" onclick="replaceContent(3)">3</a>
<div id="ShowItems">...</div>
thankyou.
You want to populate #ShowItems with the contents of 1.html, 2.html, etc? This doesn’t make very much sense, unless 1.html and 2.html are really just page fragments. Consider iframes.