Line 54: | Line 54: | ||
@keyframes blink{ | @keyframes blink{ | ||
to{opacity: .0;} | to{opacity: .0;} | ||
+ | } | ||
+ | |||
+ | <!-- map --> | ||
+ | #map { | ||
+ | position: relative; | ||
+ | } | ||
+ | #overlay { | ||
+ | position: absolute; | ||
+ | background: #000; | ||
+ | color: #fff; | ||
+ | top: 20px; | ||
+ | left: 20px; | ||
} | } | ||
</style> | </style> | ||
Line 63: | Line 75: | ||
<!-- Map --> | <!-- Map --> | ||
<center> | <center> | ||
− | <img id = "home-button" alt = "" src = "https://static.igem.org/mediawiki/2017/8/82/Lubbock_TTU_largemap.png" height= width= alt="" usemap="#Map"/ width="95%"> | + | <!--<img id = "home-button" alt = "" src = "https://static.igem.org/mediawiki/2017/8/82/Lubbock_TTU_largemap.png" height= width= alt="" usemap="#Map"/ width="95%">--> |
− | + | <body> | |
+ | <div id="map"> | ||
+ | <div id="overlay"></div> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/8/82/Lubbock_TTU_largemap.png" width="95%" height="" alt="" usemap="#map" /> | ||
+ | </div> | ||
+ | <map name="map"> | ||
+ | <area shape="circle" coords="90,58,30" alt="" href="" /> | ||
+ | <area shape="circle" coords="124,58,8" alt="" href="" /> | ||
+ | <area shape="circle" coords="124,58,8" alt="" href="" /> | ||
+ | <area shape="circle" coords="124,58,8" alt="" href="" /> | ||
+ | <area shape="circle" coords="124,58,8" alt="" href="" /> | ||
+ | <area shape="circle" coords="124,58,8" alt="" href="" /> | ||
+ | </map> | ||
+ | </body> | ||
<br></br></br> | <br></br></br> | ||
<font size="10" color="CC0000">C:\LUBBOCK_TTU<span>|</span></font> | <font size="10" color="CC0000">C:\LUBBOCK_TTU<span>|</span></font> | ||
Line 74: | Line 99: | ||
</body> | </body> | ||
+ | <!-- map --> | ||
<script> | <script> | ||
− | + | $('area').each(function(){ | |
− | + | var area = $(this), | |
− | + | alt = area.attr('alt'); | |
− | + | area.mouseenter(function(){ | |
− | + | $('#overlay').html(alt); | |
− | + | }).mouseleave(function(){ | |
− | + | $('#overlay').html(''); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}); | }); | ||
+ | }); | ||
</script> | </script> | ||
Revision as of 02:26, 26 May 2017
C:\LUBBOCK_TTU|