home *** CD-ROM | disk | FTP | other *** search
- /*
- * webctrl.js
- *
- * Copyright (c) 1997 Netscape Communications Corporation, All Rights Reserved
- *
- * Functions to deal with the web toolbar
- */
-
- var lastHiliteBtn = "";
- var allDisabled = true;
- var backDisabled = true;
- var fwdDisabled = true;
-
- function toolbarHilite(buttonName)
- {
- if (lastHiliteBtn != "")
- toolbarLolite(lastHiliteBtn);
-
- document.layers[buttonName].visibility='show';
- lastHiliteBtn = buttonName;
- }
-
- function toolbarLolite(buttonName)
- {
- document.layers[buttonName].visibility='hide';
- }
-
- function fixButtons(webtop)
- {
- if (webtop && webtop != null) {
- // First do security.
- if (webtop.secure) {
- document.layers['secureImage'].visibility='show';
- }
- else
- document.layers['secureImage'].visibility='hide';
- document.layers['backGrey'].visibility='hide';
- backDisabled = false;
- document.layers['fwdGrey'].visibility='hide';
- fwdDisabled = false;
- document.layers['allGrey'].visibility='hide';
- allDisabled = false;
-
- }
- else {
- document.layers['backGrey'].visibility='show';
- backDisabled = true;
- document.layers['fwdGrey'].visibility='show';
- fwdDisabled = true;
- document.layers['allGrey'].visibility='show';
- allDisabled = true;
- document.layers['secureImage'].visibility='hide';
- }
- }
-
- function GoBack()
- {
- desktopMgr = desktopMgrWindow.GetDesktopManager();
-
- desktopMgr.back();
- }
-
- function GoForward()
- {
- desktopMgr = desktopMgrWindow.GetDesktopManager();
-
- desktopMgr.forward();
- }
-
- function UpdateWebtop()
- {
- desktopMgr = desktopMgrWindow.GetDesktopManager();
-
- desktopMgr.update();
- }
-
- function ShowHideWebtop()
- {
- desktopMgr = desktopMgrWindow.GetDesktopManager();
-
- desktopMgr.toggle();
- }
-
- function FrontBackWebtop()
- {
- desktopMgr = desktopMgrWindow.GetDesktopManager();
-
- desktopMgr.toggleTop();
- }
-
- function CloseWebtop()
- {
- desktopMgr = desktopMgrWindow.GetDesktopManager();
-
- desktopMgr.closeWebtop();
- }
-
- function PrintWebtop()
- {
- desktopMgr = desktopMgrWindow.GetDesktopManager();
-
- desktopMgr.print();
- }
-
- function OpenNavigator()
- {
- desktopMgr = desktopMgrWindow.GetDesktopManager();
-
- desktopMgr.openNavigator();
- // desktopMgrWindow.parent.opener.HideSelector();
- }
-
- void(0);
-
-