source: hotpotatoes/trunk/fuentes/javahotpot/source/source_copy/hp6buttons.js_ @ 201

Last change on this file since 201 was 201, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 904 bytes
Line 
1
2//CODE FOR HANDLING NAV BUTTONS AND FUNCTION BUTTONS
3
4//[strNavBarJS]
5function NavBtnOver(Btn){
6        if (Btn.className != 'NavButtonDown'){Btn.className = 'NavButtonUp';}
7}
8
9function NavBtnOut(Btn){
10        Btn.className = 'NavButton';
11}
12
13function NavBtnDown(Btn){
14        Btn.className = 'NavButtonDown';
15}
16//[/strNavBarJS]
17
18function FuncBtnOver(Btn){
19        if (Btn.className != 'FuncButtonDown'){Btn.className = 'FuncButtonUp';}
20}
21
22function FuncBtnOut(Btn){
23        Btn.className = 'FuncButton';
24}
25
26function FuncBtnDown(Btn){
27        Btn.className = 'FuncButtonDown';
28}
29
30function FocusAButton(){
31        if (document.getElementById('CheckButton1') != null){
32                document.getElementById('CheckButton1').focus();
33        }
34        else{
35                if (document.getElementById('CheckButton2') != null){
36                        document.getElementById('CheckButton2').focus();
37                }
38                else{
39                        document.getElementsByTagName('button')[0].focus();
40                }
41        }
42}
Note: See TracBrowser for help on using the repository browser.