Difference between revisions of "Template:Toulouse/nav"

Line 84: Line 84:
  
 
var activeColor = '#D5DEB6';
 
var activeColor = '#D5DEB6';
 +
var element = document.getElementById('test');
 
if (myurl.search("notebook") != -1){
 
if (myurl.search("notebook") != -1){
document.getElementById('notebook').style.color = activeColor;}
+
element = document.getElementById('notebook');}
 
else{
 
else{
 
if (myurl.search("humanp") != -1){
 
if (myurl.search("humanp") != -1){
document.getElementById('humanp').style.color = activeColor;}
+
element = document.getElementById('humanp');}
 
else{
 
else{
 
if (myurl.search("issues") != -1){
 
if (myurl.search("issues") != -1){
document.getElementById('issues').style.color = activeColor;}
+
element =document.getElementById('issues');}
 
else{
 
else{
 
if (myurl.search("achievements") != -1){
 
if (myurl.search("achievements") != -1){
document.getElementById('achiev').style.color = activeColor;}
+
element =document.getElementById('achiev');}
 
else{
 
else{
 
if (myurl.search("members") != -1){
 
if (myurl.search("members") != -1){
document.getElementById('team').style.color = activeColor;}
+
element = document.getElementById('team');}
 
else{
 
else{
 
if (myurl.search("project") != -1){
 
if (myurl.search("project") != -1){
document.getElementById('project').style.color = activeColor;}
+
element = document.getElementById('project');}
else{
+
var element = document.getElementById('test');
+
//document.getElementById('test').class='set';
+
//document.getElementById('test').style.color = activeColor;
+
//home.style.fontSize = "25px";}
+
}
+
 
}
 
}
 
}
 
}

Revision as of 08:48, 7 August 2015