1
[%# 1.0@bugzilla.org %]
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Gervase Markham <gerv@gerv.net>
23
[% cgi = Bugzilla.cgi %]
26
[% IF cgi.user_agent("Mozilla/5") %]
27
<style type="text/css">
30
border-color: #F0A000;
31
background-color: #FFFFFF;
37
<script type="application/x-javascript">
41
for (var i = 0; i < document.forms.length; i++) {
42
for (var j = 0; j < document.forms[i].elements.length; j++) {
43
[%# MS decided to add fieldsets to the elements array; and
44
# Mozilla decided to copy this brokenness. Grr.
46
if (document.forms[i].elements[j].tagName != 'FIELDSET') {
47
document.forms[i].elements[j].onmouseover = showHelp;
52
document.body.onclick = hideHelp;
57
var newHelp = document.getElementById(this.name + '_help');
59
currentHelp = newHelp;
61
var mytop = this.offsetTop;
62
var myleft = this.offsetLeft;
63
var myparent = this.offsetParent;
64
while (myparent.tagName != 'BODY') {
65
mytop = mytop + myparent.offsetTop;
66
myleft = myleft + myparent.offsetLeft;
67
myparent = myparent.offsetParent;
70
currentHelp.style.top = mytop + this.offsetHeight + 5;
71
currentHelp.style.left = myleft;
72
currentHelp.style.display='';
78
currentHelp.style.display='none';
84
<script type="text/javascript">
86
[%# Avoid warnings by having a dummy function %]
87
function initHelp() {}