I'm having some problems making the following work in both Internet
Explorer and Firefox:
http://www.frostjedi.com/terra/scrip...hildNodes.html
What it should do (and indeed, what it does do, in Internet Explorer)
is show a gray box. In Firefox, however, it shows a black box.
To explain the commented out code... I've observed that using the
childNode at index 1 does the samething that in Firefox that both
firstChild and the childNode at index 0 do in Internet Explorer. As
such, the above webpage can be easily made to work in Firefox, but once
done, it won't work in Internet Explorer, and vice versa. I'd like to
make it work in both browsers. Without giving the img element it's own
id.
Any ideas as to how I can do this would be appreciated. Thanks!