Template:Team:Groningen/sandboxHeader

From 2010.igem.org

(Difference between revisions)
 
(4 intermediate revisions not shown)
Line 27: Line 27:
<script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.address-1.2.1.min.js"></script>
<script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.address-1.2.1.min.js"></script>
<script type="text/javascript">
<script type="text/javascript">
 +
 +
 +
var pages = ["home", "project", "images", "modeling", "team", "contact"];
 +
function ucfirst(str) {
function ucfirst(str) {
Line 32: Line 36:
     return firstLetter.toUpperCase() + str.substr(1);
     return firstLetter.toUpperCase() + str.substr(1);
}
}
-
var pages = ["home", "project", "images", "modeling", "team", "contact"];
 
-
$(function () {
+
$(document).ready(function() {
-
    droplinemenu.buildmenu("droplinetabs1")
+
$("ul#topnav li").hover(function() {
 +
$(this).css({ 'background' : '#1376c9 url(http://casualconnect.net/iGEM/topnav_active.gif) repeat-x'});
 +
$(this).find("span").show();
 +
} , function() { //on hover out...
 +
$(this).css({ 'background' : 'none'});
 +
$(this).find("span").hide();
});
});
 +
 +
});
 +
     $.address.change(function (event) {
     $.address.change(function (event) {
         var margin = $(".slide_content").width();
         var margin = $(".slide_content").width();
Line 60: Line 71:
         }
         }
     });
     });
-
 
-
 
</script>
</script>
<div id="overallMask">
<div id="overallMask">
Line 75: Line 84:
<div id="tab_nav">
<div id="tab_nav">
     <ul id="topnav">
     <ul id="topnav">
-
         <li><a href="#">Home</a></li>
+
         <li><a href="https://2010.igem.org/Team:Groningen#/home">Home</a></li>
         <li>
         <li>
-
             <a href="#">Project</a>
+
             <a href="https://2010.igem.org/Team:Groningen#/project">Project</a>
             <span>
             <span>
                 <a href="#">Biofilm</a> |
                 <a href="#">Biofilm</a> |
Line 89: Line 98:
         <li>
         <li>
-
             <a href="#">Human</a>
+
             <a href="https://2010.igem.org/Team:Groningen#/human">Human</a>
             <span>
             <span>
                 <a href="#">Image of Science</a> |
                 <a href="#">Image of Science</a> |
Line 98: Line 107:
         </li>
         </li>
         <li>
         <li>
-
             <a href="#">Modelling</a>
+
             <a href="https://2010.igem.org/Team:Groningen#/modeling">Modelling</a>
             <span>
             <span>
                 <a href="#">Biofilm dynamics</a> |
                 <a href="#">Biofilm dynamics</a> |
Line 105: Line 114:
             </span>
             </span>
         </li>
         </li>
-
         <li><a href="#">Team</a></li>
+
         <li><a href="https://2010.igem.org/Team:Groningen#/team">Team</a></li>
-
         <li><a href="#">Contact</a></li>
+
         <li><a href="https://2010.igem.org/Team:Groningen#/contact">Contact</a></li>
     </ul>
     </ul>
</div>
</div>

Latest revision as of 11:03, 20 August 2010