the method that KOR suggested is a neat idea, but not really what im looking for. im sure ill use that for something else though.
Code:
<div style="overflow:auto">
<table>
<tr>
<td>text here blah blah <b> including any html tag you want</b>
</td>
</tr>
<table>
</div>
MrJ has it closer to what i really need. i dont know much about javascript, but im trying to make it so i can have 2 seperate iframes.
Code:
<HTML>
<HEAD>
<TITLE>Main Page</TITLE>
<script language="javascript">
<!--
function write_frame(){
mess=document.getElementById("test_div").innerHTML
document.frames["frame1"].document.write("<HTML>")
document.frames["frame1"].document.write("<HEAD>")
document.frames["frame1"].document.write("<TITLE>Document Title</TITLE>")
document.frames["frame1"].document.write("</HEAD>")
document.frames["frame1"].document.write("<BODY>")
document.frames["frame1"].document.write("<div id='test_div2'>HI</div>")
document.frames["frame1"].document.write("</BODY>")
document.frames["frame1"].document.write("</HTML>")
document.frames["frame1"].document.getElementById("test_div2").innerHTML=mess
document.frames["frame1"].document.getElementById("test_div2").style.color="#0000FF"
}
// -->
</script>
</HEAD>
<BODY onload="write_frame()">
<h1>Main Page</h1>
<iframe name="frame1" src="" width="300" height="200"></iframe>
<div id="test_div">This is some original text</div>
</BODY>
</HTML>
exactly (more or less) what im trying to do is to create several iframes with their own HTML content.
cause i have over 200 static HTML pages, and i dont want the site to get too large, otherwise my navigation gets tooo messy.
most of the pages are under 100K and think its a waste to make a whole new page just for some content, so id like to make them pages little iframes, using MrJs above code.
but im having trouble making it so that i can have more than 1 iframe with different content.
i dont remember exactly where, but i recall seeing a script that uses an iframe with text-links above it, and clicking the text-link loads the new content in the iframe window.
anyone know what that one is and where i can find it?