04-07-2004, 21:26
|
#1
|
|
Inactive
Join Date: Jun 2003
Services: The wonders of Sky TV BT line and Aquiss.net ADSL cable dies on 5th RIP VM.
Posts: 4,004
|
Help with Frames
This maybe the wrong place to ask but well if it needs moving then please feel free to move this to an appropriate forum.
I am building an ecommerce website for my college course. I was almost finished when I found out I had to use frames as well. I have one page left to do and I am trying to make it frames.
Bad idea I have been hitting my head against a wall of frames ever since. I have some frames working and one still not working. I also have a problem that the buttons that are part of the theme all through the website will link into one frame so if anyone tries to use them while on the frame page the next page is stuck in one of the frames.
Any advice to help solve this would be appreciated.
the link to the page is here
|
|
|
04-07-2004, 21:29
|
#2
|
|
Inactive
Join Date: Jun 2003
Location: 127.0.0.1
Age: 62
Posts: 15,868
|
Re: Help with Frames
Don't know a great deal, but to help others assist, what software are you using to setup your site?
|
|
|
04-07-2004, 21:31
|
#3
|
|
Inactive
Join Date: Jun 2003
Location: Essex innit
Age: 52
Services: Sky HD + 16Mb ADSL
BT Telephone
Posts: 15,735
|
Re: Help with Frames
Hmmm I go caught the same way when I first used frames, linking to the wrong frame. Someone will no doubt explain how to save your frameset and link to it properly and then I'll learn too lol
|
|
|
04-07-2004, 21:38
|
#4
|
|
Inactive
Join Date: Jun 2003
Services: The wonders of Sky TV BT line and Aquiss.net ADSL cable dies on 5th RIP VM.
Posts: 4,004
|
Re: Help with Frames
I have built the whole site in notepad
|
|
|
04-07-2004, 21:39
|
#5
|
|
Inactive
Join Date: Jun 2003
Age: 45
Posts: 14,750
|
Re: Help with Frames
Firstly, with the button problem: To change which frame loads a page when you hit a link, you add this to the html head:
Code:
<base target="framename">
Where framename is obviously the name of your frame. That makes all links on that page open up in framename. If you want to do it on a per-link basis, just add:
Inside the anchor "<a>" tag.
I'm not sure what you mean with your first question, what is wrong with it?
HTH though.
|
|
|
04-07-2004, 21:49
|
#6
|
|
Inactive
Join Date: Jul 2003
Posts: 733
|
Re: Help with Frames
First of all it would look like you need to remove the header graphic and individual buttons from cars.html, company.html, link.html and carriages.html. That will stop them coming up in the frame too.
You then need to enable scrollbars on the frame used for the content...I'll look this up....
EDIT - Include the SCROLLING syntax as follows; <FRAME SRC="whatever" SCROLLING="yes">
|
|
|
04-07-2004, 21:55
|
#7
|
|
Inactive
Join Date: Oct 2003
Location: 2nd CPU to the right & past the cache
Posts: 1,949
|
Re: Help with Frames
Quote:
|
Originally Posted by Paul
Hmmm I go caught the same way when I first used frames, linking to the wrong frame. Someone will no doubt explain how to save your frameset and link to it properly and then I'll learn too lol 
|
I find its easiest to create and test the pages separately, then hand write the frameset page and modify the link urls to load in the appropriate frame.
Here is an OLD (ancient) page of mine using frames
http://meltingpot.fortunecity.com/bl...z/wdwiz_fs.htm
TIP
View source from the browser menu views the frameset source
Left Clicking into a frame then right click and selecting view source,views the source for that frame.
Here are 2 good tutorials for frames
http://www.htmlcodetutorial.com/frames/frames.html
http://www.w3schools.com/html/html_frames.asp
|
|
|
04-07-2004, 22:03
|
#8
|
|
Inactive
Join Date: Jun 2003
Services: The wonders of Sky TV BT line and Aquiss.net ADSL cable dies on 5th RIP VM.
Posts: 4,004
|
Re: Help with Frames
I have a page that I am splitting into 4 frames.
the top frame now loads but the buttons put the rest of the site in one frame. The two middle frames now load.
The fourth the footer will not load.
|
|
|
04-07-2004, 22:10
|
#9
|
|
Inactive
Join Date: Jul 2003
Posts: 733
|
Re: Help with Frames
<frameset rows="170,50%,*">
<frame name="top" scrolling="no" noresize target="middle" src="1.htm">
<frameset cols="*,*"> There should be at least one value/percentage here
<frame name="middle" target="left" src="video.htm" scrolling="no">
<frame name="middle" target="right" src="links.htm">
</frameset>
You need to insert <frame name="bottomframe" etc> here to display your last frame here, then finish with </frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset> This is in the wrong place
|
|
|
04-07-2004, 22:11
|
#10
|
|
Inactive
Join Date: Jun 2003
Services: The wonders of Sky TV BT line and Aquiss.net ADSL cable dies on 5th RIP VM.
Posts: 4,004
|
Re: Help with Frames
Quote:
|
Originally Posted by Alanmelon
First of all it would look like you need to remove the header graphic and individual buttons from cars.html, company.html, link.html and carriages.html. That will stop them coming up in the frame too.
You then need to enable scrollbars on the frame used for the content...I'll look this up....
EDIT - Include the SCROLLING syntax as follows; <FRAME SRC="whatever" SCROLLING="yes">
|
The whole website is using those for navigation and I was trying to keep the theme through the website. Frames werenââ‚ÆšÂ¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚¢t in my original plans but I apparently have to have at least one page to pass.
 Frames
