LDAPAccountManager/lam/lib/functions.js

131 lines
3.4 KiB
JavaScript
Raw Normal View History

2003-05-02 11:49:40 +00:00
/*
$Id$
2003-05-02 11:49:40 +00:00
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2003 Roland Gruber
2003-05-02 11:49:40 +00:00
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
2003-05-02 11:49:40 +00:00
This program 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 General Public License for more details.
2003-05-02 11:49:40 +00:00
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2003-05-02 11:49:40 +00:00
*/
// functions for row checking and mouseOver effects
// mouseOver function
function user_over(list, box) {
cbox = document.getElementsByName(box)[0];
if (cbox.checked == false) list.setAttribute('class','userlist-over', 0);
}
// mouseOut function
function user_out(list, box) {
cbox = document.getElementsByName(box)[0];
if (cbox.checked == false) list.setAttribute('class','userlist', 0);
}
// onClick function
function user_click(list, box) {
cbox = document.getElementsByName(box)[0];
if (cbox.checked == true) {
cbox.checked = false;
list.setAttribute('class','userlist-over', 0);
}
else {
cbox.checked = true;
list.setAttribute('class','userlist-checked', 0);
}
}
2003-07-26 11:11:25 +00:00
// mouseOver function
function group_over(list, box) {
cbox = document.getElementsByName(box)[0];
2003-06-05 19:53:23 +00:00
if (cbox.checked == false) list.setAttribute('class','grouplist-over', 0);
}
// mouseOut function
function group_out(list, box) {
cbox = document.getElementsByName(box)[0];
if (cbox.checked == false) list.setAttribute('class','grouplist', 0);
}
// onClick function
function group_click(list, box) {
cbox = document.getElementsByName(box)[0];
if (cbox.checked == true) {
cbox.checked = false;
2003-06-05 19:53:23 +00:00
list.setAttribute('class','grouplist-over', 0);
}
else {
cbox.checked = true;
2003-06-05 19:53:23 +00:00
list.setAttribute('class','grouplist-checked', 0);
}
}
2003-07-26 11:11:25 +00:00
// mouseOver function
function host_over(list, box) {
cbox = document.getElementsByName(box)[0];
2003-06-05 19:53:23 +00:00
if (cbox.checked == false) list.setAttribute('class','hostlist-over', 0);
}
// mouseOut function
function host_out(list, box) {
cbox = document.getElementsByName(box)[0];
if (cbox.checked == false) list.setAttribute('class','hostlist', 0);
}
// onClick function
function host_click(list, box) {
cbox = document.getElementsByName(box)[0];
if (cbox.checked == true) {
cbox.checked = false;
2003-06-05 19:53:23 +00:00
list.setAttribute('class','hostlist-over', 0);
}
else {
cbox.checked = true;
2003-06-05 19:53:23 +00:00
list.setAttribute('class','hostlist-checked', 0);
}
2003-05-02 11:49:40 +00:00
}
2003-07-26 11:11:25 +00:00
// mouseOver function
function domain_over(list, box) {
cbox = document.getElementsByName(box)[0];
if (cbox.checked == false) list.setAttribute('class','domainlist-over', 0);
}
// mouseOut function
function domain_out(list, box) {
cbox = document.getElementsByName(box)[0];
if (cbox.checked == false) list.setAttribute('class','domainlist', 0);
}
// onClick function
function domain_click(list, box) {
cbox = document.getElementsByName(box)[0];
if (cbox.checked == true) {
cbox.checked = false;
list.setAttribute('class','domainlist-over', 0);
}
else {
cbox.checked = true;
list.setAttribute('class','domainlist-checked', 0);
}
}