123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- /* 各ピクトグラム動作関数 */
- var tkekkon;
- function kekkon(){
- var ckekkon = 1;
- kekkonimg = new Array(4);
- kekkonimg[1] = "./css/img/life_kekkon_01.png";
- kekkonimg[2] = "./css/img/life_kekkon_02.png";
- kekkonimg[3] = "./css/img/life_kekkon_01.png";
- kekkonimg[4] = "./css/img/life_kekkon_02.png";
- kekkonUP();
- function kekkonUP(){
- tkekkon = setTimeout(kekkonUP,500);
- document.kekkon.src = kekkonimg[ckekkon];
- ckekkon = ckekkon + 1;
- if( ckekkon > 4 ){
- ckekkon = 1;
- }
- }
- }
-
- var tkenko;
- function kenko(){
- var ckenko = 1;
- kenkoimg = new Array(4);
- kenkoimg[1] = "./css/img/life_kenko_01.png";
- kenkoimg[2] = "./css/img/life_kenko_02.png";
- kenkoimg[3] = "./css/img/life_kenko_01.png";
- kenkoimg[4] = "./css/img/life_kenko_02.png";
- kenkoUP();
- function kenkoUP(){
- tkenko = setTimeout(kenkoUP,500);
- document.kenko.src = kenkoimg[ckenko];
- ckenko = ckenko + 1;
- if( ckenko > 4 ){
- ckenko = 1;
- }
- }
- }
-
- var tfukushi;
- function fukushi(){
- var cfukushi = 1;
- fukushiimg = new Array(4);
- fukushiimg[1] = "./css/img/life_kaigo_01.png";
- fukushiimg[2] = "./css/img/life_kaigo_02.png";
- fukushiimg[3] = "./css/img/life_kaigo_03.png";
- fukushiimg[4] = "./css/img/life_kaigo_04.png";
- fukushiUP();
- function fukushiUP(){
- tfukushi = setTimeout(fukushiUP,500);
- document.fukushi.src = fukushiimg[cfukushi];
- cfukushi = cfukushi + 1;
- if( cfukushi > 4 ){
- cfukushi = 1;
- }
- }
- }
-
- var tokuyami;
- function okuyami(){
- var cokuyami = 1;
- okuyamiimg = new Array(10);
- okuyamiimg[1] = "./css/img/life_okuyami_01.png";
- okuyamiimg[2] = "./css/img/life_okuyami_02.png";
- okuyamiimg[3] = "./css/img/life_okuyami_03.png";
- okuyamiimg[4] = "./css/img/life_okuyami_04.png";
- okuyamiimg[5] = "./css/img/life_okuyami_05.png";
- okuyamiimg[6] = "./css/img/life_okuyami_06.png";
- okuyamiimg[7] = "./css/img/life_okuyami_07.png";
- okuyamiimg[8] = "./css/img/life_okuyami_08.png";
- okuyamiimg[9] = "./css/img/life_okuyami_09.png";
- okuyamiimg[10] = "./css/img/life_okuyami_10.png";
- okuyamiUP();
- function okuyamiUP(){
- tokuyami = setTimeout(okuyamiUP,500);
- document.okuyami.src = okuyamiimg[cokuyami];
- cokuyami = cokuyami + 1;
- if( cokuyami > 10 ){
- cokuyami = 1;
- }
- }
- }
-
- var tninshin;
- function ninshin(){
- var cninshin = 1;
- ninshinimg = new Array(4);
- ninshinimg[1] = "./css/img/life_ninshin_01.png";
- ninshinimg[2] = "./css/img/life_ninshin_02.png";
- ninshinimg[3] = "./css/img/life_ninshin_03.png";
- ninshinimg[4] = "./css/img/life_ninshin_04.png";
- ninshinUP();
- function ninshinUP(){
- tninshin = setTimeout(ninshinUP,500);
- document.ninshin.src = ninshinimg[cninshin];
- cninshin = cninshin + 1;
- if( cninshin > 4 ){
- cninshin = 1;
- }
- }
- }
-
- var tkosodate;
- function kosodate(){
- var ckosodate = 1;
- kosodateimg = new Array(4);
- kosodateimg[1] = "./css/img/life_kosodate_01.png";
- kosodateimg[2] = "./css/img/life_kosodate_02.png";
- kosodateimg[3] = "./css/img/life_kosodate_03.png";
- kosodateimg[4] = "./css/img/life_kosodate_04.png";
- kosodateUP();
- function kosodateUP(){
- tkosodate = setTimeout(kosodateUP,500);
- document.kosodate.src = kosodateimg[ckosodate];
- ckosodate = ckosodate + 1;
- if( ckosodate > 4 ){
- ckosodate = 1;
- }
- }
- }
-
- var tsumai;
- function sumai(){
- var csumai = 1;
- sumaiimg = new Array(7);
- sumaiimg[1] = "./css/img/life_kurashi_01.jpg";
- sumaiimg[2] = "./css/img/life_kurashi_02.jpg";
- sumaiimg[3] = "./css/img/life_kurashi_03.jpg";
- sumaiimg[4] = "./css/img/life_kurashi_04.jpg";
- sumaiimg[5] = "./css/img/life_kurashi_05.jpg";
- sumaiimg[6] = "./css/img/life_kurashi_06.jpg";
- sumaiimg[7] = "./css/img/life_kurashi_07.jpg";
- sumaiUP();
- function sumaiUP(){
- tsumai = setTimeout(sumaiUP,500);
- document.sumai.src = sumaiimg[csumai];
- csumai = csumai + 1;
- if( csumai > 7 ){
- csumai = 1;
- }
- }
- }
-
- var tshomei;
- function shomei(){
- var cshomei = 1;
- shomeiimg = new Array(4);
- shomeiimg[1] = "./css/img/life_shoumei_01.png";
- shomeiimg[2] = "./css/img/life_shoumei_02.png";
- shomeiimg[3] = "./css/img/life_shoumei_03.png";
- shomeiimg[4] = "./css/img/life_shoumei_04.png";
- shomeiUP();
- function shomeiUP(){
- tshomei = setTimeout(shomeiUP,500);
- document.shomei.src = shomeiimg[cshomei];
- cshomei = cshomei + 1;
- if( cshomei > 4 ){
- cshomei = 1;
- }
- }
- }
-
-
- /* マウスオーバー・アウト */
- function smartRollover() {
- document.getElementById("kekkon").onmouseover = function() {
- kekkon();
- }
- document.getElementById("kekkon").onmouseout = function() {
- clearTimeout(tkekkon);
- document.kekkon.src = kekkonimg[1];
- }
- document.getElementById("kenko").onmouseover = function() {
- kenko();
- }
- document.getElementById("kenko").onmouseout = function() {
- clearTimeout(tkenko);
- document.kenko.src = kenkoimg[1];
- }
- document.getElementById("fukushi").onmouseover = function() {
- fukushi();
- }
- document.getElementById("fukushi").onmouseout = function() {
- clearTimeout(tfukushi);
- document.fukushi.src = fukushiimg[1];
- }
- document.getElementById("okuyami").onmouseover = function() {
- okuyami();
- }
- document.getElementById("okuyami").onmouseout = function() {
- clearTimeout(tokuyami);
- document.okuyami.src = okuyamiimg[1];
- }
- document.getElementById("ninshin").onmouseover = function() {
- ninshin();
- }
- document.getElementById("ninshin").onmouseout = function() {
- clearTimeout(tninshin);
- document.ninshin.src = ninshinimg[1];
- }
- document.getElementById("kosodate").onmouseover = function() {
- kosodate();
- }
- document.getElementById("kosodate").onmouseout = function() {
- clearTimeout(tkosodate);
- document.kosodate.src = kosodateimg[1];
- }
- document.getElementById("sumai").onmouseover = function() {
- sumai();
- }
- document.getElementById("sumai").onmouseout = function() {
- clearTimeout(tsumai);
- document.sumai.src = sumaiimg[1];
- }
- document.getElementById("shomei").onmouseover = function() {
- shomei();
- }
- document.getElementById("shomei").onmouseout = function() {
- clearTimeout(tshomei);
- document.shomei.src = shomeiimg[1];
- }
-
- document.kekkon.onmouseover = function() {
- kekkon();
- }
- document.kekkon.onmouseout = function() {
- clearTimeout(tkekkon);
- document.kekkon.src = kekkonimg[1];
- }
- document.kenko.onmouseover = function() {
- kenko();
- }
- document.kenko.onmouseout = function() {
- clearTimeout(tkenko);
- document.kenko.src = kenkoimg[1];
- }
- document.fukushi.onmouseover = function() {
- fukushi();
- }
- document.fukushi.onmouseout = function() {
- clearTimeout(tfukushi);
- document.fukushi.src = fukushiimg[1];
- }
- document.okuyami.onmouseover = function() {
- okuyami();
- }
- document.okuyami.onmouseout = function() {
- clearTimeout(tokuyami);
- document.okuyami.src = okuyamiimg[1];
- }
- document.ninshin.onmouseover = function() {
- ninshin();
- }
- document.ninshin.onmouseout = function() {
- clearTimeout(tninshin);
- document.ninshin.src = ninshinimg[1];
- }
- document.kosodate.onmouseover = function() {
- kosodate();
- }
- document.kosodate.onmouseout = function() {
- clearTimeout(tkosodate);
- document.kosodate.src = kosodateimg[1];
- }
- document.sumai.onmouseover = function() {
- sumai();
- }
- document.sumai.onmouseout = function() {
- clearTimeout(tsumai);
- document.sumai.src = sumaiimg[1];
- }
- document.shomei.onmouseover = function() {
- shomei();
- }
- document.shomei.onmouseout = function() {
- clearTimeout(tshomei);
- document.shomei.src = shomeiimg[1];
- }
- }
-
- /* オンロード時に動作 */
- if(window.addEventListener) {
- window.addEventListener('load', smartRollover, false);
- } else {
- window.attachEvent("onload", smartRollover);
- }
|