Hi,
with reference to DOM code ‘document.appendChild(this.image);’
which runs OK only in IE5 plus
I am trying to find out how to replace this with a DOM code that will work in Mozolla {Netscape} browsers as well as IE6
I think from Google search that the solution is somethinfg along the lines of using the ‘document.getElementByID(‘this.image’),
I have been using [url]http://www.quirksmode.org/dom/w3c_core.html
but from testing the code is not complete & I’m still note there and getting rather stuck.
Any tips help appreciated. actual code is on line 80 odd below
Regards
MArk
this javascript is part of [url]http://www.malden-dsme.co.uk/slideshow.htm
the code below is called by external javascript call.
{had to attach javascript code here as upload would not work for some reason.}
Part of js Code as follows
function ImagePair( _file )
{
// The ImagePair object’s purpose is to
// keep track of the image and the file that identifies it;
// we do this because the image’s src attribute will read back
// as uuencoded if interrogated, meaning that, to see if a
// particular image exists in the cache, we need to uuencode
// again. It seems easier just to store the path in unencoded
// form, along with the image associated with it.
this.file =
this.image = new Image();
// Add the image to the document; if you don’t, readystatechange
// events won’t know where they originated, meaning that
// event.srcElement will be null
[COLOR=Red]//document.appendChild(this.image);
document.getElementByID(‘this.image’)[/COLOR]
}