Next Question
RSS
Loading content from one frame to another?
This is one of the most important topics regarding frames...how to have a link from one frame, that when clicked, will load content into another, among other things. By default, when you have a link in one frame, the content that's loaded will be loaded in the same frame.
check this link to learn how to do that in a very simple way with out needing tricks:
http://www.javascriptkit.com/frame2.shtml
---------
Using CSS Styles:
I suspect that CSS fails as a frame replacement. Consider a site with one navigation frame and one content frame. If I understand CSS correctly, the contents of the navigation frame must be replicated in each of the content pages. That can lead to a maintenance nightmare. The situation can be worse: consider a navigation frame that offers three alternative navigation pages, such as a table of contents, a subject index, and a search page. Must each content page have three different versions, one per navigation page? Yow! The headache of exponential potential!
http://www.rdrop.com/~half/Creations/Writings/TechNotes/CSS.html
-------------------
Learn more about Frams on here:
http://www.w3.org/TR/WCAG10-HTML-TECHS/#frames
Extra information and an example:
http://www.discussweb.com/html-css-javascript-coding-techniques/2964-how-do-i-make-link-form-one-frame-update-another-frame.html
interesting discussion I found for you about targeting a like a frame:
http://www.frihost.com/forums/vt-47880.html
Source(s):
http://www.javascriptkit.com/frame2.shtml
http://www.rdrop.com/~half/Creations/Writings/TechNotes/CSS.html
http://www.w3.org/TR/WCAG10-HTML-TECHS/#frames
http://www.discussweb.com/html-css-javascript-coding-techniques/2964-how-do...
http://www.frihost.com/forums/vt-47880.html
Tags: div, html, fram, css
Helpful Answer?
(1)
(0)
Permalink |
Report
Or you could use a service like shutterbug or squarespace that has this already figured out for you, or any number of programs including Lightroom which will generate sophisticated web galleries for you without needing to worry about the code.
It seems a bit silly to re-invent the wheel when this has been done a hundred times before.
Permalink | Report
frame 2 (the content frame)
A really good and reliable CSS grid builder is the YUI CSS Grid Builder
If you want to use tables to create your sites take a look at these sites:
The reasons I would use CSS or tables instead of frames is because:
Good alternatives I would recommend are:
http://www.attackr.com/best-of-the-rest-opensource-image-gallery-software-part-1/
Source(s):
http://developer.yahoo.com/yui/grids/builder/
http://developer.yahoo.com/yui/grids/
http://www.w3schools.com/html/html_tables.asp
http://en.wikibooks.org/wiki/HyperText_Markup_Language/Tables
http://www.attackr.com/best-of-the-rest-opensource-image-gallery-software-p...
Tags: webdesign, webdevelopment, html, css
Helpful Answer?
(3)
(0)
Permalink |
Report
Please see the link for reference.
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_frame_navigation
http://www.w3.org/TR/REC-html40/present/frames.html
Source(s):
W3C and Years of exerpeince
Permalink | Report
Answered Question
M$5
May 21, 2009 01:55 AM
css vs frames
On a frames based web site, I can have a top, bottom, left, and right panel surrounding a central content frame. I can place a hyperlink in any of these spaces and tell it to open another page or a graphic in any other frame by specifying a target frame.
I want to have labels on the left panel linked to photos and display the photos linked to those labels in the center frame.
The best I can do with css is to have the photo open in a new page.
Can any of you web experts help me do this in ccs?
I want to have labels on the left panel linked to photos and display the photos linked to those labels in the center frame.
The best I can do with css is to have the photo open in a new page.
Can any of you web experts help me do this in ccs?
- In Web Development |
- |
- Report |
-
Share
RSS
Best Answer Chosen by Asker
| May 21, 2009 11:44 AM |
This is one of the most important topics regarding frames...how to have a link from one frame, that when clicked, will load content into another, among other things. By default, when you have a link in one frame, the content that's loaded will be loaded in the same frame.
check this link to learn how to do that in a very simple way with out needing tricks:
http://www.javascriptkit.com/frame2.shtml
---------
Using CSS Styles:
I suspect that CSS fails as a frame replacement. Consider a site with one navigation frame and one content frame. If I understand CSS correctly, the contents of the navigation frame must be replicated in each of the content pages. That can lead to a maintenance nightmare. The situation can be worse: consider a navigation frame that offers three alternative navigation pages, such as a table of contents, a subject index, and a search page. Must each content page have three different versions, one per navigation page? Yow! The headache of exponential potential!
http://www.rdrop.com/~half/Creations/Writings/TechNotes/CSS.html
-------------------
Learn more about Frams on here:
http://www.w3.org/TR/WCAG10-HTML-TECHS/#frames
Extra information and an example:
http://www.discussweb.com/html-css-javascript-coding-techniques/2964-how-do-i-make-link-form-one-frame-update-another-frame.html
interesting discussion I found for you about targeting a like a frame:
http://www.frihost.com/forums/vt-47880.html
Source(s):
http://www.javascriptkit.com/frame2.shtml
http://www.rdrop.com/~half/Creations/Writings/TechNotes/CSS.html
http://www.w3.org/TR/WCAG10-HTML-TECHS/#frames
http://www.discussweb.com/html-css-javascript-coding-techniques/2964-how-do...
http://www.frihost.com/forums/vt-47880.html
| Asker's Rating: |
• Thanks.
I learned a lot more than I expected from this question.
Yours was the only one that actually answered the question I asked.
The code in the example http://www.frihost.com/forums/vt-47880.html
with a very slight modification should do exactly what I need.
I learned a lot more than I expected from this question.
Yours was the only one that actually answered the question I asked.
The code in the example http://www.frihost.com/forums/vt-47880.html
with a very slight modification should do exactly what I need.
Tags: div, html, fram, css
Helpful Answer?
(1)
(0)
Helpful: williamwaco
Tip hishaman for this answerOther Answers (5)
May 21, 2009 03:06 AM
I don't know about css, but you can use javascript to change the source image of an image tag. You'd have a page with an image on it, and you'd have a link or button somewhere with a bit of javascript attached to it. The script would change the source image and the image would change accordingly. Or you could use a service like shutterbug or squarespace that has this already figured out for you, or any number of programs including Lightroom which will generate sophisticated web galleries for you without needing to worry about the code.
It seems a bit silly to re-invent the wheel when this has been done a hundred times before.
Permalink | Report
May 21, 2009 08:12 AM
I wouldn't use frames at all. Instead of frames I would use a CSS grid or tables. The main reason is because a link in frame 1 (the left frame) cannot change the content of frame 2 (the content frame)
A really good and reliable CSS grid builder is the YUI CSS Grid Builder
If you want to use tables to create your sites take a look at these sites:
- http://www.w3schools.com/html/html_tables.asp
- http://en.wikibooks.org/wiki/HyperText_Markup_Language/Tables
The reasons I would use CSS or tables instead of frames is because:
- A link in one frame cannot change the content of another frame. This is a build in security mechanism. All you can do is open a new window and change that content.
- frames are ugly, 1999 called they want their frames back ;-)
Good alternatives I would recommend are:
- YUI Carousel http://developer.yahoo.com/yui/examples/carousel/csl_selection.html
- Galleria http://devkick.com/lab/galleria/
http://www.attackr.com/best-of-the-rest-opensource-image-gallery-software-part-1/
Source(s):
http://developer.yahoo.com/yui/grids/builder/
http://developer.yahoo.com/yui/grids/
http://www.w3schools.com/html/html_tables.asp
http://en.wikibooks.org/wiki/HyperText_Markup_Language/Tables
http://www.attackr.com/best-of-the-rest-opensource-image-gallery-software-p...
Tags: webdesign, webdevelopment, html, css
Helpful Answer?
(3)
(0)
Helpful: infomaven, imadrid, williamwaco
Tip arjo for this answer
May 21, 2009 09:22 AM
- Fact Refuted
You're totally wrong about frames. A link in one frame can change the contents of another frame. It's kinda the whole point to frames. It means you can have one frame with navigation links, and when you click on one, another frame can have it's contents changed. This is what the asker said he could already do.
In fact, you can implement a gallery using frames without any javascript or css. It's kinda neat really... if you're concerned about security then an javascript free implimentation using frames would be much better that a frame free implimentation that relied on a lot of code.
For whatever reason, frames never really took off, and javascript was implemented in browsers at about the same time. People could do tricks with javascript (like the one I mentioned) and so for whatever reason javascript took off and frames didn't. I always thought that frames were a great idea, but they are considered old fashioned, so nobody wants to use them anymore. Plenty of old-fashioned things are good.
Other than that, it looks like you've provided a lot of useful links there.
Report
In fact, you can implement a gallery using frames without any javascript or css. It's kinda neat really... if you're concerned about security then an javascript free implimentation using frames would be much better that a frame free implimentation that relied on a lot of code.
For whatever reason, frames never really took off, and javascript was implemented in browsers at about the same time. People could do tricks with javascript (like the one I mentioned) and so for whatever reason javascript took off and frames didn't. I always thought that frames were a great idea, but they are considered old fashioned, so nobody wants to use them anymore. Plenty of old-fashioned things are good.
Other than that, it looks like you've provided a lot of useful links there.
May 24, 2009 03:06 AM
There is an enormous amount of really good stuff in this answer. I really like that grid builder.
Unfortunately none of it solves the original question or offers an alternative.
Report
Unfortunately none of it solves the original question or offers an alternative.
May 21, 2009 07:54 PM
Ok I want to make sure I get this clear. You want to use css to open up a picture in your main frame from your left side frame. First of all I have to say CSS is used for styling your site, not putting in links. It makes your text look pretty. http://en.wikipedia.org/wiki/Cascading_Style_Sheets. To answer your question you need to change your attributes in your image or text Please see the link for reference.
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_frame_navigation
http://www.w3.org/TR/REC-html40/present/frames.html
Source(s):
W3C and Years of exerpeince
Permalink | Report
Answer this Question
Related Questions
cute dog competition! jason's bulldogs vs joshu's new puppy! who's got he cutest dogs...
If offered a promotion requiring weekly travel to different areas of the world for 6 ...
Is it possible to apply a different font value per font within one css style? i.e. Ho...
SugarCRM vs. SalesForce.com - What ones better?
If offered a promotion requiring weekly travel to different areas of the world for 6 ...
Is it possible to apply a different font value per font within one css style? i.e. Ho...
SugarCRM vs. SalesForce.com - What ones better?
Ask a Question
Buy Mahalo Dollars with Credit Card or PayPal
Top Members
Most Popular Tags
Categories
- Anonymous
- Arts & Design
- Beauty & Style
- Books & Authors
- Business
- Cars & Transportation
- Consumer Electronics
- Coupons Deals
- Education
- Entertainment
- Environment
- Fitness
- Food & Drink
- From Email
- From Iphone
- From Twitter
- Health
- History
- Hobbies
- Home & Garden
- How Tos
- Humor
- Jobs
- Legal
- Local
- Love & Relationships
- Mahalo Answers Community
- Money
- Music
- News
- NSFW
- Parenting
- Pets
- Science & Mathematics
- Services
- Shopping
- Social Science
- Society & Culture
- Sports
- Technology & Internet
- Travel
- Video Games
Welcome New Members
- sagiraju, November 27, 2009 11:00 PM
- 2cute, November 27, 2009 10:59 PM
- nancidechancebr..., November 27, 2009 10:50 PM
- aoliheliahelihe..., November 27, 2009 10:45 PM
- aoliheliahelihe..., November 27, 2009 10:45 PM
Mahalo Dollars are the currency of Mahalo Answers.
Each Mahalo Dollar costs $1.
Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More
Otoh, you could do with with dhtml.