BVB Source Codes

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

Return Download Pcook CMS bubble guest v3.0 SDCMS version: download source_html_full.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.     var obj = window.opener.oUtil.obj;
  47.  
  48.     var sHTML="";
  49.     sHTML=window.opener.getOuterHTML(oEditor.document.documentElement);
  50.     sHTML=jsReplace(sHTML," designMode=on","");
  51.     sHTML = sHTML.replace(/>\s+</gi, "><"); //replace space between tag
  52.    sHTML = sHTML.replace(/\r/gi, ""); //replace space between tag
  53.    sHTML = sHTML.replace(/(<br>)\s+/gi, "$1"); //replace space between BR and text
  54.     sHTML = sHTML.replace(/<br class="innova">/gi, "");
  55.  
  56.     if(obj.docType!="") sHTML=obj.docType+"\n"+sHTML;//restore doctype (if any)
  57.  
  58.     var idSource = document.getElementById("idSource").contentWindow;
  59.     var sourceDocBody = idSource.document.body;
  60.  
  61.     //remove all child
  62.     sourceDocBody.innerHTML = "";
  63.     sourceDocBody.appendChild(document.createTextNode(sHTML));
  64.  
  65.     sourceDocBody.style.cssText="overflow-x:scroll;overflow-y:scroll;white-space:nowrap";
  66.     sourceDocBody.clearAttributes;
  67.     sourceDocBody.style.marginTop='4px';
  68.     sourceDocBody.style.marginLeft='10px';
  69.     sourceDocBody.style.fontFamily='Tahoma';
  70.     sourceDocBody.style.fontSize='11px';
  71.     sourceDocBody.style.color='black';
  72.     sourceDocBody.style.background='white';
  73.     //idSource.document.addEventListener("keydown", new Function("doKeyPress(arguments[0])"), false);
  74.  
  75.     doWrap()
  76.  
  77.     idSource.document.designMode="on";
  78.     idSource.focus();
  79.     }
  80.  
  81. function doKeyPress(evt)
  82.     {
  83.     /*
  84.     if (evt.keyCode==13)
  85.         {
  86.         var thisSel = document.selection.createRange();
  87.         thisSel.pasteHTML('<br>');
  88.         evt.cancelBubble = true;
  89.         evt.returnValue = false;
  90.         thisSel.select();
  91.         thisSel.moveEnd("character", 1);
  92.         thisSel.moveStart("character", 1);
  93.         thisSel.collapse(false);
  94.         return false;
  95.         idSource.focus();
  96.         }
  97.     if (evt.ctrlKey)
  98.         {
  99.         if(evt.keyCode==65)doCmd("SelectAll");
  100.         }*/
  101.     }
  102.  
  103. function doUpdate()
  104.     {
  105.     window.opener.oUtil.obj.saveForUndo();
  106.  
  107.     var idSource = document.getElementById("idSource").contentWindow;
  108.     var range = idSource.document.body.ownerDocument.createRange();
  109.     range.selectNodeContents(idSource.document.body);
  110.  
  111.     var obj = window.opener.oUtil.obj;
  112.     obj.putHTML(range.toString());//tdk menggunakan loadHTML() krn loadHTML() hanya utk first load.
  113.     }
  114.  
  115. function doWrap()
  116.     {
  117.     var inpWrap = document.getElementById("inpWrap");
  118.  
  119.     if(inpWrap.checked==true)
  120.         {
  121.         //Wrap Text
  122.         idSource.document.body.style.whiteSpace="normal";
  123.         }
  124.     else
  125.         {
  126.         idSource.document.body.style.whiteSpace="nowrap";
  127.         }
  128.     }
  129.  
  130. //*******************
  131. function setupToolbar()
  132.   {
  133.   var obj = window.opener.oUtil.obj;
  134.   var tb=new ISToolbar("srcEdt");
  135.   tb.onClick=function(id) {tbAction(tb, id);};
  136.   tb.iconPath="../"+obj.iconPath;
  137.   tb.btnWidth=obj.iconWidth;
  138.   tb.btnHeight=obj.iconHeight;
  139.  
  140.   //tb.addButton("btnCut","btnCut.gif",getTxt("Cut"));
  141.   //tb.addButton("btnCopy","btnCopy.gif",getTxt("Copy"));
  142.   //tb.addButton("btnPaste","btnPaste.gif",getTxt("Paste"));
  143.   //tb.addSeparator();
  144.   tb.addButton("btnUndo","btnUndo.gif",getTxt("Uedo"));
  145.   tb.addButton("btnRedo","btnRedo.gif",getTxt("Redo"));
  146.   tb.addSeparator();
  147.   tb.addButton("btnSearch","btnSearch.gif",getTxt("Search"));
  148.   document.getElementById("idToolbar").innerHTML=tb.render();
  149.   }
  150.  
  151. function tbAction(tb, id)
  152.   {
  153.   switch(id)
  154.     {
  155.     case "btnCut": doCmd('Cut'); break;
  156.     case "btnCopy": doCmd('Copy'); break;
  157.     case "btnPaste": doCmd('Paste'); break;
  158.     case "btnUndo": doCmd('Undo'); break;
  159.     case "btnRedo": doCmd('Redo'); break;
  160.     case "btnSearch": modelessDialogShow('search2.htm',375,163); break;
  161.     }
  162.  
  163.   }
  164. //*******************
  165.  
  166. function modelessDialogShow(url,width,height)
  167.     {
  168.     var left = screen.availWidth/2 - width/2;
  169.     var top = screen.availHeight/2 - height/2;
  170.     window.open(url, "", "dependent=yes,width="+width+"px,height="+height+",left="+left+",top="+top);
  171.     }
  172.  
  173. </script>
  174. </head>
  175. <body onload="setupToolbar();loadTxt();init();bodyOnLoad()" style="overflow:hidden;margin:0;background: #f4f4f4;">
  176.  
  177. <table width="100%" height="100%" align="center" cellpadding="0" cellspacing="0">
  178. <tr>
  179. <td id="idToolbar">
  180.  
  181. </td>
  182. </tr>
  183. <td style="height:100%">
  184.     <iframe style="width:100%;height:100%;" name="idSource" id="idSource" contentEditable="true"></iframe>
  185. </td>
  186. </tr>
  187. <tr>
  188. <td class="dialogFooter" style="padding:13;padding-top:7;padding-bottom:7;" align="right" valign="right">
  189.     <table cellpadding=1 cellspacing=0>
  190.     <td width=100%>
  191.         &nbsp;<input type="checkbox" ID="inpWrap" NAME="inpWrap" class="inpChk" onclick="doWrap()" checked> <span id="txtLang" name="txtLang">Wrap Text</span>
  192.     </td>
  193.     <td>
  194.         <input type="button" id="btnCancel" name="btnCancel" value="cancel" onclick="self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  195.     </td>
  196.     <td>
  197.         <input type="button" id="btnApply" name="btnApply" value="apply" onclick="doUpdate();bodyOnLoad()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  198.     </td>
  199.     <td>
  200.         <input type="button" id="btnOk" name="btnOk" value="ok" onclick="doUpdate();self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  201.     </td>
  202.     </table>
  203. </td>
  204. </tr>
  205. </table>
  206.  
  207. </body>
  208. </html>
downloadsource_html_full.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