代码如下:
<SCRIPT>
function DynaWin(url, h, w, l, t) {
poph = + h + 70
popw = + w + 30
disp = window.open("","pop","height=" + poph + ",width=" + popw + ",left=" + l + ",top=" + t + "");
content = '<HTML>';
content += '<TITLE>弹出窗口</TITLE>';
content += '</HEAD>';
content += '<BODY BACKGROUND="yourfile" onBlur="self.close()">';
content += '<P ALIGN="CENTER">{=GetProductPhoto(300,300)}';
content += '<H3 ALIGN="CENTER"><A HREF="#" onClick="self.close()">关闭窗口</A></H3>';
content += '</BODY></HTML>';
disp.document.write(content);
disp.document.close();
}
</SCRIPT>
//以下是调用部分
<A HREF="#" onClick="DynaWin('Bigphoto', '300', '300', '30', '30')";>{=GetProductPhoto(130,90)}</A>
//调用结束
红色部分是你在新弹出页面里图片需要的长宽,绿色部分是设置弹出窗口的长宽和图片离边框的边距,
你只需要把代码插入商城的内容页里就行了