I have a simple thumbnail viewer script on the following page. The thumb opens on my computer but not on the other two computers I've tried with pop-up blocking off, it flashes and then says about
: blank. the thumb should open in larger window titled sculpture viewer. Okay so I'm assuming that was happening on xp now I'm on a fourth computer, ie6, and downloaded the latest version of java (I don't know if that matters) now sometimes the sculpture images open like theyre supposed to, other times it opens about
:blank. and I get the following error message : (also if I refresh the page the thumb will work once)
Line: 23
Char: 1
Error: Object Required
Code: 0
URL:
http://www.sculpture-in-metal.com/ca...re/family.html
Here are the first lines:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/pictpagetemplate.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Anders Jennerberg (anders@katedral.se) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!!
http://javascript.internet.com -->
<!-- Begin
function ViewImage(ifile,ix,iy,ititle) {
var win;
var sWidth;
var sHeight;
var NS = (document.layers) ? 1 : 0;
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");
if (NS) {
sWidth = win.innerWidth;
sHeight = win.innerHeight;
} else {
sWidth = win.document.body.clientWidth;
sHeight = win.document.body.clientHeight;
}
if(sWidth!=ix || sHeight!=iy) {
win.close();
setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250);
return;
}
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
win.document.write("<img src="+ifile+"></div></body></html>");
win.document.close();
}
// End -->
</script>
and then thumbnails are as follows on a single line:
<td width="138" height="55"><div align="left"><a href="javascript
:ViewImage('../images/sculpture-original/096.jpg',400,599,'Sculpture Viewer')"><img src="../images/sculpture-thumbs-compressed/096_Cast_Bronze_Sculpture_Metal_Family_Thumb.jpg" width=65 height=97 border=1></a> </div></td>