|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
|
I am making a webpage and I want to know how to have another webpage load inside of a frame on my page. How do I do this? If you can could you please include some sample code and explain it. Im a newbie to html. Thanx
|
|
|
|
|
|
#2 |
|
Member (13 bit)
|
Basically, your index page will be a couple lines of code. All you need is the (frameset) tag, defining your two or three or whatever number of frames, specifying their targets, and naming them.
From that point on it's simple. To each link you simply need to add a target="whaeverframe" to get the link to open in the correct frame. Would look something like this... (a href="http://www.pcmech.com" target="display")blah(/a) The "display" location would be named in your "frameset" tag on your index page, which would look something like... (frameset cols="20%, 80%") (frame src="http://www.pcmech.com/toolbar.html name="toolbar") (frame src="http://www.pcmech.com/display.html name="display") Frame src parameters are processed in order, so "toolbar" will become the 20% frame, and "display" will become the 80% frame. You could also go with three frames, in which case you could do... (frameset cols="20%, 80%") (frame src="http://www.pcmech.com/toolbar.html") (frameset rows="34%, 66%") (frame src="http://www.pcmech.com/top.html" name="topframe") (frame src="http://www.pcmech.com/low.html" name="lowframe") (/frameset) (/frameset) Again, they're processed in order, so this would leave a toolbar on the left, and two frames separated horizontally on the right, giving you three frames. In essence the first (frameset) tag splits the entire page, then 20% is specified as "toolbar", then the second (frameset) tag splits the remaining 80% which is specified as "topframe" and "lowframe". Just gotta train yourself to think like the browser thinks to get the hang of it. The "top.html", "low.html", and "display.html" pages don't need to have anything in them except standard opening and closing (html) and (body) tags, though you could put anything in them for a default page. Otherwise, you'll just see a blank screen in those frames until you click on a link that opens something in them. So, from this point, you'll specify in each link what frame the link should open into, either "toolbar" or "display" or "topframe" or "lowframe", depending on what you named each frame and how you set things up. And of course, the parentheses are there cause the board is taking html, so modify properly if you cut and paste. ![]() Simple enough then? Xayd [This message has been edited by Xayd (edited 06-13-2000).] |
|
|
|
|
|
#3 |
|
Member (11 bit)
Join Date: Apr 1999
Location: Quebec, Canada
Posts: 1,269
|
Hi nikerw,
Check your email. I have sent you 5 html pages (very simple ones) that will allow you to have 2 frames, a mainmenu page, and 3 pages to load in the mainframe from the mainmenu. Here is a sample of a web site that I created for a customer, which uses 3 frames. http://www.midvalleymotel.com ------------------ Rick >> -- << The solutions to todays problems, Are the problems of tomorrow. RH WebWorx - Site Creators [This message has been edited by Rick Hall (edited 06-13-2000).] [This message has been edited by Rick Hall (edited 06-13-2000).] |
|
|
|
|
|
#4 |
|
Member (8 bit)
|
Thanks, I have it figured out now.
------------------ If you are interested in making $5 an hour from 14 different companies while you are asleep, at school, work or while you are surfing the net go to my site. http://www.homestead.com/nikerw/money.html |
|
|
|
|
|
#5 |
|
Member (12 bit)
|
nikerw, have you been paid for using the Desktop Horizon...I just signed up under you because alladvantage start screwing me over...
email me and tell. vontar@campbellcounty.com ------------------ quote:MY icq number is 1356209 Some people hate computers. Computer Bash 2000 Or maybe they took my advise...
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|