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=dialogArguments.oUtil.langDir;
  10.   document.write("<scr"+"ipt src='language/"+sLangDir+"/source_html.js'></scr"+"ipt>");
  11. </script>
  12. <script>writeTitle()</script>
  13. <script>
  14. function doCmd(sCmd,sOption)
  15.   {
  16.   var oSel=idSource.document.selection.createRange();
  17.   var sType=idSource.document.selection.type;
  18.   var oTarget=(sType=="None"?idSource.document:oSel);
  19.   oTarget.execCommand(sCmd,false,sOption);
  20.   }
  21. function jsReplace(sText, sFind, sReplace)
  22.   {
  23.   var arrTmp = sText.split(sFind);
  24.   if (arrTmp.length > 1) sText = arrTmp.join(sReplace);
  25.   return sText;
  26.   }
  27. var sBodyHeader;
  28. var sBodyFooter;
  29. var sBodyTag;
  30.  
  31. function bodyOnLoad()
  32.   {
  33.   var oEditor=dialogArguments.oUtil.oEditor;
  34.   var obj = dialogArguments.oUtil.obj;
  35.  
  36.   var sHTML="";
  37.   sHTML=oEditor.document.documentElement.outerHTML;
  38.   sHTML=jsReplace(sHTML," contentEditable=true","");
  39.  
  40.   if(obj.docType!="")sHTML=obj.docType+"\n"+sHTML;//restore doctype (if any)
  41.  
  42.   idSource.document.body.innerText=sHTML;
  43.   idSource.document.body.style.cssText="overflow-x:scroll;overflow-y:scroll;white-space:nowrap";
  44.  
  45.   idSource.document.body.contentEditable=true;  
  46.   idSource.document.body.clearAttributes;
  47.   idSource.document.body.style.marginTop='4';
  48.   idSource.document.body.style.marginLeft='10';
  49.   idSource.document.body.style.fontFamily='Tahoma';
  50.   idSource.document.body.style.fontSize='11px';
  51.   idSource.document.body.style.color='black';
  52.   idSource.document.body.style.background='white';
  53.   idSource.document.body.onkeydown = new Function("doKeyPress(idSource.event)");
  54.  
  55.   doWrap()
  56.   }
  57. function doKeyPress(evt)
  58.   {
  59.   if (evt.keyCode==13)
  60.     {
  61.     var thisSel = document.selection.createRange();
  62.     thisSel.pasteHTML('<br>');
  63.     evt.cancelBubble = true;
  64.     evt.returnValue = false;
  65.     thisSel.select();
  66.     thisSel.moveEnd("character", 1);
  67.     thisSel.moveStart("character", 1);
  68.     thisSel.collapse(false);
  69.     return false;
  70.     idSource.focus();
  71.     }
  72.   if (evt.ctrlKey)
  73.     {
  74.     if(evt.keyCode==65)doCmd("SelectAll");
  75.     }
  76.   }
  77. function doUpdate()
  78.   {
  79.   dialogArguments.oUtil.obj.saveForUndo();
  80.  
  81.   var obj = dialogArguments.oUtil.obj;
  82.   obj.putHTML(idSource.document.body.innerText);//tdk menggunakan loadHTML() krn loadHTML() hanya utk first load.
  83.  
  84.   //*** RUNTIME STYLES ***
  85.   obj.runtimeBorder(false);
  86.   obj.runtimeStyles();
  87.   //***********************
  88.   }
  89.  
  90. function doWrap()
  91.   {
  92.   if(inpWrap.checked==true)
  93.     {
  94.     //Wrap Text
  95.     idSource.document.body.style.whiteSpace="normal";
  96.     }
  97.   else
  98.     {
  99.     idSource.document.body.style.whiteSpace="nowrap";
  100.     }
  101.   }
  102.  
  103. //*******************
  104. function setupToolbar()
  105.   {
  106.   var obj = dialogArguments.oUtil.obj;
  107.   var tb=new ISToolbar("srcEdt");
  108.   tb.onClick=function(id) {tbAction(tb, id);};
  109.   tb.iconPath=obj.iconPath;
  110.   tb.btnWidth=obj.iconWidth;
  111.   tb.btnHeight=obj.iconHeight;
  112.  
  113.   tb.addButton("btnCut","btnCut.gif",getTxt("Cut"));
  114.   tb.addButton("btnCopy","btnCopy.gif",getTxt("Copy"));
  115.   tb.addButton("btnPaste","btnPaste.gif",getTxt("Paste"));
  116.   tb.addSeparator();  
  117.   tb.addButton("btnUndo","btnUndo.gif",getTxt("Uedo"));
  118.   tb.addButton("btnRedo","btnRedo.gif",getTxt("Redo"));
  119.   tb.addSeparator();  
  120.   tb.addButton("btnSearch","btnSearch.gif",getTxt("Search"));
  121.   idToolbar.innerHTML=tb.render();
  122.   }
  123.  
  124. function tbAction(tb, id)
  125.   {
  126.   switch(id)
  127.     {
  128.     case "btnCut": doCmd('Cut'); break;
  129.     case "btnCopy": doCmd('Copy'); break;
  130.     case "btnPaste": doCmd('Paste'); break;
  131.     case "btnUndo": doCmd('Undo'); break;
  132.     case "btnRedo": doCmd('Redo'); break;
  133.     case "btnSearch": modelessDialogShow('search2.htm',375,163); break;
  134.     }
  135.  
  136.   }
  137. //*******************
  138. function modelessDialogShow(url,width,height)
  139.   {
  140.   window.showModelessDialog(url,window,
  141.     "dialogWidth:"+width+"px;dialogHeight:"+height+"px;edge:Raised;center:1;help:0;resizable:1;");
  142.   }
  143. </script>
  144. </head>
  145. <body onload="setupToolbar();loadTxt();bodyOnLoad()" style="overflow:hidden;margin:0;background: #f4f4f4;">
  146.  
  147. <table width="100%" height="100%" align="center" cellpadding="0" cellspacing="0">
  148. <tr>
  149. <td id="idToolbar">
  150.  
  151. </td>
  152. </tr>
  153. <td style="height:100%">
  154.   <iframe style="width:100%;height:100%;" src="blank.gif"  name="idSource" id="idSource" contentEditable="true"></iframe>
  155. </td>
  156. </tr>
  157. <tr>
  158. <td class="dialogFooter" style="padding:13;padding-top:7;padding-bottom:7;" align="right" valign="right">
  159.   <table cellpadding=1 cellspacing=0>
  160.   <td width=100%>
  161.     &nbsp;<input type="checkbox" ID="inpWrap" NAME="inpWrap" class="inpChk" onclick="doWrap()" checked> <span id="txtLang" name="txtLang">Wrap Text</span>
  162.   </td>
  163.   <td>
  164.     <input type="button" name="btnCancel" id="btnCancel" value="cancel" onclick="self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  165.   </td>
  166.   <td>
  167.     <input type="button" name="btnApply" id="btnApply" value="apply" onclick="doUpdate();bodyOnLoad()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  168.   </td>
  169.   <td>
  170.     <input type="button" name="btnOk" id="btnOk" value="ok" onclick="doUpdate();self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  171.   </td>
  172.   </table>
  173. </td>
  174. </tr>
  175. </table>
  176.  
  177. </body>
  178. </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