You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2004/04/28 09:43:05 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/resources/menu menu.js

andreas     2004/04/28 00:43:05

  Added:       src/webapp/lenya/resources/menu/images admin_inactive.gif
                        authoring_inactive.gif unten.gif lenya_oben.gif
                        authoring_active.gif grau.gif edit.gif search.gif
                        staging_active.gif help.gif grau-bg3.gif
                        bottombg.gif frame-bg_oben.gif info_inactive.gif
                        pixel.gif grau-bg.gif lenya_unten.gif
                        blau_anfang.gif menu_bg_anfang2.gif
                        staging_inactive.gif menu-bg_2.gif lenya.gif
                        dotted.gif live_inactive.gif menu-bg_anfang.gif
                        file.gif blau_anfang_oben.gif menu-bg.gif
                        grau-bg2.gif admin_active.png info_active.gif
                        lenya_oben_2.gif admin_active.gif grau-bg4.gif
               src/webapp/lenya/resources/menu menu.js
  Removed:     src/webapp/lenya/resources/misc/menu/images grau.gif
                        grau-bg4.gif admin_inactive.gif menu-bg_2.gif
                        blau_anfang.gif file.gif authoring_inactive.gif
                        staging_active.gif pixel.gif grau-bg.gif
                        lenya_unten.gif info_active.gif
                        authoring_active.gif lenya_oben_2.gif
                        info_inactive.gif bottombg.gif staging_inactive.gif
                        admin_active.png blau_anfang_oben.gif grau-bg2.gif
                        help.gif menu_bg_anfang2.gif unten.gif lenya.gif
                        lenya_oben.gif frame-bg_oben.gif admin_active.gif
                        dotted.gif edit.gif menu-bg_anfang.gif menu-bg.gif
                        grau-bg3.gif live_inactive.gif search.gif
               src/webapp/lenya/resources/misc/menu menu.js
  Log:
  moved menu resources one directory up
  
  Revision  Changes    Path
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/admin_inactive.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/authoring_inactive.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/unten.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/lenya_oben.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/authoring_active.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/grau.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/edit.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/search.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/staging_active.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/help.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/grau-bg3.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/bottombg.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/frame-bg_oben.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/info_inactive.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/pixel.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/grau-bg.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/lenya_unten.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/blau_anfang.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/menu_bg_anfang2.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/staging_inactive.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/menu-bg_2.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/lenya.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/dotted.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/live_inactive.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/menu-bg_anfang.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/file.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/blau_anfang_oben.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/menu-bg.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/grau-bg2.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/admin_active.png
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/info_active.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/lenya_oben_2.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/admin_active.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/images/grau-bg4.gif
  
  	<<Binary file>>
  
  
  1.1                  cocoon-lenya/src/webapp/lenya/resources/menu/menu.js
  
  Index: menu.js
  ===================================================================
  /*
  * Copyright 1999-2004 The Apache Software Foundation
  *
  * 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 initialize()
          //runs at onload of window
          {
          userEventsInit(); //set up all user events
          document.onmousemove = mousePosition; //moz
          }
  
  var mouseX = mouseY =0;
  menus = new Array("File","Search","Help","Debug")
  var allEvents = new Array()
  var activeMenu = null; //defines which menu is currently open
  
  function screenObject()
          {
  
          this.bottom = function(){
                  if (document.body.scrollHeight) return document.body.scrollHeight};
  
          this.height = function() {
                  if (document.body.offsetHeight) return document.body.offsetHeight;}
  
          this.visHeight = function() {
                  if (window.innerHeight) return window.innerHeight;
                  if (document.body.clientHeight) return document.body.clientHeight;}
  
          this.width = function() {
                  if (document.body.offsetWidth) return document.body.offsetWidth;}
  
          this.scrollTop = function() {
                  if(document.body.scrollTop) return document.body.scrollTop
                  if (window.pageYOffset) return window.pageYOffset;
                  else return 0;};
  
  
          }
  
  function mousePosition(e)
          {
          if (e) event = e;   //for Netscape
          mouseX = event.clientX;
          mouseY = event.clientY;
          }
  
  function menuOver()
          {
          document.onclick = null;
          if (document.all) event.cancelBubble=true
          }
  function menuOut()
          {
          document.onclick = eventHideMenu;
          if (document.all) event.cancelBubble=true
          }
  
  function eventShowPopUp(target)
          //this will display info pop ups, for example art event details
  
          {
          if (activeMenu != null) eventHideMenu()
          activeMenu = target;
          obj = document.getElementById(activeMenu)
          obj.style.display = "block"
          if (event) event.cancelBubble=true
          }
  
  function eventShowArtPopUp(target)
          //this will display info pop ups, for example art event details
  
          {
  
          if (activeMenu != null) eventHideMenu()
          activeMenu = target;
          obj = document.getElementById(activeMenu)
          obj.style.display = "block"
          obj.style.visibility = "visible"
  
          obj.style.top = -20+mouseY+ihtScreen.scrollTop()+"px"
          if (event) event.cancelBubble=true
          }
  
  function eventShowMenu(e)
          //turns on the display for nav menus
          {
          if (activeMenu != null) eventHideMenu()
          activeMenu = "menu"+this.id.substring(3,this.id.length)
          obj = document.getElementById(activeMenu)
          if (obj) obj.style.visibility = "visible"
          if (document.all) document.onclick = eventHideMenu;
          event.cancelBubble=true
  
          }
  
  function eventHideMenu()
          //hides nav menus and pop ups
          {
          document.onclick = null;
          if (activeMenu != null)
                  {
                  obj = document.getElementById(activeMenu)
                  obj.style.visibility = "hidden"
                  }
          }
  
  function userEventsInit()
          {
          //nav events
                  for (i=0; i < menus.length; i++)
                  {
                  obj = document.getElementById("nav"+menus[i])
                  obj.onclick = eventShowMenu;
  
                  obj = document.getElementById("menu"+menus[i])
                  obj.onmouseover = menuOver;
                  obj.onmouseout = menuOut;
                  }
  
   }
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org