Team:Minnesota/Notebook

From 2012.igem.org

(Difference between revisions)
m
m
Line 64: Line 64:
$("#mainRightButton2").click(
$("#mainRightButton2").click(
     function(){
     function(){
-
         var original = $("#mainRightButton1").attr("src");
+
         var original = $(this).attr("src");
 +
        $(this).attr("src",original.replace("gold","maroon");
 +
        original = $("#mainRightButton1").attr("src");
 +
        $("#mainRightButton1").attr("src",original.replace("maroon","gold"));
 +
        original = $("#mainRightButton3").attr("src");
         $("#mainRightButton1").attr("src",original.replace("maroon","gold"));
         $("#mainRightButton1").attr("src",original.replace("maroon","gold"));
     }
     }

Revision as of 06:29, 2 October 2012

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