$Log$
+Revision 619.8 2005/06/21 02:27:37 ajc
+* Moved some JavaScript functions out of head.html and into a new wclib.js
+ file, which can be included and cached. This will form the basis for a
+ new WebCit JavaScript function library.
+
Revision 619.7 2005/06/20 20:38:50 ajc
* The main stylesheet is now in a separate file in the static/ directory.
Something we did recently must have fixed the caching problem, because it's
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
"<li><div align=\"center\">"
"<A HREF=\"/display_customize_iconbar\" "
"TITLE=\"Customize this menu\" "
- ">customize this menu</A>"
+ ">customize this menu"
"</A></div></li>\n"
);
<meta http-equiv="expired" content="28-May-1971 18:10:00 GMT" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<link href="/static/webcit.css" rel="stylesheet" type="text/css">
-
-<script language="JavaScript">
-
-var browserType;
-
-if (document.layers) {browserType = "nn4"}
-if (document.all) {browserType = "ie"}
-if (window.navigator.userAgent.toLowerCase().match("gecko")) {
- browserType= "gecko"
-}
-
-function hide_page_popup() {
- if (browserType == "gecko" )
- document.poppedLayer = eval('document.getElementById(\'page_popup\')');
- else if (browserType == "ie")
- document.poppedLayer = eval('document.all[\'page_popup\']');
- else
- document.poppedLayer = eval('document.layers[\'`page_popup\']');
-document.poppedLayer.style.visibility = "hidden";
-}
-
-</script>
-
+<script type="text/javascript" src="static/wclib.js"></script>
</head>
<body>
+++ /dev/null
-/*
- * menuExpandable3.js - implements an expandable menu based on a HTML list
- * Author: Dave Lindquist (http://www.gazingus.org)
- */
-
-if (!document.getElementById)
- document.getElementById = function() { return null; }
-
-function initializeMenu(menuId, actuatorId) {
- var menu = document.getElementById(menuId);
- var actuator = document.getElementById(actuatorId);
-
- if (menu == null || actuator == null) return;
-
- //if (window.opera) return; // I'm too tired
-
- actuator.parentNode.style.backgroundImage = "url(/static/plus.gif)";
- actuator.onclick = function() {
- var display = menu.style.display;
- this.parentNode.style.backgroundImage =
- (display == "block") ? "url(/static/plus.gif)" : "url(/static/minus.gif)";
- menu.style.display = (display == "block") ? "none" : "block";
-
- return false;
- }
-}
-
-
-
--- /dev/null
+//
+// $Id$
+//
+// JavaScript function library for WebCit
+//
+//
+
+
+//
+// This code handles the popups for instant messages.
+//
+
+var browserType;
+
+if (document.layers) {browserType = "nn4"}
+if (document.all) {browserType = "ie"}
+if (window.navigator.userAgent.toLowerCase().match("gecko")) {
+ browserType= "gecko"
+}
+
+function hide_page_popup() {
+ if (browserType == "gecko" )
+ document.poppedLayer = eval('document.getElementById(\'page_popup\')');
+ else if (browserType == "ie")
+ document.poppedLayer = eval('document.all[\'page_popup\']');
+ else
+ document.poppedLayer = eval('document.layers[\'`page_popup\']');
+document.poppedLayer.style.visibility = "hidden";
+}