BVB Source Codes

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

Return Download Pcook CMS bubble guest v3.0 SDCMS version: download media.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. <script>
  6.   var sLangDir=dialogArguments.oUtil.langDir;
  7.   document.write("<scr"+"ipt src='language/"+sLangDir+"/media.js'></scr"+"ipt>");
  8. </script>
  9. <script>writeTitle()</script>
  10. <script>
  11. function GetElement(oElement,sMatchTag)
  12.   {
  13.   while (oElement!=null&&oElement.tagName!=sMatchTag)
  14.    {
  15.    if(oElement.tagName=="BODY")return null;
  16.     oElement=oElement.parentElement;
  17.     }
  18.   return oElement;
  19.   }
  20.  
  21. function doWindowFocus()
  22.   {
  23.   dialogArguments.oUtil.onSelectionChanged=new Function("realTime()");
  24.   }
  25. function bodyOnLoad()
  26.   {
  27.   window.onfocus=doWindowFocus;
  28.   dialogArguments.oUtil.onSelectionChanged=new Function("realTime()");
  29.  
  30.   if(dialogArguments.oUtil.obj.cmdAssetManager!="")btnAsset.style.display="block";
  31.   if(dialogArguments.oUtil.obj.cmdMediaManager!="")btnAsset.style.display="block";
  32.  
  33.   realTime()
  34.   }
  35. function openAsset()
  36.   {
  37.   var retVal;
  38.   if(dialogArguments.oUtil.obj.cmdAssetManager!="")
  39.     retVal=eval(dialogArguments.oUtil.obj.cmdAssetManager);
  40.   if(dialogArguments.oUtil.obj.cmdMediaManager!="")
  41.     retVal=eval(dialogArguments.oUtil.obj.cmdMediaManager);
  42.   if(retVal!=null)inpURL.value = retVal;
  43.   }
  44. function modalDialogShow(url,width,height)
  45.   {
  46.   if(url.indexOf("?")==-1) url=url+"?ffilter=media";//no querystring
  47.   else url=url+"&ffilter=media";
  48.  
  49.   return window.showModalDialog(url,window,
  50.     "dialogWidth:"+width+"px;dialogHeight:"+height+"px;edge:Raised;center:Yes;help:No;Resizable:Yes;Maximize:Yes");
  51.   }
  52. function realTime()
  53.   {
  54.   if(!dialogArguments.oUtil.obj.checkFocus()){return;}//Focus stuff
  55.   var oEditor=dialogArguments.oUtil.oEditor;
  56.   var oSel=oEditor.document.selection.createRange();
  57.   var sType=oEditor.document.selection.type;
  58.  
  59.   clearAllProperties()
  60.  
  61.   if (oSel.parentElement) oEl=GetElement(oSel.parentElement(),"OBJECT");
  62.   else oEl=GetElement(oSel.item(0),"OBJECT");
  63.  
  64.   if (oEl)
  65.     {  
  66.    
  67.     inpURL.value=oEl.url;
  68.     inpWidth.value=oEl.width;
  69.     inpHeight.value=oEl.height;
  70.    
  71.     chkAutoRewind.checked = oEl.settings.playCount=="32767";
  72.     chkShowControls.checked = oEl.uiMode=="full";
  73.     chkAutoStart.checked = oEl.settings.autoStart==true;
  74.        
  75.     btnApply.style.display="block";
  76.     btnOk.style.display="block";
  77.     btnInsert.style.display="none";
  78.     }
  79.   else
  80.     {
  81.     btnApply.style.display="none";
  82.     btnOk.style.display="none";
  83.     btnInsert.style.display="block";
  84.     }
  85.   }
  86. function clearAllProperties()
  87.   {
  88.   inpURL.value="";
  89.   inpWidth.value="320";
  90.   inpHeight.value="290";
  91.   chkAutoStart.checked=true;
  92.   chkShowControls.checked=true;
  93.   chkShowStatusBar.checked=false;
  94.   chkShowDisplay.checked=false;
  95.   chkAutoRewind.checked=true;
  96.   }
  97.  
  98. function insertMedia()
  99.   {
  100.   if(!dialogArguments.oUtil.obj.checkFocus()){return;}//Focus stuff
  101.   var oEditor=dialogArguments.oUtil.oEditor;
  102.  
  103.   dialogArguments.oUtil.obj.saveForUndo();
  104.  
  105.   if(chkAutoStart.checked)sAutoStart="true";
  106.   else sAutoStart="false";
  107.  
  108.   if(chkShowControls.checked)sShowControls="true";
  109.   else sShowControls="false";
  110.  
  111.   if(chkShowStatusBar.checked)sShowStatusBar="true";
  112.   else sShowStatusBar="false";
  113.  
  114.   if(chkShowDisplay.checked)sShowDisplay="true";
  115.   else sShowDisplay="false";
  116.  
  117.   if(chkAutoRewind.checked)sAutoRewind="true";
  118.   else sAutoRewind="false";
  119.  
  120.  
  121.   var sHTML = "<object selThis=\"selThis\" width='"+inpWidth.value+"' height='"+inpHeight.value+"' "+
  122.    "classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6' "+
  123.    "codebase='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' >"+
  124.     "<param name='URL' value='"+inpURL.value+"'>"+
  125.     "<param name='autoStart' value='"+sAutoStart+"'>"+
  126.     "<param name='uiMode' value='"+(sShowControls=="true"?"full":"none")+"'>"+
  127.     "<param name='playCount' value='"+(sAutoRewind=="true"?32767:1)+"'>"+
  128.     " <embed "+
  129.    " type='application/x-mplayer2' "+
  130.    " pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' "+
  131.    " width='"+inpWidth.value+"' "+
  132.    " height='"+inpHeight.value+"' "+
  133.    " src='"+inpURL.value+"' "+
  134.    " filename='"+inpURL.value+"' "+
  135.    " autostart='"+(sAutoStart=="true"?"1":"0")+"' "+
  136.    " showcontrols='"+(sShowControls=="true"?"1":"0")+"' "+
  137.    " showstatusbar='"+"0"+"' "+
  138.    " showdisplay='"+"0"+"' "+
  139.    " autorewind='"+(sAutoRewind=="true"?"1":"0")+"'>"+
  140.     " </embed>"+
  141.     "</object>";
  142.  
  143.  
  144.   /*
  145.   var sHTML = "<embed selThis=\"selThis\" "+
  146.    "type='application/x-mplayer2' "+
  147.    "pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' "+
  148.    "width='"+inpWidth.value+"' "+
  149.    "height='"+inpHeight.value+"' "+
  150.    "src='"+inpURL.value+"' "+
  151.    "filename='"+inpURL.value+"' "+
  152.    "autostart='"+sAutoStart+"' "+
  153.    "showcontrols='"+sShowControls+"' "+
  154.    "showstatusbar='"+sShowStatusBar+"' "+
  155.    "showdisplay='"+sShowDisplay+"' "+
  156.    "autorewind='"+sAutoRewind+"'></embed>"
  157.   */
  158.  
  159.   var obj=dialogArguments.oUtil.obj;
  160.   obj.insertHTML(sHTML);
  161.  
  162.   for(var i=0;i<oEditor.document.all.length;i++)
  163.    {
  164.    if(oEditor.document.all[i].getAttribute("selThis")=="selThis")
  165.      {
  166.      oEditor.document.all[i].removeAttribute("selThis",0);      
  167.      var oSelRange = oEditor.document.body.createControlRange()
  168.      oSelRange.add(oEditor.document.all[i]);
  169.      oSelRange.select();        
  170.      }
  171.    }
  172.  
  173.  realTime();
  174.  
  175.  dialogArguments.realTime(dialogArguments.oUtil.oName);
  176.  dialogArguments.oUtil.obj.selectElement(0);
  177.  }
  178. function updateMedia()
  179.  {
  180.  if(!dialogArguments.oUtil.obj.checkFocus()){return;}//Focus stuff
  181.  var oEditor=dialogArguments.oUtil.oEditor;
  182.  var oSel=oEditor.document.selection.createRange();
  183.  var sType=oEditor.document.selection.type;
  184.  
  185.  dialogArguments.oUtil.obj.saveForUndo();
  186.  
  187.  if (oSel.parentElement) oEl=GetElement(oSel.parentElement(),"OBJECT");
  188.  else oEl=GetElement(oSel.item(0),"OBJECT");
  189.  
  190.  if (oEl)
  191.    {
  192.  
  193.    if(chkAutoStart.checked)sAutoStart="true";
  194.    else sAutoStart="false";
  195.  
  196.    if(chkShowControls.checked)sShowControls="true";
  197.    else sShowControls="false";
  198.  
  199.    if(chkShowStatusBar.checked)sShowStatusBar="true";
  200.    else sShowStatusBar="false";
  201.  
  202.    if(chkShowDisplay.checked)sShowDisplay="true";
  203.    else sShowDisplay="false";
  204.  
  205.    if(chkAutoRewind.checked)sAutoRewind="true";
  206.    else sAutoRewind="false";    
  207.    
  208.    var sHTML = "<object selThis=\"selThis\" width='"+inpWidth.value+"' height='"+inpHeight.value+"' "+
  209.    "classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6' "+
  210.    "codebase='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' >"+
  211.     "<param name='URL' value='"+inpURL.value+"'>"+
  212.     "<param name='autoStart' value='"+sAutoStart+"'>"+
  213.     "<param name='uiMode' value='"+(sShowControls=="true"?"full":"none")+"'>"+
  214.     "<param name='playCount' value='"+(sAutoRewind=="true"?32767:1)+"'>"+
  215.     " <embed "+
  216.    " type='application/x-mplayer2' "+
  217.    " pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' "+
  218.    " width='"+inpWidth.value+"' "+
  219.    " height='"+inpHeight.value+"' "+
  220.    " src='"+inpURL.value+"' "+
  221.    " filename='"+inpURL.value+"' "+
  222.    " autostart='"+(sAutoStart=="true"?"1":"0")+"' "+
  223.    " showcontrols='"+(sShowControls=="true"?"1":"0")+"' "+
  224.    " showstatusbar='"+"0"+"' "+
  225.    " showdisplay='"+"0"+"' "+
  226.    " autorewind='"+(sAutoRewind=="true"?"1":"0")+"'>"+
  227.     " </embed>"+
  228.     "</object>";
  229.    
  230.     oEl.outerHTML = sHTML;
  231.  
  232.     for(var i=0;i<oEditor.document.all.length;i++)
  233.      {
  234.      if(oEditor.document.all[i].getAttribute("selThis")=="selThis")
  235.        {
  236.        oEditor.document.all[i].removeAttribute("selThis",0);      
  237.        var oSelRange = oEditor.document.body.createControlRange()
  238.        oSelRange.add(oEditor.document.all[i]);
  239.        oSelRange.select();        
  240.        }
  241.      }
  242.    }
  243.  realTime()
  244.  }
  245. </script>
  246. </head>
  247. <body onload="loadTxt();bodyOnLoad()" style="overflow:hidden;">
  248.  
  249. <table width=100% height=100% align=center cellpadding=0 cellspacing=0>
  250. <tr>
  251. <td valign=top style="padding:5;height:100%">
  252.  
  253.   <table cellpadding=2 cellspacing=0  style="width:100%">
  254.   <tr>
  255.     <td nowrap><span id="txtLang" name="txtLang">Source</span>:&nbsp;&nbsp;</td>
  256.     <td colspan="4" style="width:100%">
  257.       <table cellpadding="0" cellspacing="0" style="width:100%">
  258.       <tr>
  259.       <td style="width:100%"><input type="text" name=inpURL size=45 value="" style="width:100%" class="inpTxt"></td>
  260.       <td><input type="button" value="" onclick="openAsset()" id="btnAsset" name="btnAsset" style="display:none;background:url('openAsset.gif');width:23px;height:18px;border:#a5acb2 1px solid;margin-left:1px;"></td>
  261.       </tr>
  262.       </table>    
  263.     </td>
  264.   </tr>
  265.   <tr>
  266.     <td nowrap><span id="txtLang" name="txtLang">Width</span>:</td>
  267.     <td colspan="4"><input type="text" name="inpWidth" value=320 size=4 class="inpTxt"></td>
  268.   </tr>
  269.   <tr>
  270.     <td nowrap><span id="txtLang" name="txtLang">Height</span>:</td>
  271.     <td colspan="4"><input type="text" name="inpHeight" value=290 size=4 class="inpTxt"></td>
  272.   </tr>
  273.   <!--
  274.  <tr>
  275.    <td colspan="5"><hr>
  276.    </td>
  277.  </tr>
  278.  <tr>
  279.    <td><span id="txtLang" name="txtLang">Class ID</span>:&nbsp;&nbsp;</td>
  280.    <td colspan="4">
  281.      <select name="inpCLassID">
  282.      <option value="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" selected>CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95</option>
  283.      <option value="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6">CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6</option>
  284.      </select>
  285.    </td>
  286.  </tr>
  287.  <tr>
  288.    <td colspan="5" height="7px">
  289.    </td>
  290.  </tr>-->
  291.   <tr>
  292.     <td nowrap><span id="txtLang" name="txtLang">Auto Start</span>:</td>
  293.     <td>
  294.     <input type="checkbox" name="chkAutoStart" class="inpChk" checked>
  295.     </td>
  296.     <td colspan="3" rowspan="5">
  297.       &nbsp;
  298.     </td>
  299.   </tr>
  300.   <tr>
  301.     <td nowrap><span id="txtLang" name="txtLang">Show Controls</span>:</td>
  302.     <td nowrap>
  303.     <input type="checkbox" name="chkShowControls" class="inpChk" checked>
  304.     </td>
  305.   </tr>
  306.   <tr style='display:none'>
  307.     <td nowrap><span id="txtLang" name="txtLang">Show Status Bar</span>:</td>
  308.     <td nowrap>
  309.     <input type="checkbox" name="chkShowStatusBar" class="inpChk">
  310.     </td>
  311.   </tr>
  312.   <tr  style='display:none'>
  313.     <td nowrap><span id="txtLang" name="txtLang">Show Display</span>:</td>
  314.     <td nowrap>
  315.     <input type="checkbox" name="chkShowDisplay" class="inpChk">
  316.     </td>
  317.   </tr>
  318.   <tr>
  319.     <td nowrap><span id="txtLang" name="txtLang">Auto Rewind</span>:</td>
  320.     <td nowrap>
  321.     <input type="checkbox" name="chkAutoRewind" class="inpChk" checked>
  322.     </td>
  323.   </tr>
  324.   </table>
  325.  
  326. </td>
  327. </tr>
  328. <tr>
  329. <td class="dialogFooter" style="padding:6;" align="right">
  330.   <table cellpadding=1 cellspacing=0>
  331.   <tr>
  332.   <td>
  333.   <input type="button" name=btnCancel id=btnCancel value="cancel" onclick="self.close()" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  334.   </td>
  335.   <td>
  336.   <input type="button" name=btnInsert id=btnInsert value="insert" onclick="insertMedia();self.close()" style="display:block" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  337.   </td>
  338.   <td>  
  339.   <input type="button" name=btnApply id=btnApply value="apply" onclick="updateMedia()" style="display:none" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  340.   </td>
  341.   <td>  
  342.   <input type="button" name=btnOk id=btnOk value=" ok " onclick="updateMedia();self.close()" style="display:none;" class="inpBtn" onmouseover="this.className='inpBtnOver';" onmouseout="this.className='inpBtnOut'">
  343.   </td>
  344.   </tr>
  345.   </table>
  346. </td>
  347. </tr>
  348. </table>
  349.  
  350. </body>
  351. </html>
downloadmedia.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