Template:ETHZ Basel10 Teaser

From 2010.igem.org

(Difference between revisions)
Line 107: Line 107:
}
}
.image_thumb ul li.hover {
.image_thumb ul li.hover {
-
background: #ddd;
+
background: #89D194;
cursor: pointer;
cursor: pointer;
}
}
.image_thumb ul li.active {
.image_thumb ul li.active {
-
background: #fff;
+
background: #89D194;
cursor: default;
cursor: default;
}
}
Line 140: Line 140:
//Click and Hover events for thumbnail list
//Click and Hover events for thumbnail list
$(".image_thumb ul li:first").addClass('active');  
$(".image_thumb ul li:first").addClass('active');  
-
$(".image_thumb ul li").click(function(){  
+
$(".image_thumb ul li").hover(function(){  
//Set Variables
//Set Variables
var imgAlt = $(this).find('img').attr("alt"); //Get Alt Tag of Image
var imgAlt = $(this).find('img').attr("alt"); //Get Alt Tag of Image

Revision as of 07:33, 20 October 2010