Team:Minnesota/Safety

From 2012.igem.org

(Difference between revisions)
m
m
Line 60: Line 60:
//Start Safety (or whatever else uses this menu switch function)
//Start Safety (or whatever else uses this menu switch function)
 +
$("#SafetyHome").click(
 +
    function(){
 +
      alert("clicked!");
 +
      $(".current2").attr("class","none");
 +
      $(this).attr("class","current2");
 +
    }
 +
 +
);
 +
$("#SafetyU").click(
$("#SafetyU").click(
     function(){
     function(){
       alert("clicked!");
       alert("clicked!");
       $(".current2").attr("class","none");
       $(".current2").attr("class","none");
-
       $("#SafetyU").attr("class","current2");
+
       $(this).attr("class","current2");
 +
    }
 +
 
 +
);
 +
 
 +
$("#SafetyResarcher").click(
 +
    function(){
 +
      alert("clicked!");
 +
      $(".current2").attr("class","none");
 +
      $(this).attr("class","current2");
 +
    }
 +
 
 +
);
 +
 
 +
$("#SafetyPublic").click(
 +
    function(){
 +
      alert("clicked!");
 +
      $(".current2").attr("class","none");
 +
      $(this).attr("class","current2");
 +
    }
 +
 
 +
);
 +
 
 +
$("#SafetyEnvironment").click(
 +
    function(){
 +
      alert("clicked!");
 +
      $(".current2").attr("class","none");
 +
      $(this).attr("class","current2");
     }
     }
Line 201: Line 237:
<div id="MainBoxContent" style="background-color:white;">
<div id="MainBoxContent" style="background-color:white;">
<div id="Safety">
<div id="Safety">
-
<a href="#" class= "current2" id="SafetyWelcome">Safety Home</a>
+
<a href="#" class= "current2" id="SafetyHome">Safety Home</a>
<a href="#" id="SafetyU">Safety at the U</a>
<a href="#" id="SafetyU">Safety at the U</a>
<a href="#" id="SafetyResearcher">Researcher Safety</a>
<a href="#" id="SafetyResearcher">Researcher Safety</a>

Revision as of 17:52, 30 September 2012

Team:Minnesota - Main Style Template Team:Minnesota - Template