BVB Source Codes

Pcook CMS bubble guest v3.0 SDCMS version Show iframe.htm Source code

Return Download Pcook CMS bubble guest v3.0 SDCMS version: download iframe.htm Source code - Download Pcook CMS bubble guest v3.0 SDCMS version Source code - Type:.htm
  1. <HTML>
  2. <HEAD>
  3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  4. <script language=javascript src="dialog.js"></script>
  5. <link href='dialog.css' type='text/css' rel='stylesheet'>
  6.  
  7. <script language=javascript>
  8.  
  9. var sAction = "INSERT";
  10. var sTitle = "插入";
  11.  
  12. var oControl;
  13. var oSeletion;
  14. var sRangeType;
  15.  
  16. var sUrl = "http://";
  17. var sScrolling = "";
  18. var sFrameBorder = "0";
  19. var sMarginHeight = "0";
  20. var sMarginWidth = "0";
  21. var sWidth = "500";
  22. var sHeight = "400";
  23.  
  24. oSelection = dialogArguments.eWebEditor.document.selection.createRange();
  25. sRangeType = dialogArguments.eWebEditor.document.selection.type;
  26.  
  27. if (sRangeType == "Control") {
  28.         if (oSelection.item(0).tagName == "IFRAME"){
  29.                 sAction = "MODI";
  30.                 sTitle = "修改";
  31.                 oControl = oSelection.item(0);
  32.                 sUrl = oControl.src;
  33.                 sScrolling = oControl.scrolling;
  34.                 sFrameBorder = oControl.frameBorder;
  35.                 sMarginHeight = oControl.marginHeight;
  36.                 sMarginWidth = oControl.marginWidth;
  37.                 sWidth = oControl.width;
  38.                 sHeight = oControl.height;
  39.         }
  40. }
  41.  
  42.  
  43. document.write("<title>网页帧属性(" + sTitle + ")</title>");
  44.  
  45. function InitDocument(){
  46.         SearchSelectValue(d_scrolling, sScrolling.toLowerCase());
  47.  
  48.         d_url.value = sUrl;
  49.         d_frameborder.value = sFrameBorder;
  50.         d_marginheight.value = sMarginHeight;
  51.         d_marginwidth.value = sMarginWidth;
  52.         d_width.value = sWidth;
  53.         d_height.value = sHeight;
  54.  
  55.         adjustDialog();
  56. }
  57.  
  58. function ok(){
  59.         sScrolling = d_scrolling.options[d_scrolling.selectedIndex].value;
  60.  
  61.         sUrl = d_url.value;
  62.         if (!IsURL(sUrl)){
  63.                 BaseAlert(d_url, "无效的网页地址!");
  64.                 return;
  65.         }
  66.  
  67.         d_frameborder.value = ToInt(d_frameborder.value);
  68.         d_marginheight.value = ToInt(d_marginheight.value);
  69.         d_marginwidth.value = ToInt(d_marginwidth.value);
  70.         sFrameBorder = d_frameborder.value;
  71.         sMarginHeight = d_marginheight.value;
  72.         sMarginWidth = d_marginwidth.value;
  73.  
  74.         var sWidth = "";
  75.         if (!MoreThanOne(d_width, "无效的帧宽度!")) return;
  76.         sWidth = d_width.value;
  77.         var sHeight = "";
  78.         if (!MoreThanOne(d_height, "无效的帧高度!")) return;
  79.         sHeight = d_height.value;
  80.  
  81.         if (sAction == "MODI") {
  82.                 oControl.src = sUrl;
  83.                 oControl.scrolling = sScrolling;
  84.                 oControl.frameBorder = sFrameBorder;
  85.                 oControl.marginHeight = sMarginHeight;
  86.                 oControl.marginWidth = sMarginWidth;
  87.                 oControl.width = sWidth;
  88.                 oControl.height = sHeight;
  89.         }else{
  90.                 dialogArguments.insertHTML("<iframe src='"+sUrl+"' scrolling='"+sScrolling+"' frameborder='"+sFrameBorder+"' marginheight='"+sMarginHeight+"' marginwidth='"+sMarginWidth+"' width='"+sWidth+"' height='"+sHeight+"'></iframe>");
  91.         }
  92.  
  93.         window.returnValue = null;
  94.         window.close();
  95. }
  96.  
  97.  
  98. function MoreThanOne(obj, sErr){
  99.         var b=false;
  100.         if (obj.value!=""){
  101.                 obj.value=parseFloat(obj.value);
  102.                 if (obj.value!="0"){
  103.                         b=true;
  104.                 }
  105.         }
  106.         if (b==false){
  107.                 BaseAlert(obj,sErr);
  108.                 return false;
  109.         }
  110.         return true;
  111. }
  112.  
  113. </script>
  114.  
  115. </HEAD>
  116.  
  117. <body onload="InitDocument()">
  118. <table border=0 cellpadding=0 cellspacing=5 id=tabDialogSize><tr><td>
  119.  
  120.  
  121. <table border=0 cellpadding=0 cellspacing=0 align=center>
  122. <tr>
  123.         <td>
  124.         <fieldset>
  125.         <legend>属性设置</legend>
  126.         <table border=0 cellpadding=5 cellspacing=0 width="100%">
  127.         <tr><td>
  128.  
  129.                 <table border=0 cellpadding=0 cellspacing=2 width="100%">
  130.                 <tr>
  131.                         <td noWrap width="20%">网页地址:</td>
  132.                         <td noWrap width="80%" colspan=4><input type=text id=d_url size=10 value="" style="width:100%"></td>
  133.                 </tr>
  134.                 <tr>
  135.                         <td noWrap width="20%">滚 动 条:</td>
  136.                         <td noWrap width="29%">
  137.                                 <select id=d_scrolling size=1 style="width:80px">
  138.                                 <option value=''>默认</option>
  139.                                 <option value='yes'></option>
  140.                                 <option value='no'></option>
  141.                                 </select>
  142.                         </td>
  143.                         <td width="2%">&nbsp;</td>
  144.                         <td noWrap width="20%">边 框 线:</td>
  145.                         <td noWrap width="29%"><input style="width:80px" id=d_frameborder size=10 maxlength=2 value="" ONKEYPRESS="event.returnValue=IsDigit();"></td>
  146.                 </tr>
  147.                 <tr>
  148.                         <td noWrap width="20%">上下边距:</td>
  149.                         <td noWrap width="29%"><input style="width:80px" id=d_marginheight size=10 maxlength=2 value="" ONKEYPRESS="event.returnValue=IsDigit();"></td>
  150.                         <td width="2%">&nbsp;</td>
  151.                         <td noWrap width="20%">左右边距:</td>
  152.                         <td noWrap width="29%"><input style="width:80px" id=d_marginwidth size=10 maxlength=2 value="" ONKEYPRESS="event.returnValue=IsDigit();"></td>
  153.                 </tr>
  154.                 <tr>
  155.                         <td noWrap width="20%">帧 宽 度:</td>
  156.                         <td noWrap width="29%"><input style="width:80px" id=d_width size=10 maxlength=4 value="" ONKEYPRESS="event.returnValue=IsDigit();"></td>
  157.                         <td width="2%">&nbsp;</td>
  158.                         <td noWrap width="20%">帧 高 度:</td>
  159.                         <td noWrap width="29%"><input style="width:80px" id=d_height size=10 maxlength=4 value="" ONKEYPRESS="event.returnValue=IsDigit();"></td>
  160.                 </tr>
  161.                 </table>
  162.  
  163.         </td></tr>
  164.         </table>
  165.         </fieldset>
  166.         </td>
  167. </tr>
  168. <tr><td height=5></td></tr>
  169. <tr><td noWrap align=right><input type=submit value='确定' id=Ok onclick="ok()">&nbsp;&nbsp;<input type=button value='取消' onclick="window.close();"></td></tr>
  170. </table>
  171.  
  172.  
  173. </td></tr></table>
  174. </BODY>
  175. </HTML>
  176.  
downloadiframe.htm Source code - Download Pcook CMS bubble guest v3.0 SDCMS version Source code
Related Source Codes/Software:
Oo 126 CMS movie site system - This procedure ASP + ACC/ASP + SQL, using new kern... 2016-09-21
IDC sales web site - Beautiful IDC sales web site source code 2016-09-21
NPOINT virtual host v1.7.0 formal version management system - The system main function is introduced 2016-09-21
Classified information network business in suzhou - Overall module: classification of supply and deman... 2016-09-21
Jie Yang v0.6.3 article system - System functions: 1, the system settings A confi... 2016-09-21
Age design website information management system SDCMS v1.1 SP1 - SDCMS is designed to build the information managem... 2016-09-21
Age design website information management system SDCMS v1.1 SP1 - SDCMS is designed to build the information managem... 2016-09-21
C9 v2.1.1 static post system - Program USES ASP + ACC structure design and develo... 2016-09-21
Imitation green download station perfect version - Before increased | software home page, on the basi... 2016-09-21
Subdomain hosting edition v1.9 s taobao, pat - The background site admin 2016-09-21
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top