Results 1 to 8 of 8

Thread: Iframes Help

  1. #1
    Join Date
    Apr 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframes Help

    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!!

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by mikeyjai View Post
    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 and the target attribute of the anchor class.

    HTH

  3. #3
    Join Date
    Apr 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Apr 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  5. #5
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by mikeyjai View Post
    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:
    Code:
    <iframe name="middle" etc.></iframe>
    <a href="bla.html" target="middle">link</a>
    Arie Molendijk.

  6. #6
    Join Date
    Apr 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks but that didn't work cuz the page is basically made up of iframes. 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!!!

  7. #7
    Join Date
    Apr 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  8. #8
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by GesicOne View Post
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •