I hope whoever can help me out here is prepared to read a bit ?
THE MAIN IDEA
You can add ANY page’s name to the end of a URL [after a “?”] Then you only need ONE frameset page to catch an indefinite number of orphan pages and put them into their frameset. This method offer very easy maintenance, especially when there are lots and lots of possible orphans for one frameset.
THE CODE
Call this javascript code from the HEAD section of each child page. The code creates a variable from the URL of the page, and then passes that variable in the new location’s URL. This means a “master” frameset can load this exact page in the content section:
[CODE]
passpage = document.URL
if (top.location == self.location)
top.location.href=”master.html?” + passpage
Then create just one “master.html” page. It holds the JavaScript code to decipher whatever URL is passed after the “?” and it writes that page into the content frame:
[CODE]
<html>
<head>
<title>Master Frameset</title>
</head>
<script language=”JavaScript” type=”text/javascript”>
origURL = parent.document.URL
contentURL = origURL.substring(origURL.indexOf(‘?’)+1, origURL.length)
document.write(‘<iframe src=”home.php” name=”nav”><frame src=”‘ + contentURL + ‘” name=”content”></iframe>’)
</script>
</html>
So, as you can see [If you have used iFrames before] you can’t link to a specific page through the iFrame. This script is supposed to let you do this, but I am having problems with it.
MY PROBLEM:
Here is my website for refrences:
[url]www.visualevolution.net/sglaw
Check out:
[url]http://www.visualevolution.net/sglaw/master.html?aboutus.php
As you can see, the javascript has pulled this page into an iFrame, but not the main iFrame in index.html.
Any ideas as to why this is happening?