Template:Team:Groningen/Header
From 2010.igem.org
(Difference between revisions)
Joelkuiper (Talk | contribs) |
Joelkuiper (Talk | contribs) |
||
Line 6: | Line 6: | ||
/* it's not as fancy as TU-Delft's AJAX but it does the job */ | /* it's not as fancy as TU-Delft's AJAX but it does the job */ | ||
$(function() { | $(function() { | ||
+ | $(".current").removeClass("current"); | ||
+ | $('.lavaLampBottomStyle [rel='+$.address.value().substr(1) +']').parent().addClass("current"); | ||
+ | |||
var pages = ["home", "project", "images", "modeling", "team","contact"]; | var pages = ["home", "project", "images", "modeling", "team","contact"]; | ||
$("#tabs").lavaLamp({ | $("#tabs").lavaLamp({ | ||
Line 20: | Line 23: | ||
$.address.change(function(event) { | $.address.change(function(event) { | ||
var page = event.path.substring(1); | var page = event.path.substring(1); | ||
- | + | ||
- | + | ||
if($.inArray(page, pages) != -1) { | if($.inArray(page, pages) != -1) { | ||
var margin = $(".slide_content").width(); | var margin = $(".slide_content").width(); |
Revision as of 23:12, 15 July 2010