| Hi,
I use HTTrack for some months and I just face a problem on JS.
On a page there is the script below to load an image.
The page is called with the path of the image as variable.
And HTT does not get the image but just error.gif.
Is there any way for HTT to interpret the script ? It looks like it just
cannot execute the script.
Thx
Sid
function imageError(theImage) {
theImage.src = 'error.gif';
}
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
alert('Query Variable ' + variable + ' not found');
}
document.write('<div id="imgGal"><center><img
src="'+getQueryVariable("image")+'" border="0" onError="imageError(this)"
onAbort="imageError(this)"></center></div>');
</script>
<noscript>
To view the images in fullsize you need a javascript capable browser.
</noscript>
| |