⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dhtml.js

📁 Hippo CMS是一个以信息为中心的开源内容管理系统。Hippo CMS目标是供中,大型企业来管理其发布在互连网
💻 JS
字号:
/*
* Copyright 2001-2007 Hippo (www.hippo.nl)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
function toggleVisibility(strID){
  obj = document.getElementById(strID);
  if(obj==null)
    return;
  //seems that the initial value = ''
  if(obj.style.display == 'none' || obj.style.display == '')
    obj.style.display = 'block';
  else obj.style.display = 'none';
}

function toggleToolbarVisibility(strID,parentId,containerId){

  obj = document.getElementById(strID);
  obj2 = document.getElementById(parentId);
  obj3 = document.getElementById(containerId);
  
  if(obj==null)
    return;
  //seems that the initial value = ''
  
  if(obj.style.display == 'none' || obj.style.display == '')
  {
    obj.style.display = 'block';
    obj2.style.zIndex = '150';    
    obj2.style.position = 'absolute';
    obj2.style.width = '180px';
    obj2.style.clear = 'left';
    /*obj2.style.float = 'left';*/
    obj3.style.width = '150px';
  }
  else
  {
    obj2.style.zIndex = '';
    obj2.style.position = '';
    
    obj2.style.width = '';
    obj2.style.clear = '';
    /*obj2.style.float = '';*/
    obj.style.display = 'none';
    obj3.style.width = '';
  }
}

function delayedClick(timeout,button){
  var func = function(){
    button.click();
  };
  setTimeout(func,timeout);
}

function delayedRefreshOnSave()
{
  var params = {};
  window.top.window.frames['topframe'].Application.sm.lookup('framework.eventmanager').fireEvent("refreshOnSave", params);
}

function submitEditingForm(id)
{
  window.top.window.frames['topframe'].openDocument("false");
  if(document.all)  
  { 
   	document.frames['hippoFrame'].document.documentForm.elements['submitid'].value=id;
    document.frames['hippoFrame'].document.documentForm.elements['saveform'].click();
    setTimeout('delayedRefreshOnSave()',2500);
  }
  else   
  { 
  	document.getElementById('hippoFrame').contentDocument.documentForm.elements['submitid'].value = id;
  	document.getElementById('hippoFrame').contentDocument.documentForm.elements['saveform'].click();
  	setTimeout('delayedRefreshOnSave()',2500);
  }
}

var i=0;
function resizeToolbar()
{
 	var difWidth = window.top.window.frames['topframe'].document.body.offsetWidth;
 	document.getElementById('toolbarDiv2').width = (difWidth + 200);
 	//alert(document.getElementById('toolbarDiv2').width);
}

function copyDocument(oldLocation,inputId,displayName,prefix)
{
  var copyURI = "/actions/copy("+oldLocation+","+ prefix +inputId.value+displayName+")";
  window.top.window.frames['mainframe'].hiddenframe.location=copyURI;
  inputId.value='';
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -