Make up a frameset page, something like so:
HTML Code:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<frameset cols="50%,50%">
<frame name="left" src="text1.htm">
<frame name="right" src="text2.htm">
</frameset>
</html>
Save it as top.htm or something.
Now, on text1.htm, make it a regular HTML page and put everything from step 1 and the first part of step 2 from the demo of this script on it.
Make these changes to the script in the 'function changetext(whichcontent)' (additions red):
Code:
function changetext(whichcontent){
if (document.all||document.getElementById){
cross_el=document.getElementById? parent.right.document.getElementById("descriptions"):parent.right.document.all.descriptions
cross_el.innerHTML='<font face="Verdana"><small>'+whichcontent+'<font></small>'
}
else if (document.layers){
parent.right.document.d1.document.d2.document.write('<font face="Verdana"><small>'+whichcontent+'</small></font>')
parent.right.document.d1.document.d2.document.close()
}
}
where 'right' is the name of the target frame as it is in my demo frameset at the top of this post.
Finally, put the code from step 2 second part on text2.htm. Put all three files in the same directory, open up top.htm in your browser and you are off to the races!
Bookmarks