The MSIE and Netscape browsers each maintain an ImageArray object, which is just a special case of the Array object. However, although they both store objects that represent images in that array, those image objects are quite different. For a start, in Netscape they are of the class "Image" while in MSIE they are of the class "IMG" (named after the HTML tag). This is fortunate in a way, because you can use this difference to detect what kind of object you are operating on if you need to perform complex image management activities.
For MSIE image objects refer to the IMG object topic and its properties.
For Netscape Navigator image objects refer to the Image object topic and its properties.
Beware of the differences between the properties that MSIE and Netscape Navigator provide to support image management.
See also: | Collection object, Document.images[], Image object, IMG object |
Property | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
length | 1.1 ![]() | 3.0 ![]() | 3.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
Method | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
item() | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
Prev | Home | Next |
Image preloading | Up | ImageArray.item() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |