OSDN Git Service

replaced all files
[vem/WITs.git] / JS / option.js
1 // 背景色赤
2 function bgColChangeDefault() {
3     document.body.style.backgroundImage = 'url(./img/psbg.png)';
4 }
5
6 // 背景色青
7 function bgColChangeWhite() {
8     document.body.style.backgroundImage = 'url(img/white_background.png)';
9 }
10
11 // 背景色緑
12 function bgColChangeGrey() {
13     document.body.style.backgroundImage = 'url(img/wg.gif)';
14 }
15
16 function FocusTab(tabname) {
17     // タブの色
18     document.getElementById('mtab1').style.backgroundColor = '#005b95';
19     document.getElementById('mtab2').style.backgroundColor = '#005b95';
20     document.getElementById('mtab3').style.backgroundColor = '#005b95';
21     document.getElementById('mtab4').style.backgroundColor = '#005b95';
22     document.getElementById('mtab5').style.backgroundColor = '#005b95';
23     //document.getElementById('mtab6').style.backgroundColor = '#005b95';
24     //document.getElementById('mtab7').style.backgroundColor = '#005b95';
25     document.getElementById('mtab8').style.backgroundColor = '#005b95';
26     // 指定箇所のみ色を変更
27     if (tabname) {
28         document.getElementById(tabname).style.backgroundColor = '#008BBB';
29     }
30 }
31
32 function invalidtabh() {
33     console.log("invalidtab()");
34     document.getElementById('mtab3').style.backgroundColor = '#005b95';
35     var mtab31 = document.getElementById('mtab31');
36     mtab31.disabled = true;
37     mtab31.removeAttribute( "href" );
38 }
39
40 function FocusTabh(tabname) {
41     // タブの色
42     document.getElementById('mtab1').style.backgroundColor = '#005b95';
43     document.getElementById('mtab2').style.backgroundColor = '#005b95';
44     document.getElementById('mtab4').style.backgroundColor = '#005b95';
45     document.getElementById('mtab3').style.backgroundColor = '#005b95';
46     document.getElementById('mtab5').style.backgroundColor = '#005b95';
47     //document.getElementById('mtab6').style.backgroundColor = '#005b95';
48     //document.getElementById('mtab7').style.backgroundColor = '#005b95';
49     document.getElementById('mtab8').style.backgroundColor = '#005b95';
50     // 指定箇所のみ色を変更
51     if (tabname) {
52         document.getElementById(tabname).style.backgroundColor = '#008BBB';
53     }
54 }
55
56