如何才能在我打开的窗口中设置好背景图片呢?
试了好久没有用,
代码如下:
OpenWindow=window.open("", "newwin", "height=100, width=400,toolbar=no,scrollbars='+scroll+',menubar=no,top=500,left=400"); //写成一行
OpenWindow.document.write("<html>");
OpenWindow.document.write("<head>");
OpenWindow.document.write("<TITLE>例子</TITLE>");
OpenWindow.document.write("</head>");
OpenWindow.document.write("<BODY style='BACKGROUND-IMAGE: url(file:///C:\Inetpub\wwwroot\javajpg\背景screenchoice.jpg)'><form name='form2'>");
OpenWindow.document.write("<br>");
结果这样设置没有反应?请大家指点一下. OpenWindow.document.write("<input type='radio' name='channel' value='1' >");
OpenWindow.document.write("<input type='radio' name='channel' value='2' >");
OpenWindow.document.write("<input type='radio' name='channel' value='4' >");
OpenWindow.document.write("<input type='radio' name='channel' value='8' >");
OpenWindow.document.write("<br>");
OpenWindow.document.write("<input type='button' name='confirm' value='confirm' onclick='opener.covertnumber()'>");
OpenWindow.document.write("<input type='button' name='cancel' value='cancel' onclick='window.close()'>");
OpenWindow.document.write("</form2></BODY>");
OpenWindow.document.write("</HTML>");
OpenWindow.document.close();
试了好久没有用,
代码如下:
OpenWindow=window.open("", "newwin", "height=100, width=400,toolbar=no,scrollbars='+scroll+',menubar=no,top=500,left=400"); //写成一行
OpenWindow.document.write("<html>");
OpenWindow.document.write("<head>");
OpenWindow.document.write("<TITLE>例子</TITLE>");
OpenWindow.document.write("</head>");
OpenWindow.document.write("<BODY style='BACKGROUND-IMAGE: url(file:///C:\Inetpub\wwwroot\javajpg\背景screenchoice.jpg)'><form name='form2'>");
OpenWindow.document.write("<br>");
结果这样设置没有反应?请大家指点一下. OpenWindow.document.write("<input type='radio' name='channel' value='1' >");
OpenWindow.document.write("<input type='radio' name='channel' value='2' >");
OpenWindow.document.write("<input type='radio' name='channel' value='4' >");
OpenWindow.document.write("<input type='radio' name='channel' value='8' >");
OpenWindow.document.write("<br>");
OpenWindow.document.write("<input type='button' name='confirm' value='confirm' onclick='opener.covertnumber()'>");
OpenWindow.document.write("<input type='button' name='cancel' value='cancel' onclick='window.close()'>");
OpenWindow.document.write("</form2></BODY>");
OpenWindow.document.write("</HTML>");
OpenWindow.document.close();
解决方案 »
- GridView中编辑状态CheckBox的OnCheckedChanged事件
- treeview获取节点ID
- Forms表单身份验证的web.config配置问题
- 自动列宽最大显示,不换行的问题 ********100分送出************
- 问题:数据库连接?请教!
- 问一个css中的li的问题。很简单的问题。在线等。马上结帖。
- ComboBox控件的问题!
- sql语句为什么不能执行
- 前沿研究:asp.net与svg开发!高手关注!
- 简单问题 asp.net中 如何使用组件?
- 没有DB的的VS.NET,我该怎么办啊?
- 如何在页面中获得当前我的接收字节速度?如,300KB/S^在线等……解决就结贴
这里的路径不能是“绝对路径”呀!
OpenWindow.document.write("<BODY style='BACKGROUND-IMAGE: url(http://myHost/背景screenchoice.jpg)'><form name='form2'>");