如题,我参考了网上的一些例子,把这些图片切片放到表格里,然后用如下函数实现不了
<script language="javascript">
<!--
function showBox(Msg){
var popMenu,boxText,popX,popY,popWidth,popHeight;
popWidth=211;
popHeight=100;
popX=(screen.width-popWidth)/2;
popX=(screen.height-popHeight)/2;
popMenu=window.open("about","","");
boxText="<html>"+
"<table width=\"211\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">"+
"<tr>"+
"<td width=\"211\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"+
"<tr>"+
"<td height=\"23\"><img src=\"pic/box_top.jpg\" width=\"186\" height=\"23\" /></td>"+
"<td width=\"12%\"><img src=\"pic/box_top_right.jpg\" alt=\"关闭窗口\" width=\"25\" height=\"23\" onClick='self.close();'/></td>"+
"</tr>"+
"</table></td>"+
"</tr>"+
"<tr>"+
"<td height=\"58\" align=\"left\" valign=\"top\"><table width=\"100%\" height=\"132\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"pic/box_mid_bg.jpg\">"+
"<tr>"+
"<td width=\"8%\" rowspan=\"2\"> </td>"+
"<td width=\"85%\" height=\"105\">"+Msg+"</td>"+
"<td width=\"7%\" rowspan=\"2\"> </td>"+
"</tr>"+
"<tr>"+
"<td height=\"16\"><div align=\"center\"><img src=\"pic/box_submit.jpg\" width=\"39\" height=\"19\" /></div></td>"+
"</tr>"+
"</table></td>"+
"</tr>"+
"<tr>"+
"<td height=\"13\"><img src=\"pic/box_bottom.jpg\" width=\"211\" height=\"15\" /></td>"+
"</tr>"+
"</table>";
popMenu.moveTo(popX,popY);
popMenu.resizeTo(popWith,popHeight);
popMenu.writeln(boxText);
}
//-->
</script>
请问该如何来实现这个对话框