Log in

View Full Version : Iframes Help



mikeyjai
04-02-2008, 02:46 PM
Hey there,
Lol I am fairly new to html and probably missing some basic skills with html. There is a problem that im faced with. Iframes!! Well, so far i've been poking around the internet lookin for solutions and i haven't actually gotten a solution. Ok let me define my problem :)

So I basically used iframes because i found it much easier to resize and edit without running through each html page. Anyhow. My layout is composed of a table with an iframe in each cell. The Layout is a standard header, 2 navigation side bars, middle content, footer. That is how the table is divided. The problem that im faced with is how can i get my navigation bars to load their links/content in the middle content iframe? Umm i hope this will help in clarifying my problem. www.naruto-hero.zxq.net/index.html. Yea and sorry, I've heard how frames are better but i don't know how to fix their size. They always expand fully on any resolution and i don't know how to lock it to the size i want. :( Anyone help would b appreciated. Thanks!!

Medyman
04-02-2008, 03:07 PM
Yea and sorry, I've heard how frames are better but i don't know how to fix their size.

WHAT ?!? No, no, no....frames aren't better than anything.

I understand that this one a new thing for you (websites and HTML, et. al) but you're really techniques that are frowned upon in our line of work -- iframes and tables.

You should really be using CSS and actually link to a certain page (instead of pulling it into the iframe).

You could use this CSS layout to mimic what you have, for starters.

But if you must use iframes and tables *eeek*, then become familiar with the iframe attributes (http://www.w3schools.com/TAGS/tag_iframe.asp) and the target attribute (http://www.w3schools.com/tags/tag_a.asp) of the anchor class.

HTH

mikeyjai
04-02-2008, 03:20 PM
Hmmm so you suggest i start using css? Lol another problem, i don't know much about css and for css is it all coding or can i drag and drop like html? also how can i mimic wat i've done? Is there a way edit my navigation bars all at once just using css? or will i have to start another different coding. awww so much!!! my heads goin to explode soon :(

mikeyjai
04-02-2008, 03:29 PM
Ahhh!!! i figured a solution based on your comment!!! =D instead of tryin to load it into the middle content iframe, i can simple use _top and open it in the full window. However my pages will need to use the same template!!! thanks! =D

molendijk
04-02-2008, 03:43 PM
The problem that im faced with is how can i get my navigation bars to load their links/content in the middle content frame?

Give your middle iframe a name and reference it using that name. Something like:
<iframe name="middle" etc.></iframe>
<a href="bla.html" target="middle">link</a>
Arie Molendijk.

mikeyjai
04-02-2008, 03:59 PM
Thanks :D but that didn't work cuz the page is basically made up of iframes. :D so basically

<a href="bla.html" target="middle">link</a>

that command is attempting to find the "middle" on the same page it's on; however, note that the template page is composed of all iframes so there's no way the command can find middle on it's own page. But i solved this by using the template on every page thanks!!!

GesicOne
04-12-2008, 05:46 AM
Hello:

I believe my issue is related and wondered if you could possibly define a solution.

On my site, I am pulling in an ad for a product using a script from Amazon. On the page, I have an iframe setup to receive all links using <base target="mainwindow">. All of my href links work fine, but each of the scripts used on the page appear to be pointed to a "_top" reference that must be built in with the amazon script.

Is there any way to point the resulting page to the iframe?

Thank you

molendijk
04-13-2008, 08:53 PM
On my site, I am pulling in an ad for a product using a script from Amazon. On the page, I have an iframe setup to receive all links using <base target="mainwindow">. All of my href links work fine, but each of the scripts used on the page appear to be pointed to a "_top" reference that must be built in with the amazon script.

Is there any way to point the resulting page to the iframe?

Thank you
That probably means that the Amazon scripts contains some lines that make the hrefs appear on top. Do you have a link to your site?
---
Arie Molendijk.