BVB Source Codes

Jie Yang v0.6.3 article system Show iframe.htm Source code

Return Download Jie Yang v0.6.3 article system: download iframe.htm Source code - Download Jie Yang v0.6.3 article system Source code - Type:.htm
  1. <HTML>
  2. <HEAD>
  3. <META content="text/html; charset=gb2312" http-equiv=Content-Type>
  4.  
  5. <style type="text/css">
  6. body, a, table, div, span, td, th, input, select{font:9pt;font-family: "宋体", Verdana, Arial, Helvetica, sans-serif;}
  7. body {padding:5px}
  8. </style>
  9.  
  10. <Script Language=JavaScript src="dialog.js"></script><Script Language=JavaScript>
  11. var sAction = "INSERT";
  12. var sTitle = "插入";
  13.  
  14. var oControl;
  15. var oSeletion;
  16. var sRangeType;
  17.  
  18. var sUrl = "http://";
  19. var sScrolling = "";
  20. var sFrameBorder = "0";
  21. var sMarginHeight = "0";
  22. var sMarginWidth = "0";
  23. var sWidth = "500";
  24. var sHeight = "400";
  25.  
  26. oSelection = dialogArguments.eWebEditor.document.selection.createRange();
  27. sRangeType = dialogArguments.eWebEditor.document.selection.type;
  28.  
  29. if (sRangeType == "Control") {
  30.         if (oSelection.item(0).tagName == "IFRAME"){
  31.                 sAction = "MODI";
  32.                 sTitle = "修改";
  33.                 oControl = oSelection.item(0);
  34.                 sUrl = oControl.src;
  35.                 sScrolling = oControl.scrolling;
  36.                 sFrameBorder = oControl.frameBorder;
  37.                 sMarginHeight = oControl.marginHeight;
  38.                 sMarginWidth = oControl.marginWidth;
  39.                 sWidth = oControl.width;
  40.                 sHeight = oControl.height;
  41.         }
  42. }
  43.  
  44.  
  45. document.write("<title>网页帧属性(" + sTitle + ")</title>");
  46.  
  47. // 初始值
  48. function InitDocument(){
  49.         SearchSelectValue(d_scrolling, sScrolling.toLowerCase());
  50.  
  51.         d_url.value = sUrl;
  52.         d_frameborder.value = sFrameBorder;
  53.         d_marginheight.value = sMarginHeight;
  54.         d_marginwidth.value = sMarginWidth;
  55.         d_width.value = sWidth;
  56.         d_height.value = sHeight;
  57.  
  58. }
  59.  
  60. </script><title>网页帧属性(<%=sTitle%></title>
  61.  
  62. <SCRIPT event=onclick for=Ok language=JavaScript>
  63.         sScrolling = d_scrolling.options[d_scrolling.selectedIndex].value;
  64.  
  65.         sUrl = d_url.value;
  66.         if (!IsURL(sUrl)){
  67.                 BaseAlert(d_url, "无效的网页地址!");
  68.                 return;
  69.         }
  70.  
  71.         d_frameborder.value = ToInt(d_frameborder.value);
  72.         d_marginheight.value = ToInt(d_marginheight.value);
  73.         d_marginwidth.value = ToInt(d_marginwidth.value);
  74.         sFrameBorder = d_frameborder.value;
  75.         sMarginHeight = d_marginheight.value;
  76.         sMarginWidth = d_marginwidth.value;
  77.  
  78.         // 宽度高度有效值性
  79.         var sWidth = "";
  80.         if (!MoreThanOne(d_width,'无效的帧宽度!')) return;
  81.         sWidth = d_width.value;
  82.         var sHeight = "";
  83.         if (!MoreThanOne(d_height,'无效的帧高度!')) return;
  84.         sHeight = d_height.value;
  85.  
  86.         if (sAction == "MODI") {
  87.                 oControl.src = sUrl;
  88.                 oControl.scrolling = sScrolling;
  89.                 oControl.frameBorder = sFrameBorder;
  90.                 oControl.marginHeight = sMarginHeight;
  91.                 oControl.marginWidth = sMarginWidth;
  92.                 oControl.width = sWidth;
  93.                 oControl.height = sHeight;
  94.         }else{
  95.                 dialogArguments.insertHTML("<iframe src='"+sUrl+"' scrolling='"+sScrolling+"' frameborder='"+sFrameBorder+"' marginheight='"+sMarginHeight+"' marginwidth='"+sMarginWidth+"' width='"+sWidth+"' height='"+sHeight+"'></iframe>");
  96.         }
  97.  
  98.         window.returnValue = null;
  99.         window.close();
  100. </script><SCRIPT LANGUAGE=JAVASCRIPT>
  101.  
  102.  
  103. // 判断值是否大于0
  104. function MoreThanOne(obj, sErr){
  105.         var b=false;
  106.         if (obj.value!=""){
  107.                 obj.value=parseFloat(obj.value);
  108.                 if (obj.value!="0"){
  109.                         b=true;
  110.                 }
  111.         }
  112.         if (b==false){
  113.                 BaseAlert(obj,sErr);
  114.                 return false;
  115.         }
  116.         return true;
  117. }
  118.  
  119. </script></HEAD>
  120.  
  121. <body bgcolor=menu onload="InitDocument()">
  122.  
  123. <table border=0 cellpadding=0 cellspacing=0>
  124. <tr>
  125.         <td>
  126.         <fieldset>
  127.         <legend>属性设置</legend>
  128.         <table border=0 cellpadding=0 cellspacing=0>
  129.         <tr><td colspan=9 height=5></td></tr>
  130.         <tr>
  131.                 <td width=7></td>
  132.                 <td>网页地址:</td>
  133.                 <td width=5></td>
  134.                 <td colspan=5><input type=text id=d_url size=38 value="" style="width:243px"></td>
  135.                 <td width=7></td>
  136.         </tr>
  137.         <tr><td colspan=9 height=5></td></tr>
  138.         <tr>
  139.                 <td width=7></td>
  140.                 <td noWrap>滚 动 条:</td>
  141.                 <td width=5></td>
  142.                 <td><select id=d_scrolling style="width:72px"><option value=''>默认</option><option value='yes'></option><option value='no'></option></select></td>
  143.                 <td width=40></td>
  144.                 <td noWrap>边 框 线:</td>
  145.                 <td width=5></td>
  146.                 <td><input id=d_frameborder size=10 maxlength=2 value="" ONKEYPRESS="event.returnValue=IsDigit();"></td>
  147.                 <td width=7></td>
  148.         </tr>
  149.         <tr><td colspan=9 height=5></td></tr>
  150.         <tr>
  151.                 <td width=7></td>
  152.                 <td>上下边距:</td>
  153.                 <td width=5></td>
  154.                 <td><input id=d_marginheight size=10 maxlength=2 value="" ONKEYPRESS="event.returnValue=IsDigit();"></td>
  155.                 <td width=40></td>
  156.                 <td>左右边距:</td>
  157.                 <td width=5></td>
  158.                 <td><input id=d_marginwidth size=10 maxlength=2 value="" ONKEYPRESS="event.returnValue=IsDigit();"></td>
  159.                 <td width=7></td>
  160.         </tr>
  161.         <tr><td colspan=9 height=5></td></tr>
  162.         <tr>
  163.                 <td width=7></td>
  164.                 <td>帧 宽 度:</td>
  165.                 <td width=5></td>
  166.                 <td><input id=d_width size=10 maxlength=4 value="" ONKEYPRESS="event.returnValue=IsDigit();"></td>
  167.                 <td width=40></td>
  168.                 <td>帧 高 度:</td>
  169.                 <td width=5></td>
  170.                 <td><input id=d_height size=10 maxlength=4 value="" ONKEYPRESS="event.returnValue=IsDigit();"></td>
  171.                 <td width=7></td>
  172.         </tr>
  173.         <tr><td colspan=9 height=5></td></tr>
  174.         </table>
  175.         </fieldset>
  176.         </td>
  177. </tr>
  178. <tr><td height=5></td></tr>
  179. <tr><td align=right><input type=submit value='  确定  ' id=Ok>&nbsp;&nbsp;<input type=button value='  取消  ' onclick="window.close();"></td></tr>
  180. </table>
  181.  
  182. </BODY>
  183.  
  184.  
  185.  
downloadiframe.htm Source code - Download Jie Yang v0.6.3 article system Source code
Related Source Codes/Software:
Jilin classification information release system v5.0 trial version - A ready-made classifieds site publishing system, h... 2016-09-21
Linyi CMS v6.5 market classification information - A. supply and demand information function: informa... 2016-09-21
Tesco discount net SQL version - And presentations, faster. 2016-09-21
- electronic enterprise website management system In a fully functional version - Super suitable for enterprise agents build a corpo... 2016-09-21
Rio mesh network hard disk system v3.0 - System functions: 1, increase the progress of Asp... 2016-09-21
Classified information network business in suzhou - Overall module: classification of supply and deman... 2016-09-21
NPOINT virtual host v1.7.0 formal version management system - The system main function is introduced 2016-09-21
IDC sales web site - Beautiful IDC sales web site source code 2016-09-21
Oo 126 CMS movie site system - This procedure ASP + ACC/ASP + SQL, using new kern... 2016-09-21
Pcook CMS bubble guest v3.0 SDCMS version - Developed by Asp+Access, and meet the needs of sma... 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