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

 
(16 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
$("#tab1").hover(
 
$("#tab1").hover(
 
function () {
 
function () {
$("#tab1 img").attr({"src":"https://static.igem.org/mediawiki/2015/f/fb/Hokkaidou_tab_on_sample.png"});
+
$("#tab1 p").attr({"style":"background-color:#88E43C"});
$("#poster").attr({"poster":"https://static.igem.org/mediawiki/2015/8/82/Hokkaidou_sample_poster.png"});
+
$("#video1").show();
$("#mp4").attr({"src":"#"});
+
$("#video2").hide();
$("#webm").attr({"src":"#"});
+
$("#video3").hide();
$("#obb").attr({"src":"#"});
+
 
},
 
},
 
function () {
 
function () {
$("#tab1 img").attr({"src":"https://static.igem.org/mediawiki/2015/a/ad/Hokkaidou_tab_sample.png"});
+
$("#tab1 p").attr({"style":"background-color:#B7EF89"});
 
}
 
}
 
);
 
);
Line 18: 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 p").attr({"style":"background-color:#35D2FB"});
$("#poster").attr({"poster":"https://static.igem.org/mediawiki/2015/f/fc/Hokkaidou_sample_poster1.png"});
+
$("#video1").hide();
$("#mp4").attr({"src":"#"});
+
$("#video2").show();
$("#webm").attr({"src":"#"});
+
$("#video3").hide();
$("#obb").attr({"src":"#"});
+
 
},
 
},
 
function () {
 
function () {
$("#tab2 img").attr({"src":"https://static.igem.org/mediawiki/2015/7/7c/Hokkaidou_tab_sample1.png"});
+
$("#tab2 p").attr({"style":"background-color:#84E4FD"});
 
}
 
}
 
);
 
);
Line 31: 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 p").attr({"style":"background-color:#FEFA3E"});
$("#poster").attr({"poster":"https://static.igem.org/mediawiki/2015/a/a1/Hokkaidou_sample_poster2.png"});
+
$("#video1").hide();
$("#mp4").attr({"src":"#"});
+
$("#video2").hide();
$("#webm").attr({"src":"#"});
+
$("#video3").show();
$("#obb").attr({"src":"#"});
+
 
},
 
},
 
function () {
 
function () {
$("#tab3 img").attr({"src":"https://static.igem.org/mediawiki/2015/1/1b/Hokkaidou_tab_sample2.png"});
+
$("#tab3 p").attr({"style":"background-color:#FFFC8A"});
 
}
 
}
 
);
 
);
 +
 +
$("#microbusters").hover(
 +
function () {
 +
$("#microbusters").attr({"style":"background-color:#F07B7B"});
 +
},
 +
function () {
 +
$("#microbusters").attr({"style":"background-color:#F5A7A7"});
 +
}
 +
);
 +
 +
$("#parts").hover(
 +
function () {
 +
$("#parts").attr({"style":"background-color:#FDA068"});
 +
},
 +
function () {
 +
$("#parts").attr({"style":"background-color:#FDC09B"});
 +
}
 +
);
 +
 +
$("#notebook").hover(
 +
function () {
 +
$("#notebook").attr({"style":"background-color:#B7EF89"});
 +
},
 +
function () {
 +
$("#notebook").attr({"style":"background-color:#CFF4B0"});
 +
}
 +
);
 +
 +
$("#practices").hover(
 +
function () {
 +
$("#practices").attr({"style":"background-color:#FFFC8A"});
 +
},
 +
function () {
 +
$("#practices").attr({"style":"background-color:#FFFDB0"});
 +
}
 +
);
 +
 +
$("#about_us").hover(
 +
function () {
 +
$("#about_us").attr({"style":"background-color:#84E4FD"});
 +
},
 +
function () {
 +
$("#about_us").attr({"style":"background-color:#ADEEFE"});
 +
}
 +
);
 +
  
 
</script>
 
</script>
  
 
</html>
 
</html>

Latest revision as of 11:21, 17 September 2015