Template:Team:Groningen/Header

From 2010.igem.org

(Difference between revisions)
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() {
-
$('.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 19:
$.address.change(function(event) {
$.address.change(function(event) {
 +
$('.lavaLampBottomStyle [rel='+$.address.value().substr(1)+']').parent().addClass("current");
var page = event.path.substring(1);
var page = event.path.substring(1);
if($.inArray(page, pages) != -1) {
if($.inArray(page, pages) != -1) {

Revision as of 19:23, 15 July 2010