Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-12-2000, 08:20 AM   #1
Member (8 bit)
 
nikerw's Avatar
 
Join Date: Jun 1999
Location: Valley Center and Manhattan, KS
Posts: 135
Send a message via AIM to nikerw
Question

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
nikerw is offline   Reply With Quote
Old 06-13-2000, 12:15 AM   #2
Member (13 bit)
 
Xayd's Avatar
 
Join Date: Jun 2000
Location: nowhere.com
Posts: 4,820
Send a message via AIM to Xayd
Post

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).]
Xayd is offline   Reply With Quote
Old 06-13-2000, 05:10 AM   #3
Member (11 bit)
 
Rick Hall's Avatar
 
Join Date: Apr 1999
Location: Quebec, Canada
Posts: 1,269
Post

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).]
Rick Hall is offline   Reply With Quote
Old 06-13-2000, 05:57 AM   #4
Member (8 bit)
 
nikerw's Avatar
 
Join Date: Jun 1999
Location: Valley Center and Manhattan, KS
Posts: 135
Send a message via AIM to nikerw
Post

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

nikerw is offline   Reply With Quote
Old 06-16-2000, 05:21 AM   #5
Member (12 bit)
 
Byte 2.0's Avatar
 
Join Date: Aug 1999
Location: Secret City (Oak Ridge, TN)
Posts: 3,273
Send a message via ICQ to Byte 2.0 Send a message via AIM to Byte 2.0 Send a message via MSN to Byte 2.0 Send a message via Yahoo to Byte 2.0
Question

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:
Sure you can trust the government...
> Just ask an Indian! If you can find one.
MY icq number is 1356209
Some people hate computers.
Computer Bash 2000
Or maybe they took my advise...
Byte 2.0 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are On



All times are GMT -5. The time now is 05:45 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.1