Problem with frames

liunx

Guest
Hey guys,<br />
I've been trying to figure this out for my frames for a while:<br />
<br />
I have a top frame (top), and the bottom frame is another frameset with a left navigation bar (leftside) and right frame with the content (rightside).<br />
<br />
The problem is, people tend to get linked to individual pages of my site, so they have no navbar or top bar. I've been trying to make a link that says "click here if you see no left or top frame" that will take whatever page you are in, and add both the frames keeping the right frame the same as the page you clicked the link in.<br />
<br />
I tried using javascript and making a frameset where the right frame was linked to "history.go(-1)" etc. which didn't work. Maybe I'm just missing a simple HTML link?<!--content-->If your intentions are that a user always se your complete site regardless which page in a frameset they bookmark,<br />
you can adopt something along the lines<br />
<br />
if(top.parent.frames.length==0){<br />
window.location.href = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"framesetPage.html";<br />
}<br />
<br />
put the above code in all of the pages other then the main frameset.<br />
<br />
Hope this helps<br />
<br />
Khalid<!--content-->Hey.<br />
Thanks, but the big problem is I wanted to know if there's a way to make the frameset display the page the viewers were viewing before they clicked the link. The only way I can think of at the moment would be making a frameset for each individual page, but that would take up way too much space on the site.<br />
<br />
In otherwords, say the page you viewed was called a.html . I wanted to know if there was a link that would add the top and left frames, but keep a.html as the right frame, and do the same for b.html, c.html, etc.<!--content-->
 
Back
Top