Difference between revisions of "Template:HokkaidoU Japan/js"

Line 5: Line 5:
 
$("#tab1").hover(
 
$("#tab1").hover(
 
function () {
 
function () {
$("#tab1 p").attr({"style":"background-color:#E88ECF"});
+
$("#tab1 p").attr({"style":"background-color:#CFF4B0"});
 
$("#video1").show();
 
$("#video1").show();
 
$("#video2").hide();
 
$("#video2").hide();
Line 11: Line 11:
 
},
 
},
 
function () {
 
function () {
$("#tab1 img").attr({"src":"https://static.igem.org/mediawiki/2015/a/ad/Hokkaidou_tab_sample.png"});
+
$("#tab1 p").attr({"style":"background-color:#E7FAD8"});
 
}
 
}
 
);
 
);
Line 17: Line 17:
 
$("#tab2").hover(
 
$("#tab2").hover(
 
function () {
 
function () {
$("#tab2 img").attr({"src":"https://static.igem.org/mediawiki/2015/f/f8/Hokkaidou_tab_on_sample1.png"});
+
$("#tab2 img").attr({"style":"background-color:#ADEEFE"});
 
$("#video1").hide();
 
$("#video1").hide();
 
$("#video2").show();
 
$("#video2").show();
Line 23: Line 23:
 
},
 
},
 
function () {
 
function () {
$("#tab2 img").attr({"src":"https://static.igem.org/mediawiki/2015/7/7c/Hokkaidou_tab_sample1.png"});
+
$("#tab2 img").attr({"style":"background-color:#D6F5FE"});
 
}
 
}
 
);
 
);
Line 29: Line 29:
 
$("#tab3").hover(
 
$("#tab3").hover(
 
function () {
 
function () {
$("#tab3 img").attr({"src":"https://static.igem.org/mediawiki/2015/f/f7/Hokkaidou_tab_on_sample2.png"});
+
$("#tab3 img").attr({"style":"background-color:#FFFDB0"});
 
$("#video1").hide();
 
$("#video1").hide();
 
$("#video2").hide();
 
$("#video2").hide();
Line 35: Line 35:
 
},
 
},
 
function () {
 
function () {
$("#tab3 img").attr({"src":"https://static.igem.org/mediawiki/2015/1/1b/Hokkaidou_tab_sample2.png"});
+
$("#tab3 img").attr({"style":"background-color:#FFFED7"});
 
}
 
}
 
);
 
);

Revision as of 10:41, 17 September 2015