iframe vapros

2 отговора 118 прегледа
#1

iframe vapros

Golyam fen sum na iframes,no za sajalenie poddrujkata im e nepulna. Koi brauzari poddurjat iframes

Отговор
в отговор на hardroker #2

Мисля е достатъчно :)

IFRAME object (Object/HTML)

An object that represents an <IFRAME> tag.

Availability:
DOM level - 1
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0

Inherits from:
Element object

JavaScript syntax:
IE - myIFRAME = myDocument.all.anElementID
IE - myIFRAME = myDocument.all.tags("IFRAME")[anIndex]
IE - myIFRAME = myDocument.all[aName]
- myIFRAME = myDocument.aName
- myIFRAME = myDocument.getElementById(anElementID)
- myIFRAME = myDocument.getElementsByName(aName)[anIndex]
- myIFRAME = myDocument.getElementsByTagName("IFRAME")[anIndex]

HTML syntax:
<IFRAME> ... </IFRAME>

Argument list:
anIndex - A reference to an element in a collection
aName - An associative array reference
anElementID - The ID value of an Element object

Object properties:
align, dataFld, dataSrc, frameBorder, frameSpacing, height, hspace, longDesc, marginHeight, marginWidth, name, noResize, scrolling, src, tabIndex, vspace, width

Event handlers:
onClick, onDblClick, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp

An <IFRAME> is a special MSIE supported tag that introduces an inline frame into a document that appears like a block structured element within the document text flow, accessible as a named frame object that belongs to the document.
Its properties appear to be all read-only in the MSIE browser. Changing them seems to have no visible effect at all. The properties belonging to the object retain the values that you assign and return them when requested but the display does not change.
The DOM level 1 specification refers to IFRAME objects as IFrameElement objects and this makes them available in Netscape by virtue of its support for DOM level 1.
DOM level 2 adds the contentDocument properties.

Warnings:
Netscape does not support the <IFRAME> tag prior to version 6.0, but it does support an <ILAYER> tag, which describes an inline layer which is not the same thing but may provide a way to emulate the <IFRAME> functionality in some cases.
MSIE seems to have trouble locating an IFRAME object in the document hierarchy, and you cannot refer to the object directly in the same way that you can with other objects.
With an IFRAME object whose ID is "MYFRAME" this accessor works:

document.all.MYFRAME

But these accessors don't:

document.MYFRAME
MYFRAME

Even worse, the IFRAME appears to float in some separate plane to its containing object. Placing an <IFRAME> inside a <DIV> block exhibits some very strange behavior. Its position seems locked to the top left of the <DIV> but its right edge seems to be able to flow outside the <DIV> area.

Netscape 6.0, which implements IFRAME objects, does not appear to fare any better, exhibiting similarly strange behavior.

There are three determined states the cat could be in: Alive, Dead, and Bloody Furious.
Отговор

Списъкът не се зареди. Опитайте отново.

Зареждане…

Няма клуб с това име