primary0 wrote:
... more, the source of the page just shows the path to the external
script and not the source of the image loaded by that script. Another
external script is supposed to read that image file name (perhaps with
a timer, so that it can wait until the image is fully loaded). I hope
this makes clear the issue in hand.
there is no mystery in JavaScript
certainly the path of image is somewhere
see in the page where the image is
if by chance this img has a name or/and an id
you'll can catch it's refs
Let's suppose it's id and/or name are 'foo'
function pathImg() {
var P = (document.images && document.images['foo'])?
document.images['foo'].src :
(document.getElementById && document.getElementById('foo'))?
document.getElementById('foo').src :
'';
if(P=='') alert('not found')
else alert('Path =\n'+P);
}
can try too :
function getAllPathImg(){
var P='';
var I=document.images;
for(var i=0;i<I.length;i++) P += I[i].src+'\n';
foo=window.open();
with(foo.document) {open();write('<pre>'+P+'<\/pre>');close();}
}
and, in the popup, try to find your image
--
Stephane Moriaux et son [moins] vieux Mac