How do I code a page within a page?
Like, for example, on fapchan if you click on an external link the navbar and fap chan stuff stays, and on the url you're still on fapchan but the link opens up inside of fapchan.
How do I do that?
tl;dr
A webpage displayed within a certain part of another webpage, how?
HTML Help
Started by: Schwa | Replies: 17 | Views: 1,229
Aug 31, 2008 11:51 PM #240693
Aug 31, 2008 11:57 PM #240701
Use frames. Unless you're good at CSS. If you need more specific help and can whip up an example.
Sep 1, 2008 12:01 AM #240705
I remember reading somewhere about how to do it. But yeah, I'm sure it has something to do with frames.
Sep 1, 2008 12:03 AM #240709
http://www.w3schools.com/HTML/html_frames.asp
Here, instead of making a whole new example, here's an internet tut.
Just remember to specify the target of the link. Ex: target=main, etc.
Here, instead of making a whole new example, here's an internet tut.
Just remember to specify the target of the link. Ex: target=main, etc.
Sep 1, 2008 12:08 AM #240712
Quote from SawcUse frames. Unless you're good at CSS. If you need more specific help and can whip up an example.
>.>
I may have skipped the frames section in my html/css book.
<.<
So here's the basic layout for the site.
http://randomocity.x10hosting.com/forums.html
And I want the forums (which I'll use a free hosting site to get because I feel like cheating) to appear in the gray box.
Sep 1, 2008 12:12 AM #240714
So you understand now? or would you like me to make that example?
EDIT:
I forgot to mention, you need to be careful with this. If someone visits the site with a browser that doesn't support frames, then they won't be able to see it. That's why most sites use CSS.
EDIT:
I forgot to mention, you need to be careful with this. If someone visits the site with a browser that doesn't support frames, then they won't be able to see it. That's why most sites use CSS.
Sep 1, 2008 12:15 AM #240716
Quote from SawcSo you understand now? or would you like me to make that example?
I am unsure of my intentions.
I guess I'll try and do it myself, and in a few hours if I can't do it I'll beg you for help.
EDIT*
How would I do this with CSS, as that seems to be the more practical approach to this.
Sep 1, 2008 12:19 AM #240718
I can't help you with that, as I don't know much CSS myself. The whole point of CSS, however, is for this exact thing. To have a layout with different documents. I just used frames on my website.
Sep 1, 2008 12:25 AM #240720
Quote from SawcI can't help you with that, as I don't know much CSS myself. The whole point of CSS, however, is for this exact thing. To have a layout with different documents. I just used frames on my website.
I thought the whole point of CSS was to be able to arrange and decorate your document in a way that cleans up the HTML code and makes it easier to edit things.
I'll just go check out frames.
Edit*
Hey, while I have this thing open, how do you put the image thing that appears next to the name of the site in tabs?
Sep 1, 2008 1:08 AM #240745
That's called a Favicon. You make a 16x16 icon, and save it as favicon.ico. Then you upload it to the main directory of your site via your FTP program, and it should automatically be showing up from then on.
Sep 1, 2008 1:55 AM #240771
CSS does not have the ability to create frames. Also, if you don't want to cut up your entire page into frames, you can use iframes (inline frames).
All modern browsers (IE,FF,Opera) support frames. Unless you're making a commercial site and need support for all users, I wouldn't worry about it.
Also, for the icon in the menu bar, your need to add this to your page header:
*Edit*
And your page doesn't resize. :(
All modern browsers (IE,FF,Opera) support frames. Unless you're making a commercial site and need support for all users, I wouldn't worry about it.
Also, for the icon in the menu bar, your need to add this to your page header:
*Edit*
And your page doesn't resize. :(
Sep 1, 2008 2:08 AM #240784
Quote from darkcampaingerCSS does not have the ability to create frames. Also, if you don't want to cut up your entire page into frames, you can use iframes (inline frames).
All modern browsers (IE,FF,Opera) support frames. Unless you're making a commercial site and need support for all users, I wouldn't worry about it.
Also, for the icon in the menu bar, your need to add this to your page header:
*Edit*
And your page doesn't resize. :(
Yeah, for some reason I thought it would be a good idea to use absolute positioning instead of the other ones. It works perfectly fine for full screen browsing but otherwise it doesn't work.
I'll fix it.
Sep 2, 2008 2:29 AM #242303
Alright Sawc, could you code me up an example.
Because my html/css book isn't being much help right now.
Because my html/css book isn't being much help right now.
Sep 2, 2008 4:10 AM #242387
you can do that with php.
i did it with my uploader...
i did it with my uploader...
Sep 2, 2008 4:18 AM #242404
Quote from zymnyou can do that with php.
i did it with my uploader...
That's wonderful, especially because I don't know any php.