ScottInTexas
06-20-2006, 03:57 AM
I know I have asked and handled this in the past, but I can't find the thread! I want the content of subsequent files to appear in a div I have set up for it.
The onClick is supposed to get the reuired file and put it in the place made for it.
I tried the iframe but if I don't need it I don't want it.
Thanks for the patience.
function menuOps(what){
document.write(what);
var myFrame = document.getElementById("dataWindow");
myFrame.src = what;
}
<div id="maincontent">
<div id="leftcolumn">
<ul>
<li onmouseover="HighLightMe(this)" onmouseout="LowLightMe(this)" onClick="menuOps('Contestants.html')">Contestants</li>
<li onmouseover="HighLightMe(this)" onmouseout="LowLightMe(this)"><A href="MenuItem" target="_blank">Dates</a></li>
<li onmouseover="HighLightMe(this)" onmouseout="LowLightMe(this)"><A href="MenuItem" target="_blank">Contest Rules</a></li>
<li onmouseover="HighLightMe(this)" onmouseout="LowLightMe(this)"><A href="MenuItem" target="_blank">The Contest</a></li>
</ul>
</div>
<div id="activewindow">
<iframe frameborder="0" name="dataWindow" backgroundColor="#f3f3f3"></iframe>
</div>
</div>
The onClick is supposed to get the reuired file and put it in the place made for it.
I tried the iframe but if I don't need it I don't want it.
Thanks for the patience.
function menuOps(what){
document.write(what);
var myFrame = document.getElementById("dataWindow");
myFrame.src = what;
}
<div id="maincontent">
<div id="leftcolumn">
<ul>
<li onmouseover="HighLightMe(this)" onmouseout="LowLightMe(this)" onClick="menuOps('Contestants.html')">Contestants</li>
<li onmouseover="HighLightMe(this)" onmouseout="LowLightMe(this)"><A href="MenuItem" target="_blank">Dates</a></li>
<li onmouseover="HighLightMe(this)" onmouseout="LowLightMe(this)"><A href="MenuItem" target="_blank">Contest Rules</a></li>
<li onmouseover="HighLightMe(this)" onmouseout="LowLightMe(this)"><A href="MenuItem" target="_blank">The Contest</a></li>
</ul>
</div>
<div id="activewindow">
<iframe frameborder="0" name="dataWindow" backgroundColor="#f3f3f3"></iframe>
</div>
</div>