我无法弄清楚为什么我的弹出窗口中的图像链接似乎被破坏了。我正在处理的页面有一个链接表,每个链接都应该打开一个带有图像和描述的窗口。有人可以告诉我错误可能在哪里吗?
<SCRIPT LANGUAGE="JavaScript">
<!--
var imgName;
function pop(imgName,description)
{
var openWindow=window.open('', 'newwin', 'width=400,height=325,resizable=0,toolbar=0,top=35,left=115');
openWindow.document.write('<HTML>')
openWindow.document.write('<HEAD>')
openWindow.document.write('<TITLE> </TITLE>')
openWindow.document.write('</HEAD>')
openWindow.document.write('<BODY BGCOLOR=#ffffff TOPMARGIN=0 MARGINHEIGHT=0 LEFTMARGIN=0 MARGINWIDTH=0 onBlur="window.close()">')
openWindow.document.write('<CENTER>')
openWindow.document.write('<A HREF="javascript:window.close()"><IMG SRC="images/parkimages/mapphotos/memorial_mapPhotos/'+imgName+'.jpg" BORDER=0></A><BR>')
openWindow.document.write(description)
openWindow.document.write('</CENTER>')
openWindow.document.write('</BODY>')
openWindow.document.write('</HTML>')
}
// -->
</SCRIPT>
<tr>
<table width="600" border="0" cellpadding="0">
<td width="150"><a href="javascript:pop('mlrp_a1','Site A1')"title="Site A1"/>Site A1</a></td>