Frames help please

liunx

Guest
ok - bear with my stupidity, but i've only just started using frames and am sussing out how it all works. <br />
<br />
what i basically wanted to do is as follows:<br />
<br />
the first opening page of the web site (index) is just basically a "click to enter" type thing - then all pages thereafter have a top bar and side bar that stay the same - and the main guts of the page is in the other main frame. <br />
<br />
(hope i'm making sense)<br />
<br />
as i understand when you use frames the address does not show or update in the address bar of the browser. <br />
<br />
but i am unsure of how to transition from the first page to subsequent ones. ie do i make the first page a frame - even tho it doesnt have the top and side bars?<br />
<br />
so whats happenning is you open <!-- w --><a class="postlink" href="http://www.thesiteaddress.com">www.thesiteaddress.com</a><!-- w --> it loads the first page and you click into it and it goes to <!-- w --><a class="postlink" href="http://www.thesiteaddress.com/page1">www.thesiteaddress.com/page1</a><!-- w --> and shows this address for the rest of the time, but i want it to show only <!-- w --><a class="postlink" href="http://www.thesiteaddress.com">www.thesiteaddress.com</a><!-- w --><br />
<br />
am i making sense? <br />
plase help!<!--content-->if that's all you want, you can make a single frame at 100% width and height.<br />
<br />
if you want the other frames too, then we need to know which frames you want it to change, or if you want to change to another frameset entirely.<br />
<br />
i did a site with frames you might be able to analyse. <!-- m --><a class="postlink" href="http://www.thelovingscares.com/gallery.html">http://www.thelovingscares.com/gallery.html</a><!-- m --> (some content may not be suitable for children under 21 :D)<br />
<br />
to view the source for each frame, right-click on something within the frame and choose "view source". to view the source of the background, choose "view source" form the top toolbar menu thingie.<!--content-->hrmmm<br />
thanks transmothra<br />
<br />
let me try and explain a bit better<br />
<br />
and could you also tell me how to make a single frame with 100% width/height?<br />
<br />
index page = one frame only, click to enter type thing<br />
<br />
second page frame set includes topbar, side bar and main page.<!--content-->Why not just use an unframed (ie. normal) page with a link (or transition) to the frameset (ie. index) page? <br />
You've probably clicked a link on a site and gone to a framed site? It's the same process and effect.<br />
I do it all the time to navigate from framed pages to detailed photographs to the framed 'regular' pages. <br />
Is this the effect you're seeking?<!--content-->Originally posted by Android <br />
Why not just use an unframed (ie. normal) page with a link (or transition) to the frameset (ie. index) page? <br />
You've probably clicked a link on a site and gone to a framed site? It's the same process and effect.<br />
I do it all the time to navigate from framed pages to detailed photographs to the framed 'regular' pages. <br />
Is this the effect you're seeking? <br />
<br />
that's the way i have it set up now - but the thing is that <br />
<br />
the first page address shows as <!-- w --><a class="postlink" href="http://www.thesiteaddress.com">www.thesiteaddress.com</a><!-- w --> and you click into it and it goes to <!-- w --><a class="postlink" href="http://www.thesiteaddress.com/page1">www.thesiteaddress.com/page1</a><!-- w --> (which is the frame page) and shows this address for the rest of the time/navigation, but i want it to show only <!-- w --><a class="postlink" href="http://www.thesiteaddress.com">www.thesiteaddress.com</a><!-- w --><!--content-->the only way you can do that is to load the frames like you want, top and side bar and the main the same color so all you see is the "click here to enter" and then when it is clicked it loads the top, side, and main frames. that way your url will stay the same.<!--content-->Originally posted by scoutt <br />
the only way you can do that is to load the frames like you want, top and side bar and the main the same color so all you see is the "click here to enter" and then when it is clicked it loads the top, side, and main frames. that way your url will stay the same. <br />
<br />
ah hah!!!<br />
i think that will do what i want<br />
<br />
thanks scoutt!!!<br />
<br />
i'll give it a try in a little while<!--content-->Originally posted by scoutt <br />
the only way you can do that is to load the frames like you want, top and side bar and the main the same color so all you see is the "click here to enter" and then when it is clicked it loads the top, side, and main frames. that way your url will stay the same. <br />
<br />
*sigh*<br />
i am trying so hard to understand this!<br />
<br />
when you say "load the frames like you want, top and side bar"....do you mean set up new top and side frames that are the same size as the proper ones?<br />
<br />
arghs trying to explain all this is so frustrating. <br />
<br />
i tried that and it still changed the address - maybe the code was wrong somehow<br />
<br />
<br />
the frames page is - <br />
<br />
<html><br />
<head><br />
<title>New Page 1</title><br />
</head><br />
<br />
<frameset framespacing="0" border="0" cols="57,*" frameborder="0"><br />
<frame name="left" scrolling="no" noresize target="rtop" src=http://www.htmlforums.com/archive/index.php/"Pages/sidebar2.html"><br />
<frameset rows="6%,*"><br />
<frame name="rtop" target="rbottom" src=http://www.htmlforums.com/archive/index.php/"Pages/topbar2.html"><br />
<frame name="rbottom" src=http://www.htmlforums.com/archive/index.php/"Pages/first.html"><br />
</frameset><br />
<br />
</html><br />
<br />
<br />
<br />
and the code of the first.html is<br />
<br />
<html><br />
<br />
<head><br />
<title>New Page 1</title><br />
</head><br />
<br />
<frameset framespacing="0" border="0" cols="57,*" frameborder="0"><br />
<frame name="left" scrolling="no" noresize target="rtop" src=http://www.htmlforums.com/archive/index.php/"Pages/sidebar2.htm"><br />
<frameset rows="6%,*"><br />
<frame name="rtop" target="rbottom" src=http://www.htmlforums.com/archive/index.php/"Pages/topbar2.htm"><br />
<frame name="rbottom" src=http://www.htmlforums.com/archive/index.php/"Pages/first.htm"><br />
</frameset><br />
<br />
</html><br />
<br />
<br />
<br />
hrmmm<!--content-->well close, but you need to have only one frame page. so the index will be the frameset like you have. then the top and side and main pages will be your regular page. but you will have it so when the page with the link that says "click here to enter" will have some javascript that will load the main top and side bars.<br />
<br />
<br />
****index.html****<br />
<html> <br />
<head> <br />
<title>New Page 1</title> <br />
</head> <br />
<br />
<frameset framespacing="0" border="0" cols="57,*" frameborder="0"> <br />
<frame name="left" scrolling="no" noresize target="rtop" src=http://www.htmlforums.com/archive/index.php/"Pages/sidebar2.html"> <br />
<frameset rows="6%,*"> <br />
<frame name="rtop" target="rbottom" src=http://www.htmlforums.com/archive/index.php/"Pages/topbar2.html"> <br />
<frame name="rbottom" src=http://www.htmlforums.com/archive/index.php/"Pages/first2.html"> <br />
</frameset> <br />
<br />
</html> <br />
<br />
*****sidebar2.html****<br />
<html><br />
regular html page here that is the same color as the main page with "click here"<br />
</html><br />
<br />
*****sidebar.html****<br />
<html><br />
regular html page here that have the links or whatever you have in here. the one that everybody will see when they enter the site.<br />
</html><br />
<br />
*****first2.html****<br />
<html><br />
<head><br />
<SCRIPT language="JavaScript"><br />
<!--Hide<br />
function change3()<br />
{<br />
parent.left.location="sidebar.html";<br />
parent.rtop.location="topbar.html";<br />
parent.rbottom.location="first.html";<br />
}<br />
//--><br />
</SCRIPT><br />
</head><br />
<body><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"javascript:change3()">Click here to enter</A><br />
</body><br />
</html><br />
<br />
see how this works now. the user sees "click here to enter" and then once clicked it loads the main part of the site which has all the content in it. something like that. :)<!--content-->
 
Back
Top