PDA

View Full Version : Experts for IFRAME/ILAYER commands?



Stary
December 10th, 2002, 06:48
Can somebody tell me how to make a compatible page with IFRAME and ILAYER commands. I'd like to make a page which is visible for IE (what works perfect) and also for Netscape 4.x users.
I've made a test page

http://nejc.port5.com

There is a sample that works in IE and doesn't in Netscape. What did I do wrong?

Thank's, Stary.

Dusty
December 10th, 2002, 10:10
The iFrame/iLayer is fine, it's the JavaScript you've got a problem with. Document.all.myframe.src is IE proprietary. Mozilla, Netscape 6 & 7, IE 6 (maybe 5), and I think Opera use the correct document.getElementById('myframe').src. Netscape 4 just uses document.myframe.src.

zoobie
December 16th, 2002, 00:52
Remember iframes are for IE6, NS7, and Opera which only cover 73% of all users. :D

[oops...my 1000th post...my bad ogre2]