Pour en savoir plus, consultez la documentation d'Adobe. Si la fonction player. Player , ou en utilisant la fonction addEventListener. The new removeEventListener function lets you remove a listener for a specified event.
|Published (Last):||18 October 2012|
|PDF File Size:||6.38 Mb|
|ePub File Size:||16.29 Mb|
|Price:||Free* [*Free Regsitration Required]|
HTML frames allow authors to present documents in multiple views, which may be independent windows or subwindows. Multiple views offer designers a way to keep certain information visible, while other views are scrolled or replaced.
For example, within the same window, one frame might display a static banner, a second a navigation menu, and a third the main document that can be scrolled through or replaced by navigating in the second frame. Setting the rows attribute defines the number of horizontal subspaces in a frameset. Setting the cols attribute defines the number of vertical subspaces. Both attributes may be set simultaneously to create a grid.
If the rows attribute is not set, each column extends the entire length of the page. If the cols attribute is not set, each row extends the entire width of the page. If neither attribute is set, the frame takes up exactly the size of the page. Frames are created left-to-right for columns and top-to-bottom for rows. When both attributes are specified, views are created left-to-right in the top row, left-to-right in the second row, etc. The first example divides the screen vertically in two i.
The next example creates three columns: the second has a fixed width of pixels useful, for example, to hold an image with a known size. For the next example, suppose the browser window is currently pixels high. The second view is specified to be exactly pixels high. This leaves pixels to be divided between the other two frames. Therefore the third frame will be pixels high and the fourth will be pixels high. When underspecified, remaining space should be allotted proportionally to each view.
When overspecified, each view should be reduced according to its specified proportion of the total space. Any document that is the contents of a frame in the frameset may refer to this identifier. The src attribute specifies the initial document the frame will contain. We specify that frame 1 will allow no scroll bars.
Frame 2 will leave white space around its contents initially, an image file and the frame will not be resizeable.
No border will be drawn between frames 3 and 4. Borders will be drawn by default between frames 1, 2, and 3. For information about current practice in determining the target of a frame, please consult the notes on frames in the appendix. Please consult the section on target frame names for information about recognized frame names.
This example illustrates how targets allow the dynamic modification of a frame's contents. First we define a frameset in the document frameset.
Activating either link opens a new document in the frame named "dynamic" while the other frame, "fixed", maintains its initial contents. A frameset definition never changes, but the contents of one of its frames can. Once the initial contents of a frame change, the frameset definition no longer reflects the current state of its frames. There is currently no way to encode the entire state of a frameset in a URI.
Therefore, many user agents do not allow users to assign a bookmark to a frameset. Framesets may make navigation forward and backward through your user agent's history more difficult for users.
When many links in the same document designate the same target, it is possible to specify the target once and dispense with the target attribute of each element. This is done by setting the target attribute of the BASE element. We return to the previous example, this time factoring the target information by defining it in the BASE element and removing it from the A elements. User agents should determine the target frame in which to load a linked resource according to the following precedences highest priority to lowest :.
User agents may provide users with a mechanism to override the target attribute. Authors should supply alternate content for those user agents that do not support frames or are configured not to display frames. The NOFRAMES element specifies content that should be displayed only by user agents that do not support frames or are configured not to display frames.
This allows authors to explain the document's purpose in cases when it is viewed out of the frameset or with a user agent that doesn't support frames. The longdesc attribute allows authors to make frame documents more accessible to people using non-visual user agents. This attribute designates a resource that provides a long description of the frame. Authors should note that long descriptions associated with frames are attached to the frame , not the frame's contents.
Since the contents may vary over time, the initial long description is likely to become inappropriate for the frame's later contents. In particular, authors should not include an image as the sole content of a frame. The following frameset document describes two frames. The left frame contains a table of contents and the right frame initially contains an image of an ostrich:.
Note that the image has been included in the frame independently of any HTML element, so the author has no means of specifying alternate text other than via the longdesc attribute. If the contents of the right frame change e. Thus, authors should not put an image directly in a frame.
Instead, the image should be specified in a separate HTML document, and therein annotated with the appropriate alternate text:. The information to be inserted inline is designated by the src attribute of this element. The contents of the IFRAME element, on the other hand, should only be displayed by user agents that do not support frames or are configured not to display frames.
For user agents that support frames, the following example will place an inline frame surrounded by a border in the middle of the text.
Inline frames may not be resized and thus, they do not take the noresize attribute. See the section on embedded documents for details. It is a comma-separated list of pixels, percentages, and relative lengths. Attributes defined elsewhere id , class document-wide identifiers title element title style inline style information onload , onunload intrinsic events.
This name may be used as the target of subsequent links. This description should supplement the short description provided using the title attribute, and may be particularly useful for non-visual user agents.
Possible values auto: This value tells the user agent to provide scrolling devices for the frame window when necessary. This is the default value. Possible values: 1: This value tells the user agent to draw a separator between this frame and every adjoining frame. Note that separators may be drawn next to this frame nonetheless if specified by other frames. The value must be greater than zero pixels. The default value depends on the user agent. Attributes defined elsewhere id , class document-wide identifiers title element title style inline style information.
Attributes defined elsewhere id , class document-wide identifiers lang language information , dir text direction title element title style inline style information onclick , ondblclick , onmousedown , onmouseup , onmouseover , onmousemove , onmouseout , onkeypress , onkeydown , onkeyup intrinsic events.
This description should supplement the short description provided using the title attribute, and is particularly useful for non-visual user agents. Attributes defined elsewhere id , class document-wide identifiers title element title style inline style information name , src , frameborder , marginwidth , marginheight , scrolling frame controls and decoration align alignment.
Subscribe to RSS
YouTube Player API Reference for iframe Embeds
HTML frames allow authors to present documents in multiple views, which may be independent windows or subwindows. Multiple views offer designers a way to keep certain information visible, while other views are scrolled or replaced. For example, within the same window, one frame might display a static banner, a second a navigation menu, and a third the main document that can be scrolled through or replaced by navigating in the second frame. Setting the rows attribute defines the number of horizontal subspaces in a frameset.
: The Inline Frame element
To embed an image in HTML, when there is only a single image resource, use the img element and with its src and alt attributes. However, there are a number of situations for which the author might wish to use multiple image resources that the user agent can choose from:. The users' zoom level might be different from one another, or might change for a single user over time. A user might zoom in to a particular image to be able to get a more detailed look. The zoom level and the screen pixel density the previous point can both affect the number of physical screen pixels per CSS pixel. This ratio is usually referred to as device-pixel-ratio. The users' screen orientation might be different from one another, or might change for a single user over time.