亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? general.js

?? java web網絡編程示例,原代碼資源
?? JS
字號:
/*
 * File   : $Source: /usr/local/cvs/opencms/modules/org.opencms.workplace.administration/resources/system/workplace/resources/admin/javascript/general.js,v $
 * Date   : $Date: 2007-07-04 16:57:39 $
 * Version: $Revision: 1.15 $
 *
 * This library is part of OpenCms -
 * the Open Source Content Mananagement System
 *
 * Copyright (C) 2005 Alkacon Software GmbH (http://www.alkacon.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * For further information about Alkacon Software GmbH, please see the
 * company website: http://www.alkacon.com
 *
 * For further information about OpenCms, please see the
 * project website: http://www.opencms.org
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

/*
 * Returns the current documents height.
 */
function pHeight () {
  var h;
  var test1 = document.body.scrollHeight;
  var test2 = document.body.offsetHeight;
  if (test1 > test2) {// all but Explorer Mac
    h = test1;
  } else {// Explorer Mac;
     //would also work in Explorer 6 Strict, Mozilla and Safari
    h = test2;
  }
  return h;
}

/*
 * Returns the current documents width.
 */
function pWidth() {
  var w;
  var test1 = document.body.scrollWidth;
  var test2 = document.body.offsetWidth;
  if (test1 > test2) {// all but Explorer Mac
    w = test1;
  } else {// Explorer Mac;
     //would also work in Explorer 6 Strict, Mozilla and Safari
    w = test2;
  }
  return w;
}

/*
 * Returns the current windows height.
 */
function wHeight() {
  var h;
  if (self.innerHeight) {// all except Explorer
    h = self.innerHeight;
  } else if (document.documentElement && document.documentElement.clientHeight) {
    // Explorer 6 Strict Mode
    h = document.documentElement.clientHeight;
  } else if (document.body) { // other Explorers
    h = document.body.clientHeight;
  } else {
    h = 0;
  }
  return h;
}

/*
 * Returns the current windows width.
 */
function wWidth() {
  var w;
  if (self.innerWidth) {// all except Explorer
    w = self.innerWidth;
  } else if (document.documentElement && document.documentElement.clientWidth) {
    // Explorer 6 Strict Mode
    w = document.documentElement.clientWidth;
  } else if (document.body) { // other Explorers
    w = document.body.clientWidth;
  } else {
    w = 0;
  }
  return w;
}

/*
 * Returns the form that contains the control with the given id.
 */
function getFormForId(id) {
  return document.getElementById(id).form;
}

/*
 * Opens a new page in the right frame.
 * It also shows the loading screen during loading
 */
function openPage(url) {
    var target = isFramed() ? parent.admin_content : this;
    if (!isFramed()) {
       if (parent.parent && parent.parent.admin_content) {
           target = parent.parent.admin_content;
       }
    }
    openPageIn(url, target);
}

/*
 * Opens a new page in the given target frame.
 * It also shows the loading screen during loading
 */
function openPageIn(url, target) {
    loadingOn();
    target.location.href = url;
}

/*
 * Sets the current displayed context help.
 * It only works if framed.
 */
function setContextHelp(contextHelp) {
    if (parent && parent.admin_menu && parent.admin_menu.setInternalContextHelp) {
        parent.admin_menu.setInternalContextHelp(contextHelp);
    } else if (parent && parent.parent && parent.parent.admin_menu && parent.parent.admin_menu.setInternalContextHelp) {
        parent.parent.admin_menu.setInternalContextHelp(contextHelp);
    }
}

/*
 * Sets the default context help.
 * It only works if framed.
 */
function setContext(defaultContext) {
    if (defaultContext) {
        parent.defContextHelp = defaultContext;
    }
    setContextHelp();
}

/*
 * Returns the default context help.
 * It only works if framed.
 */
function getContext() {
    if (parent && parent.defContextHelp) {
      return parent.defContextHelp;
    } else if (this.defContextHelp) {
      return this.defContextHelp;
    }
    return "";
}

