Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: Javascript and tables
From: PeaceFire Maji
Date: Tue, 30 Jun 1998 18:49:20 +0100

There is a bug with the images array when a table is involved. When an
<img> tag appears in a table cell in Netscape 3, two Javascript Image
objects are created, when in <img> tag is in a table nested within a
table, four Image objects are created. Only the last object for an <img>
tag has a working src attribute- so don't use document.images[].
Instead, name the images and refer to them by name. When more than one
image is has the same name, Javascript sets up an array. Again, it's
only the last object to have a working src. So you'd use:
document.bird[1] not document.bird[0] to refer to an image in a table.
Hope that helps.

Sorry it wasn't Flash related...

peacefire maji
vision style


------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: Javascript and tables, Stumpy

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]