My site uses a javascript menu on the left side. This menu opens up multiple levels, so it can get pretty wide. (The third level can get to the middle of the screen.)
A particular job requires two pages to be displayed at the same time (for comparison).
My site template has a table. The left side cell is for the menu. The right side cell is for content.
I tried putting two I frames in the right panel, and controlling them with the menu. Everything worked great, except that ie would not generate a horizontal scrollbar, even setting scrolling to yes did not help.
I tried using a frameset. It worked perfectly except that the child menu levels would not overlap the right side frames, so they were invisible.
The current plan calls for using the original site template with the menu at left.
In the right side goes either:
- An iframe within which is a frameset.
- A virtual include of the same frameset.
Both plans worked in the sense that the menu now overlaps the frames. My problem is changing the code so that the two frames can still be controlled by the menu.
The menu link looks like this:
'Text',"javascript
:loadTwo('../directory/file.htm','http://www.another-website.c
m/page.html')"],
The script in the head of the page is:
<script language="javascript">
function loadTwo(iframe1URL, iframe2URL)
{
parent.FRAME1.location.href=iframe1URL
parent.FRAME2.location.href=iframe2URL
}
</script>
The frames are named FRAME1 and FRAME2
Can you please help. What I need is to modify the script to refer to a frameset named fs.htm:
- The frameset being inside of an iframe
- Or the frameset being of a virtual include
- Or a better way to do this.