Team:Groningen/sandbox
From 2010.igem.org
(Difference between revisions)
Joelkuiper (Talk | contribs) |
Joelkuiper (Talk | contribs) |
||
Line 11: | Line 11: | ||
<div id="contentWrapper"> | <div id="contentWrapper"> | ||
<div class='tabbed_content'> | <div class='tabbed_content'> | ||
- | + | <div class='tabs'> | |
- | < | + | <ul class="lavaLampBottomStyle" id="tabs"> |
- | + | <li><a href="#">Home</a></li> | |
- | < | + | <li><a href="#">Project</a></li> |
+ | <li><a href="#">Ethics</a></li> | ||
+ | <li><a href="#">Modeling</a></li> | ||
+ | <li><a href="#">Sponsoring</a></li> | ||
+ | <li><a href="#">Contact</a></li> | ||
+ | </ul> | ||
</div> | </div> | ||
<div class='slide_content'> | <div class='slide_content'> | ||
Line 59: | Line 64: | ||
</div> | </div> | ||
- | </div | + | </div> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</div> | </div> | ||
+ | <script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.easing.min.js"></script> | ||
+ | <script type="text/javascript" src="http://casualconnect.net/iGEM/jquery.lavalamp.min.js"></script> | ||
+ | <script type="text/javascript"> | ||
+ | $(function() { | ||
+ | $("#tabs").lavaLamp({ | ||
+ | fx: "backout", | ||
+ | speed: 700, | ||
+ | click: function(event, obj) { | ||
+ | var margin = $(".slide_content").width(); | ||
+ | margin = margin * ($(obj).prevAll().size()); | ||
+ | margin = margin * -1; | ||
+ | $(".tabslider").stop().animate({ | ||
+ | marginLeft: margin + "px" | ||
+ | }, { | ||
+ | duration: 300 | ||
+ | }); | ||
+ | return false; | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
</html> | </html> | ||
{{Team:Groningen/sandboxFooter}} | {{Team:Groningen/sandboxFooter}} |
Revision as of 09:54, 15 July 2010