Template:Team:Groningen/sandboxHeader
From 2010.igem.org
(Difference between revisions)
Joelkuiper (Talk | contribs) |
Joelkuiper (Talk | contribs) |
||
Line 26: | Line 26: | ||
<link rel="stylesheet" type="text/css" href="http://casualconnect.net/iGEM/overallSandbox.css"> | <link rel="stylesheet" type="text/css" href="http://casualconnect.net/iGEM/overallSandbox.css"> | ||
<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"> | ||
Line 36: | Line 35: | ||
$(function () { | $(function () { | ||
- | + | $("ul#topnav li").hover(function() { //Hover over event on list item | |
+ | $(this).css({ 'background' : '#1376c9 url(topnav_active.gif) repeat-x'}); //Add background color + image on hovered list item | ||
+ | $(this).find("span").show(); //Show the subnav | ||
+ | } , function() { //on hover out... | ||
+ | $(this).css({ 'background' : 'none'}); //Ditch the background | ||
+ | $(this).find("span").hide(); //Hide the subnav | ||
+ | }); | ||
+ | |||
}); | }); | ||
Line 50: | Line 56: | ||
<div id="contentWrapper"> | <div id="contentWrapper"> | ||
<div class='tabbed_content'> | <div class='tabbed_content'> | ||
- | < | + | <ul id="topnav"> |
- | + | <li><a href="#">Home</a></li> | |
- | <li><a href=" | + | <li> |
- | <li | + | |
- | + | <a href="#">About</a> | |
- | + | <span> | |
- | + | <a href="#">The Company</a> | | |
- | + | <a href="#">The Team</a> | | |
- | + | <a href="#">Careers</a> | |
- | + | </span> | |
- | + | </li> | |
- | + | ||
- | + | <li> | |
- | + | <a href="#">Services</a> | |
- | + | <span> | |
- | + | <a href="#">What We Do</a> | | |
- | + | <a href="#">Our Process</a> | | |
- | + | <a href="#">Testimonials</a> | |
- | + | </span> | |
- | + | ||
- | + | </li> | |
- | + | <li> | |
- | + | <a href="#">Portfolio</a> | |
- | + | <span> | |
- | + | <a href="#">Web Design</a> | | |
- | + | <a href="#">Development</a> | | |
- | + | <a href="#">Identity</a> | | |
- | + | <a href="#">SEO & Internet Marketing</a> | | |
- | + | <a href="#">Print Design</a> | |
- | + | ||
- | + | </span> | |
- | + | </li> | |
- | + | <li><a href="#">Contact</a></li> | |
- | + | </ul> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</div> | </div> | ||
Revision as of 09:24, 20 August 2010