<%@language=vbscript codepage=936 %>
<%
option explicit
'**************************************************************
' Software name: PowerEasy SiteWeaver
' Web: http://www.powereasy.net
' Copyright (C) 2005－2009 佛山市动易网络科技有限公司 版权所有
'**************************************************************

'强制浏览器重新访问服务器下载页面，而不是从缓存读取页面
Response.Buffer = True 
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1 
Response.Expires = 0 
Response.CacheControl = "no-cache" 
%>
<HTML><HEAD><title>插入网页文件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="editor_dialog.css">
<script language="JavaScript">
function OK(){
  var str1="";
  var strurl=url.value;
  if (strurl==""||strurl=="http://")
  {
  	alert("请先输入网页文件的地址！");
	url.focus();
	return false;
  }
  else
  {
  str1="<iframe src='"+url.value+"'"
  str1+=" scrolling="+scrolling.value+""
  str1+=" frameborder="+frameborder.value+""
  if(marginheight.value!='')str1+=" marginheight="+marginheight.value
  if(marginwidth.value!='')str1+=" marginwidth="+marginwidth.value
  if(width.value!='')str1+=" width="+width.value
  if(height.value!='')str1+=" height="+height.value
  str1=str1+"></iframe>"
  window.returnValue = str1
  window.close();
  }
}
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
</head>
<body bgColor=#D4D0C8 topmargin=15 leftmargin=15 >
 <table width="100%" border="0" cellpadding="0" cellspacing="2">
  <tr>
   <td>
   <FIELDSET align=left><LEGEND align=left><strong>插入网页文件</strong></LEGEND>
   <table border="0" cellpadding="0" cellspacing="3">
     <tr><td align="right">文件地址：</td><td><input name="url" id=url value='http://' size=35></td></tr>
     <tr>
       <td align=right>滚动条：</td>
       <td>
          <select name="scrolling" id=scrolling>
             <option value=noshade selected>无
	     <option value=yes>有
          </select>&nbsp;&nbsp;&nbsp;边框线：
          <select name="frameborder" id=frameborder>
	     <option value=0 selected>无 <option value=1>有
          </select>
       </td>
      </tr>
      <tr>
        <td align=right>上下边距：</td>
	<td><input name="marginheight" id=marginheight ONKEYPRESS="event.returnValue=IsDigit();" value="0" size=4 maxlength=2>&nbsp;&nbsp;左右边距：<input name="marginwidth"  id=marginwidth ONKEYPRESS="event.returnValue=IsDigit();" value="0" size=4 maxlength=2>
	</td>
      </tr>
      <tr>
       <td align="right">网页宽度：</td>
       <td><input name="width" id=width ONKEYPRESS="event.returnValue=IsDigit();" value=500 size=4 maxlength=4>&nbsp;&nbsp;网页高度：
       <input name="height" id=height ONKEYPRESS="event.returnValue=IsDigit();" value=400 size=4 maxlength=4></td></tr>
    </table>
   </fieldset>
   </td>
   <td width=80 align="center"><input name="cmdOK" type="button" id="cmdOK" value="  确定  " onClick="OK();">
    <br>
    <br>
    <input name="cmdCancel" type=button id="cmdCancel" onclick="window.close();" value='  取消  '>
   </td>
  </tr>
</table>
</body>
</html>


