Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-18-2005, 12:43 PM   #1
It can never be too quiet
 
Stryker's Avatar
 
Join Date: May 2004
Location: Burlington, Ontario
Posts: 1,090
Stability of IFRAME and LAYER

Hi all,

I have a rather complex banner on a site I'm putting together right now and I'm wondering about {IFRAME} and {LAYER} stability. I would really like to avoid copying this complex banner to every page, and I don't want to use FRAMES pages. I currently have the following and it seems to work in the browser variations I've tried, but I'm a little weary of things I haven't proven before.

HTML Code:
 <IFRAME SRC="header.htm" style="border: 0px;" width="100%" height="27px" scrolling="no">
        <LAYER SRC="header.htm" style="border: 0px;" width="100%" height="27px" scrolling="no">
        </LAYER>
    </IFRAME>
My theory (which seems to work so far) is that browsers supporting the IFRAME tag will pick it up and display appropriately. Any browser that does not support IFRAME will skip over it and use the LAYER tag.

The big question... is this stable and/or reliable?
Is there a better way to do this without using FRAMES pages?
Thanks very much!
Stryker
__________________
Athlon XP 2800+ • Asus A7N8X (nVidia Nforce2) • Radeon 9600 Pro 256MB • 2x512MB KVR DDR PC3200 Dual Channel • 120GB Seagate 7200RPM 8MB • 160GB WD 7200RPM 8MB • Liteon DVD±RW DL • AOpen DVD±RW DL • Vantec Ion2 350W PSUSend me your picture for the Member Photo Gallery
Stryker is offline   Reply With Quote
Old 02-21-2005, 03:02 PM   #2
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
It will work fine for pretty much all browsers by nesting iframe and layer tags. I've been using it for a while now with no negative effects.
Statica is offline   Reply With Quote
Old 02-21-2005, 03:22 PM   #3
It can never be too quiet
 
Stryker's Avatar
 
Join Date: May 2004
Location: Burlington, Ontario
Posts: 1,090
Thanks Statica... I appreciate the response.
I'll stick with it and see if anyone reports any issues with it.
Thanks again,
Stryker
Stryker is offline   Reply With Quote
Old 02-22-2005, 09:37 AM   #4
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
You're welcome. Just as an addendum, you might be interested to note that the Layer tag is deprecated. IFRAME is the standard as per DOM 2 specifications. Any IE based browser or Gecko browser (Firefox etc) recognize IFRAME. However, including the Layer tag will ensure that users of the older Netscape browsers can still view content.

Addendum: you can view the DOM reference here: http://www.mozilla.org/docs/dom/domr...ame_ref13.html
Statica is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:18 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2