|
|
|
04-07-2004, 22:13
|
#11
|
|
Inactive
Join Date: Jul 2003
Posts: 733
|
Re: Help with Frames
Quote:
|
Originally Posted by Kits
The whole website is using those for navigation and I was trying to keep the theme through the website. Frames werenââ‚ÆšÂ¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚¢t in my original plans but I apparently have to have at least one page to pass.
 Frames 
|
But with it all running from the same index page, the link buttons will be consistent now anyway.
|
|
|
04-07-2004, 22:21
|
#12
|
|
Inactive
Join Date: Jun 2003
Services: The wonders of Sky TV BT line and Aquiss.net ADSL cable dies on 5th RIP VM.
Posts: 4,004
|
Re: Help with Frames
no its still opening all pages in one frame if you use the buttons on the links page
|
|
|
04-07-2004, 22:23
|
#13
|
|
Inactive
Join Date: Jul 2003
Posts: 733
|
Re: Help with Frames
Do you want the pages to open in a whole new browser window? If so, use the code <TARGET="_blank">
Sorry just re-read your posts - am I right in thinking that you want to maintain the link buttons which are present on all the other content pages, but then want them to open in the main browser window, rather than the same frame?
You will still maintain the theme of the site by deleting the buttons on each of those pages, and allowing the user to navigate solely from the links in the top frame.
|
|
|
04-07-2004, 22:35
|
#14
|
|
Inactive
Join Date: Jun 2003
Services: The wonders of Sky TV BT line and Aquiss.net ADSL cable dies on 5th RIP VM.
Posts: 4,004
|
Re: Help with Frames
I havent got one index page each page has the links to the whole site.
I really don't want to mess around with the site too much most is now complete. Its just this frames page that has now been a big headache for a while I tried to cheat using an iframe but was told on this weekend that wouldn't get me a pass.
the website starts here and only the links page that is frames hasn't been added
|
|
|
04-07-2004, 22:48
|
#15
|
|
Inactive
Join Date: Jul 2003
Posts: 733
|
Re: Help with Frames
Well then I guess it all depends how much use you have to make of the frames, you could knock up a quick links page which just fits in as per the frame design below, and target the 'link' link at the top to it.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 17:22.
|