Difference between revisions of "Template:HokkaidoU Japan/js"
(Replaced content with "<html> <script type="text/javascript"> </script> </html>") |
|||
(14 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | $("#tab1").hover( | ||
+ | function () { | ||
+ | $("#tab1 p").attr({"style":"background-color:#88E43C"}); | ||
+ | $("#video1").show(); | ||
+ | $("#video2").hide(); | ||
+ | $("#video3").hide(); | ||
+ | }, | ||
+ | function () { | ||
+ | $("#tab1 p").attr({"style":"background-color:#B7EF89"}); | ||
+ | } | ||
+ | ); | ||
+ | |||
+ | $("#tab2").hover( | ||
+ | function () { | ||
+ | $("#tab2 p").attr({"style":"background-color:#35D2FB"}); | ||
+ | $("#video1").hide(); | ||
+ | $("#video2").show(); | ||
+ | $("#video3").hide(); | ||
+ | }, | ||
+ | function () { | ||
+ | $("#tab2 p").attr({"style":"background-color:#84E4FD"}); | ||
+ | } | ||
+ | ); | ||
+ | |||
+ | $("#tab3").hover( | ||
+ | function () { | ||
+ | $("#tab3 p").attr({"style":"background-color:#FEFA3E"}); | ||
+ | $("#video1").hide(); | ||
+ | $("#video2").hide(); | ||
+ | $("#video3").show(); | ||
+ | }, | ||
+ | function () { | ||
+ | $("#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"}); | ||
+ | } | ||
+ | ); | ||
Latest revision as of 11:21, 17 September 2015