Template:Team:Groningen/Header

From 2010.igem.org

(Difference between revisions)
Line 7: Line 7:
$(function() {
$(function() {
var pages = ["home", "project", "images", "modeling", "team","contact"];
var pages = ["home", "project", "images", "modeling", "team","contact"];
 +
$('.lavaLampBottomStyle [rel='+$.address.value().substr(1)+']').parent().addClass("current");
$("#tabs").lavaLamp({
$("#tabs").lavaLamp({
fx: "backout",  
fx: "backout",  
Line 19: Line 20:
$.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:25, 15 July 2010