Template:Team:Hannover/main.tmpl

From 2014.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
<body>
<body>
 +
 +
<map name="igem_hannover_2014_menu" id="igem_hannover_2014_menu">
 +
<area shape="rect" coords="76,28,184,60" href="https://2014.igem.org/Team:Hannover" onMouseover="menu_onMouseOver('HOME');" onMouseout="menu_onMouseOut();" alt="Wiki Home Page - iGem Team Hannover 2014" title="Wiki Home Page - iGem Team Hannover 2014" />
 +
<area shape="rect" coords="195,19,343,50" href="https://2014.igem.org/Team:Hannover/Project" onMouseover="menu_onMouseOver('PROJECT');" onMouseout="menu_onMouseOut();" alt="Project - iGem Team Hannover 2014" title="Project - iGem Team Hannover 2014" />
 +
<area shape="rect" coords="357,22,626,57" href="https://2014.igem.org/Team:Hannover/Safety" onMouseover="menu_onMouseOver('HUMAN-PRACTICE');" onMouseout="menu_onMouseOut();" alt="Human Practice - iGem Team Hannover 2014" title="Human Practice - iGem Team Hannover 2014" />
 +
<area shape="poly" coords="644,18,645,19,750,25,748,57,641,51" href="https://2014.igem.org/Team:Hannover/Team" onMouseover="menu_onMouseOver('TEAM');" onMouseout="menu_onMouseOut();" alt="iGem Team Hannover 2014" title="iGem Team Hannover 2014" />
 +
<area shape="poly" coords="20,4,21,5,2,31,2,38,38,52,60,38,61,24,28,0" href="https://2014.igem.org/Main_Page" alt="iGem 2014 - Main Page" title="iGem 2014 - Main Page" />
 +
</map>
 +
<style>
 +
#preload-01 { background: url(https://static.igem.org/mediawiki/2014/2/25/Hannover_20140831_MENU-HOME.png) no-repeat -9999px -9999px; }
 +
#preload-02 { background: url(https://static.igem.org/mediawiki/2014/2/25/Hannover_20140831_MENU-PROJECT.png) no-repeat -9999px -9999px; }
 +
#preload-03 { background: url(https://static.igem.org/mediawiki/2014/2/25/Hannover_20140831_MENU-HUMAN-PRACTICE.png) no-repeat -9999px -9999px; }
 +
#preload-04 { background: url(https://static.igem.org/mediawiki/2014/2/25/Hannover_20140831_MENU-TEAM.png) no-repeat -9999px -9999px; }
 +
#menu_image {
 +
    display: block;
 +
    margin-left: auto;
 +
    margin-right: auto;
 +
}
 +
</style>
 +
<div id='#preload-01' /><div id='#preload-02' /><div id='#preload-03' /><div id='#preload-04' />
 +
 +
<script type='text/javascript'>
 +
 +
var menu_currentPage = 'ANY';
 +
 +
function menu_beginsWithLower(needle, haystack){
 +
    var h = haystack.toLowerCase();
 +
    var n = needle.toLowerCase();
 +
    return (h.substr(0, n.length) == n);
 +
}
 +
 +
function menu_init() {
 +
      var loc = document.location.href;
 +
      if (menu_beginsWithLower('https://2014.igem.org/Team:Hannover', loc)) {
 +
            menu_currentPage= 'HOME';
 +
      } else if (menu_beginsWithLower('https://2014.igem.org/Team:Hannover/Project', loc)) {
 +
            menu_currentPage= 'PROJECT';
 +
      } else if (menu_beginsWithLower('https://2014.igem.org/Team:Hannover/Safety', loc)) {
 +
            menu_currentPage= 'HUMAN-PRACTICE';
 +
      } else if (menu_beginsWithLower('https://2014.igem.org/Team:Hannover/Team', loc)) {
 +
            menu_currentPage= 'TEAM';
 +
      }
 +
      menu_image_src = 'https://static.igem.org/mediawiki/2014/2/25/Hannover_20140831_MENU-'+currentPage;
 +
      $('#menu_image').attr('src', menu_image_src);
 +
 +
}
 +
 +
function menu_onMouseOut() {
 +
      menu_image_src = 'https://static.igem.org/mediawiki/2014/2/25/Hannover_20140831_MENU-'+currentPage;
 +
      $('#menu_image').attr('src', menu_image_src);
 +
}
 +
 +
function menu_onMouseOver(menu_item) {
 +
      menu_image_src = 'https://static.igem.org/mediawiki/2014/2/25/Hannover_20140831_MENU-'+menu_item;
 +
      $('#menu_image').attr('src', menu_image_src);
 +
}
 +
 +
$( document ).ready( menu_init() );
 +
</script>
 +
 +
<div id="main_box">
<div id="main_box">
 +
 +
<img id='menu_image' src="https://static.igem.org/mediawiki/2014/2/25/Hannover_20140831_MENU-ANY.png" width="756" height="64" border="0" alt="" title="" usemap="#igem_hannover_2014_menu" />
 +
 +
<!-- ALTE NAVIGATION, ANDI
               <div id="banner"><a style="display:block; height:100%">
               <div id="banner"><a style="display:block; height:100%">
               <a href="https://2014.igem.org/Team:Hannover"></a>  
               <a href="https://2014.igem.org/Team:Hannover"></a>  
Line 53: Line 118:
                
                
               </ul>
               </ul>
 +
 +
-->
</div>
</div>
</body>
</body>
</html>
</html>

Revision as of 19:40, 31 August 2014

Wiki Home Page - iGem Team Hannover 2014 Project - iGem Team Hannover 2014 Human Practice - iGem Team Hannover 2014 iGem Team Hannover 2014 iGem 2014 - Main Page