Are iframes bad to use? What are other options are there?

Discussion in 'HTML & Website Design' started by bananagirl, Apr 29, 2007.

  1. #1
    Is there any alternative to iFRAMES?
    I heard they're not good to use, don't know why though.
    How do you guys do a navigation bar that constrantly changes without an iframe? Don't you have to change each page this way if you want to edit the nav bar?
     
    bananagirl, Apr 29, 2007 IP
  2. == Morgana ==

    == Morgana == Banned

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Iframes are not bad if they serve to your purposes.

    However you need to keep in mind

    1.- provide a link to non-framed between <iframe></iframe>content for those surfers whose browser doesn't support iframes

    2.- add some text between such tag to help with search engine crawling.

    On a side note, Google's Adsense is a javascript code intended to render an iframe advert, so...
     
    == Morgana ==, Apr 29, 2007 IP
  3. imnajam

    imnajam Well-Known Member

    Messages:
    2,389
    Likes Received:
    113
    Best Answers:
    0
    Trophy Points:
    185
    #3
    you may wish to use #include other file on server side scripting.
    IFRAMES are not liked by crawler/bots.

    navigational bars are usually generated from database on runtime.
     
    imnajam, Apr 29, 2007 IP
  4. tristanperry

    tristanperry Well-Known Member

    Messages:
    313
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #4
    I use a PHP file include for a nav. bar - iFrames are very old-school, and search engine bots don't like them at all.
     
    tristanperry, Apr 29, 2007 IP
  5. == Morgana ==

    == Morgana == Banned

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Very old school but as I said, Google and most advertising networks display their publicity this way, using iframes disguised as javascript
     
    == Morgana ==, Apr 29, 2007 IP
  6. tristanperry

    tristanperry Well-Known Member

    Messages:
    313
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #6
    True :) However using a CSS layout w/ includes should be the method used here, nowadays.
     
    tristanperry, Apr 29, 2007 IP
  7. 8everything

    8everything Peon

    Messages:
    16,350
    Likes Received:
    903
    Best Answers:
    0
    Trophy Points:
    0
    #7
    iframes are outdated, what I would use are PHP tables instead. These are easier to use, unlike iframes where you have to set the width and height to make sure scrollbars don't appear.. PHP tables automatically set the right size you need for your table once coded.
     
    8everything, Apr 29, 2007 IP
  8. bananagirl

    bananagirl Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    but how?
    I really want to do an easily editable naviagation bar but I don't know how!
    I'm having tons of trouble with the iframes, it's hard for me to apply css to them......... assistance would be MUCH appreciated..
     
    bananagirl, Apr 29, 2007 IP
  9. Faltzer

    Faltzer Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    iFrames are not recommended by me, and many web designers because search engines easily ignore iFrames. And iFrames promote the use of invalid HTML/XHTML.
     
    Faltzer, Apr 29, 2007 IP