mirror of
https://github.com/moodle/moodle.git
synced 2025-02-22 02:49:53 +01:00
43 lines
904 B
Plaintext
43 lines
904 B
Plaintext
|
|
//CODE FOR HANDLING NAV BUTTONS AND FUNCTION BUTTONS
|
|
|
|
//[strNavBarJS]
|
|
function NavBtnOver(Btn){
|
|
if (Btn.className != 'NavButtonDown'){Btn.className = 'NavButtonUp';}
|
|
}
|
|
|
|
function NavBtnOut(Btn){
|
|
Btn.className = 'NavButton';
|
|
}
|
|
|
|
function NavBtnDown(Btn){
|
|
Btn.className = 'NavButtonDown';
|
|
}
|
|
//[/strNavBarJS]
|
|
|
|
function FuncBtnOver(Btn){
|
|
if (Btn.className != 'FuncButtonDown'){Btn.className = 'FuncButtonUp';}
|
|
}
|
|
|
|
function FuncBtnOut(Btn){
|
|
Btn.className = 'FuncButton';
|
|
}
|
|
|
|
function FuncBtnDown(Btn){
|
|
Btn.className = 'FuncButtonDown';
|
|
}
|
|
|
|
function FocusAButton(){
|
|
if (document.getElementById('CheckButton1') != null){
|
|
document.getElementById('CheckButton1').focus();
|
|
}
|
|
else{
|
|
if (document.getElementById('CheckButton2') != null){
|
|
document.getElementById('CheckButton2').focus();
|
|
}
|
|
else{
|
|
document.getElementsByTagName('button')[0].focus();
|
|
}
|
|
}
|
|
}
|