/*
 * Sets the active item in the menu frame.
 * It only works if framed.
 */
function setActiveItemByName(name) {
    if (parent && parent.admin_menu && parent.admin_menu.setActiveItem) {
        parent.admin_menu.setActiveItem(name);
    } else if (parent && parent.parent && parent.parent.admin_menu && parent.parent.admin_menu.setActiveItem) {
        parent.parent.admin_menu.setActiveItem(name);
    }
}

/*
 * Shows the context help.
 * If framed, it will be shown in the menu frame;
 * if not, as a help ballon.
 * The obj_id argument should be the id of a div tag,
 * which contains the help text.
 */
function sMH(obj_id) {
   var t = false;
   if (parent && parent.parent && parent.parent.admin_content) {
     t = true;
   }
   if (!isFramed() && !t) {
     showHelp(obj_id);
   } else {
     var context = obj_id;
     var writezone = document.getElementById('help' + obj_id);
     if (writezone) {
       context = writezone.firstChild.nodeValue;
     }
     setContextHelp(context);
   }
}

/*
 * Hides the context help.
 * If framed, it will be shown in the menu frame;
 * if not, as a help ballon.
 * The obj_id argument should be the id of a div tag,
 * which contains the help text.
 */
function hMH(obj_id) {
   var t = false;
   if (parent && parent.parent && parent.parent.admin_content) {
     t = true;
   }
   if (!isFramed() && !t) {
     hideHelp(obj_id);
   } else {
     setContextHelp('');
   }
}

/*
 * Shows the context help when having one helptext for several buttons.
 * If framed, it will be shown in the menu frame;
 * if not, as a help ballon.
 * The obj_id argument should be the id of a div tag, where the ballon while be displayed.
 * The help_id argument should be the id of a div tag, which contains the help text.
 */
function sMHS(obj_id, help_id) {
   var t = false;
   if (parent && parent.parent && parent.parent.admin_content) {
     t = true;
   }
   if (!isFramed() && !t) {
     showHelpX(obj_id, help_id);
   } else {
     var context = obj_id;
     var writezone = document.getElementById('help' + help_id);
     if (writezone) {
       context = writezone.firstChild.nodeValue;
     }
     setContextHelp(context);
   }
}

/*
 * This method is called everytime a new page is being loaded.
 * That is at unload, submit and links actions.
 * First it overlap a image so you will feel the page
 * is disabled, and then it disables every combobox
 * on the page.
 */
function loadingOn(target) {
    if (undefined == target || target == '') {
        // set default target
        target = this;
    }
    if (undefined == target.disabledControls) {
        // create a new array of disabled controls
        target.disabledControls = new Array();
    } else if (target.disabledControls.length > 0) {
        // if already disabled returns, should never happen
        return true;
    }

    // display an overlapped "disabled" image
    try {
    	target.document.getElementById("loaderContainer").style.display = "";
	} catch (e) {}
    // disable the combo boxes
    var comboArray = target.document.getElementsByTagName("select");
    for (var i = 0; i < comboArray.length; i++) {
        comboArray[i].disabled = true;
        disabledControls.pop(comboArray[i]);
        var combo = target.document.createElement("input");
        combo.type = "hidden";
        combo.name = comboArray[i].name;
        var values = new Array();
        for (var n = 0; n < comboArray[i].length; n++) {
            if (comboArray[i][n].selected) {
                values[values.length] = comboArray[i][n].value;
            }
        }
        combo.value = values.join(",");
        comboArray[i].parentNode.insertBefore(combo, comboArray[i]);
    }

    return true;
}

/*
 * This method is called everytime a new page is ready to be used.
 * That is at body.onload event.
 * First it removes the overlapped "disabled" image, and then it
 * enables every combobox on the page.
 */
