BVB Source Codes

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

Return Download Pcook CMS bubble guest v3.0 SDCMS version: download source_html.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=utf-8">
  4. <link href="../style/editor.css" rel="stylesheet" type="text/css">
  5. <link href="../style/istoolbar.css" rel="stylesheet" type="text/css">
  6.  
  7. <script language="javascript" src="../istoolbar.js"></script>
  8. <script>
  9.   var sLangDir=window.opener.oUtil.langDir;
  10.   document.write("<scr"+"ipt src='../language/"+sLangDir+"/source_html.js'></scr"+"ipt>");
  11. </script>
  12. <script>writeTitle()</script>
  13. <script>
  14.  
  15. var iconOffsetTop = -75;
  16.  
  17. function init()
  18.   {
  19.   var idSource = document.getElementById("idSource").contentWindow;
  20.   var doc = idSource.document;
  21.   doc.open();
  22.   doc.write("<html><head><head><body></body></html>");
  23.   doc.close();
  24.   }
  25.  
  26. function doCmd(sCmd,sOption)
  27.     {
  28.     var idSource = document.getElementById("idSource").contentWindow;
  29.     idSource.document.execCommand(sCmd, false, sOption);
  30.     }
  31.  
  32. function jsReplace(sText, sFind, sReplace)
  33.     {
  34.     var arrTmp = sText.split(sFind);
  35.     if (arrTmp.length > 1) sText = arrTmp.join(sReplace);
  36.     return sText;
  37.     }
  38.  
  39. var sBodyHeader;
  40. var sBodyFooter;
  41. var sBodyTag;
  42.  
  43. function bodyOnLoad()
  44.     {
  45.     var oEditor=window.opener.oUtil.oEditor;
  46.  
  47.     var sHTML="";
  48.     sHTML = oEditor.document.body.innerHTML;
  49.     sHTML = jsReplace(sHTML," designMode=on","");
  50.     sHTML = sHTML.replace(/>\s+</gi, "><"); //replace space between tag
  51.    sHTML = sHTML.replace(/\r/gi, ""); //replace space between tag
  52.    sHTML = sHTML.replace(/(<br>)\s+/gi, "$1"); //replace space between BR and text
  53.     sHTML = sHTML.replace(/<br class="innova">/gi, "");
  54.  
  55.     var idSource = document.getElementById("idSource").contentWindow;
  56.     var sourceDocBody = idSource.document.body;
  57.  
  58.     //remove all child
  59.     sourceDocBody.innerHTML = "";
  60.     sourceDocBody.appendChild(idSource.document.createTextNode(sHTML));
  61.  
  62.     sourceDocBody.style.cssText="overflow-x:scroll;overflow-y:scroll;white-space:nowrap";
  63.     sourceDocBody.clearAttributes;
  64.     sourceDocBody.style.marginTop='4';
  65.     sourceDocBody.style.marginLeft='10';
  66.     sourceDocBody.style.fontFamily='Tahoma';
  67.     sourceDocBody.style.fontSize='11px';
  68.     sourceDocBody.style.color='black';
  69.     sourceDocBody.style.background='white';
  70.     //idSource.document.addEventListener("keydown", new Function("doKeyPress(arguments[0])"), false);
  71.  
  72.     doWrap()
  73.  
  74.     idSource.document.designMode="on";
  75.     idSource.focus();
  76.     }
  77.  
  78. function doKeyPress(evt)
  79.     {/*
  80.     if (evt.keyCode==13)
  81.         {
  82.         var thisSel = document.selection.createRange();
  83.         thisSel.pasteHTML('<br>');
  84.         evt.cancelBubble = true;
  85.         evt.returnValue = false;
  86.         thisSel.select();
  87.         thisSel.moveEnd("character", 1);
  88.         thisSel.moveStart("character", 1);
  89.         thisSel.collapse(false);
  90.         return false;
  91.         idSource.focus();
  92.         }
  93.     if (evt.ctrlKey)
  94.         {
  95.         if(evt.keyCode==65)doCmd("SelectAll");
  96.         }*/
  97.     }
  98.  
  99. function doUpdate()
  100.     {
  101.     window.opener.oUtil.obj.saveForUndo();
  102.     var obj = window.opener.oUtil.obj;
  103.  
  104.     var oEditor=window.opener.oUtil.oEditor;
  105.  
  106.     var idSource = document.getElementById("idSource").contentWindow;
  107.     var range = idSource.document.body.ownerDocument.createRange();
  108.     range.selectNodeContents(idSource.document.body);
  109.     oEditor.document.body.innerHTML = obj.docType +  range.toString();
  110.  
  111.     obj.cleanDeprecated();
  112.     }
  113.  
  114. function doWrap()
  115.     {
  116.     var inpWrap = document.getElementById("inpWrap");
  117.     if(inpWrap.checked==true)
  118.         {
  119.         //Wrap Text
  120.         idSource.document.body.style.whiteSpace="normal";
  121.         }
  122.     else
  123.         {
  124.         idSource.document.body.style.whiteSpace="nowrap";
  125.         }
  126.     }
  127.  
  128. //*******************
  129. function setupToolbar()
  130.   {
  131.   var obj = window.opener.oUtil.obj;
  132.   var tb=new ISToolbar("srcEdt");
  133.   tb.onClick=function(id) {tbAction(tb, id);};
  134.   tb.iconPath="../"+obj.iconPath;
  135.   tb.btnWidth=obj.iconWidth;
  136.   tb.btnHeight=obj.iconHeight;
  137.  
  138.   //tb.addButton("btnCut","btnCut.gif",getTxt("Cut"));
  139.   //tb.addButton("btnCopy","btnCopy.gif",getTxt("Copy"));
  140.   //tb.addButton("btnPaste","btnPaste.gif",getTxt("Paste"));
  141.   //tb.addSeparator();
  142.   tb.addButton("btnUndo","btnUndo.gif",getTxt("Uedo"));
  143.   tb.addButton("btnRedo","btnRedo.gif",getTxt("Redo"));
  144.   tb.addSeparator();
  145.   tb.addButton("btnSearch","btnSearch.gif",getTxt("Search"));
  146.   document.getElementById("idToolbar").innerHTML=tb.render();
  147.   }
  148.  
  149. function tbAction(tb, id)
  150.   {
  151.   switch(id)
  152.     {
  153.     case "btnCut": doCmd('Cut'); break;
  154.     case "btnCopy": doCmd('Copy'); break;
  155.     case "btnPaste": doCmd('Paste'); break;
  156.     case "btnUndo": doCmd('Undo'); break;
  157.     case "btnRedo": doCmd('Redo'); break;
  158.     case "btnSearch": modelessDialogShow('search2.htm',375,163); break;
  159.     }
  160.  
  161.   }
  162. //*******************
  163. function modelessDialogShow(url,width,height)
  164.     {
  165.     window.showModelessDialog(url,window,
  166.         "dialogWidth:"+width+"px;dialogHeight:"+height+"px;edge:Raised;center:1;help:0;resizable:1;");
  167.     }
  168.  
  169. function modelessDialogShow(url,width,height)
  170.     {
  171.     var left = screen.availWidth/2 - width/2;
  172.     var top = screen.availHeight/2 - height/2;
  173.     window.open(url, "", "dependent=yes,width="+width+"px,height="+height+",left="+left+",top="+top);
  174.     }
  175. </script>
  176. </head>
  177. <body onload="setupToolbar();loadTxt();init();bodyOnLoad()" style="overflow:hidden;margin:0;background: #f4f4f4;">
  178.  
  179. <table width="100%" height="100%" align="center" cellpadding="0" cellspacing="0">
  180. <tr>
  181. <td id="idToolbar">
  182.  
  183. </td>
  184. </tr>
  185. <tr>
  186. <td style="height:100%">
  187.     <iframe style="width:100%;height:100%;" name="idSource" id="idSource"></iframe>
  188. </td>
  189. </tr>
  190. <tr>
  191. <td class="dialogFooter" style="padding:13;padding-top:7;padding-bottom:7;" align="right" valign="right">
  192.     <table cellpadding=1 cellspacing=0>
  193.     <td width="100%">
  194.         &nbsp;<input type="checkbox" ID="inpWrap" NAME="inpWrap" class="inpChk" onclick="doWrap()" checked> <span id="txtLang" name="txtLang">Wrap Text</span>
  195.     </td>
  196.     <td>
  197.         <input type="button" name="btnCancel" id="btnCancel" value="cancel" onclick="self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  198.     </td>
  199.     <td>
  200.         <input type="button" name="btnApply" id="btnApply" value="apply" onclick="doUpdate();bodyOnLoad()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  201.     </td>
  202.     <td>
  203.         <input type="button" name="btnOk" id="btnOk" value=" ok " onclick="doUpdate();self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  204.     </td>
  205.     </table>
  206. </td>
  207. </tr>
  208. </table>
  209.  
  210. </body>
  211. </html>
downloadsource_html.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