I have a website with two frames the left one providing all a tree menu for site navigation and the right frame for displaying all pages on the site.
I currently use javascript to ensure all pages load into the frameset the script is as follows:
<script language="JavaScript" type="text/javascript">
<!--
if (top==self)
self.location.href="index.html";
-->
</script>
this works but it only loads the pages setup by default in the frameset.
I was wondering if it was possible to achieve something similar with PHP but for example if the user selects a particular page from a search engine listing load that page in the frameset.
MY thought was to
1) put the filename for each page into a variable on each page
2)set up a session in the index page then on every page to be displayed in the frame check if the session exists, load the index page and put the $pagename as the src for the main frame.
Any thoughts
thanks
In
Infinity exists! - I just haven't worked out a way to get there yet.
| |
I currently use javascript to ensure all pages load into the frameset the script is as follows:
<script language="JavaScript" type="text/javascript">
<!--
if (top==self)
self.location.href="index.html";
-->
</script>
this works but it only loads the pages setup by default in the frameset.
I was wondering if it was possible to achieve something similar with PHP but for example if the user selects a particular page from a search engine listing load that page in the frameset.
MY thought was to
1) put the filename for each page into a variable on each page
2)set up a session in the index page then on every page to be displayed in the frame check if the session exists, load the index page and put the $pagename as the src for the main frame.
Any thoughts
thanks
In
Infinity exists! - I just haven't worked out a way to get there yet.
| |