function loadingOff(target) {
    if (undefined == target || target == '') {
        // set default target
        target = this;
    }

    // hide the overlapped "disabled" image
    target.document.getElementById("loaderContainer").style.display = "none";

    if (undefined == target.disabledControls) {
        // if nothing to enable
        return true;
    }

    // enable the combo boxes
    while (disabledControls.legth > 0) {
        var combo = disabledControls.push();
        combo.disabled = false;

        var comboArray = target.document.getElementsByName(combo.name);
        for (var n = 0; n < comboArray.length; n++) {
            if ("hidden" == comboArray[n].type)
                comboArray[n].parent.removeChild(comboArray[n]);
        }
    }
    return true;
}

/*
 * Submits a form, showing the loading screen during loading.
 */
function submitForm(theForm) {
    loadingOn();
    theForm.submit();
    return true;
}

/*
 * Checks is we are working in the admin-view framed environment.
 */
function isFramed() {
    return parent && parent.admin_content && parent.admin_menu;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本精品裸体写真集在线观看 | 国产在线视频一区二区| 亚洲视频一区二区在线观看| 久久综合色天天久久综合图片| 91精品国产日韩91久久久久久| 在线播放国产精品二区一二区四区| 色偷偷久久一区二区三区| 91视视频在线观看入口直接观看www | 色婷婷综合久久久中文字幕| 99re8在线精品视频免费播放| 精品国产一区久久| 国产精品第五页| 夜夜嗨av一区二区三区四季av| 亚洲丝袜自拍清纯另类| 亚洲理论在线观看| 天天色天天爱天天射综合| 香蕉乱码成人久久天堂爱免费| 亚洲大片在线观看| 精品一区二区日韩| av一本久道久久综合久久鬼色| 欧美在线免费观看亚洲| 欧美肥胖老妇做爰| 国产嫩草影院久久久久| 玉足女爽爽91| 久久精品国产**网站演员| 99亚偷拍自图区亚洲| 欧美精品一卡两卡| 久久久久久久综合| 亚洲成av人在线观看| 国产一区啦啦啦在线观看| 色婷婷久久综合| 精品国产一区二区三区久久久蜜月| 亚洲国产精品传媒在线观看| 亚洲一区二区三区国产| 激情久久五月天| 91电影在线观看| 久久久高清一区二区三区| 亚洲精品中文字幕在线观看| 久久精品99国产精品| 色菇凉天天综合网| 久久精品视频免费| 日韩成人av影视| 色香蕉久久蜜桃| 2014亚洲片线观看视频免费| 亚洲综合色视频| 成人黄页毛片网站| 26uuu亚洲综合色| 视频一区二区中文字幕| 91蜜桃传媒精品久久久一区二区| 欧美一区二区三区白人| 亚洲女厕所小便bbb| 国产成人亚洲精品狼色在线| 777午夜精品免费视频| 亚洲丝袜另类动漫二区| 粉嫩欧美一区二区三区高清影视| 欧美一级片免费看| 亚洲一二三专区| 99re免费视频精品全部| 国产精品沙发午睡系列990531| 久久精品噜噜噜成人av农村| 欧美久久一二三四区| 亚洲三级视频在线观看| 成人丝袜视频网| 国产欧美一区二区精品婷婷| 国产一区二区三区久久久| 欧美xxx久久| 久久精品国产精品亚洲精品| 欧美高清hd18日本| 亚洲一区二区三区四区不卡| 色拍拍在线精品视频8848| 中文字幕在线观看一区| 99天天综合性| 一区二区三区日韩精品视频| 99国产精品久| 一区二区三区在线观看国产 | 国产精品欧美极品| 国产白丝网站精品污在线入口| 26uuu国产日韩综合| 国产福利一区二区三区| 国产精品嫩草影院av蜜臀| 成人精品小蝌蚪| 亚洲精品久久久蜜桃| 欧美亚洲动漫另类| 午夜欧美视频在线观看| 精品伦理精品一区| 国产成人综合精品三级| 日韩一区在线看| 在线观看成人小视频| 三级在线观看一区二区| www国产成人| 成a人片亚洲日本久久| 亚洲一区二区视频在线| 日韩精品最新网址| 国产成a人无v码亚洲福利| 亚洲免费在线电影| 欧美电影在哪看比较好| 国产高清久久久| 亚洲乱码国产乱码精品精的特点| 欧美日韩在线精品一区二区三区激情| 日韩av一区二区三区| 久久久久高清精品| 色先锋久久av资源部| 玖玖九九国产精品| 亚洲免费观看在线视频| 51精品秘密在线观看| 成人爽a毛片一区二区免费| 一区二区视频在线| 26uuu欧美| 欧美日韩一级片网站| 久99久精品视频免费观看| 中文字幕制服丝袜一区二区三区| 欧美图区在线视频| 国产福利不卡视频| 日韩国产精品久久久久久亚洲| 国产三级一区二区| 欧美二区在线观看| 99久久久国产精品免费蜜臀| 免费在线观看不卡| 亚洲视频网在线直播| 久久综合色婷婷| 欧美精品九九99久久| 日本vs亚洲vs韩国一区三区二区 | 91精品国产综合久久蜜臀| 国产一区不卡精品| 亚洲欧美福利一区二区| 精品久久久久久久久久久院品网| 日本二三区不卡| 成人av资源在线| 麻豆精品一区二区av白丝在线| 亚洲久本草在线中文字幕| 欧美国产日韩亚洲一区| 欧美电视剧在线看免费| 56国语精品自产拍在线观看| 91香蕉视频污| 成人av网址在线| 国产精品白丝jk白祙喷水网站| 午夜精品一区二区三区三上悠亚| 亚洲欧美另类小说视频| 欧美国产成人精品| 国产欧美一区二区三区鸳鸯浴| 91精品麻豆日日躁夜夜躁| 欧美在线色视频| 在线观看av不卡| 91免费版在线| 91久久人澡人人添人人爽欧美 | 欧美日韩精品是欧美日韩精品| 国产丶欧美丶日本不卡视频| 黑人精品欧美一区二区蜜桃 | 亚洲国产精品二十页| 久久免费国产精品| 久久青草欧美一区二区三区| 精品欧美久久久| 久久免费视频色| 国产日韩欧美高清| 亚洲欧洲精品成人久久奇米网| 国产精品婷婷午夜在线观看| 欧美激情在线一区二区| 日本一区免费视频| 中文字幕一区二区三区不卡在线| 欧美韩国日本不卡| 中文字幕 久热精品 视频在线 | 国产欧美一区二区三区鸳鸯浴 | 色狠狠桃花综合| 精品视频一区二区三区免费| 9191国产精品| 久久亚区不卡日本| 一区在线中文字幕| 一区二区高清免费观看影视大全| 亚洲久本草在线中文字幕| 亚洲妇熟xx妇色黄| 日本中文在线一区| 国产精品456| 色婷婷av一区| 欧美一区二区三区四区高清 | 欧美三级电影精品| 日韩一区二区精品葵司在线| 久久久91精品国产一区二区三区| 国产欧美一区二区精品忘忧草| 中文字幕欧美一区| 日韩不卡免费视频| www.综合网.com| 91精品婷婷国产综合久久性色| 精品国产亚洲一区二区三区在线观看| 久久免费电影网| 亚洲一区二区三区免费视频| 极品销魂美女一区二区三区| 99久久精品99国产精品| 欧美一级在线免费| 国产精品久久久久永久免费观看| 亚洲成人综合在线| 处破女av一区二区| 欧美一级欧美三级在线观看| 中文字幕在线观看不卡| 九色综合狠狠综合久久| 色婷婷久久久久swag精品| 精品久久久久久久久久久久久久久| 国产精品乱人伦中文| 日本免费新一区视频| 色拍拍在线精品视频8848| 国产亚洲成年网址在线观看|