Team:Michigan/Test Css

From 2012.igem.org

(Difference between revisions)
Line 13: Line 13:
$(function () {
$(function () {
-
 
$(‘.dropdown’).each(function () {
$(‘.dropdown’).each(function () {
-
$(this).parent().eq(0).hoverIntent({
+
$(this).parent().eq(0).hover(function () {
-
timeout: 100,
+
$(‘.dropdown:eq(0)’, this).show();
-
over: function () {
+
}, function () {
-
var current = $(‘.dropdown:eq(0)’, this);
+
$(‘.dropdown:eq(0)’, this).hide();
-
current.slideDown(100);
+
-
},
+
-
out: function () {
+
-
var current = $(‘.dropdown:eq(0)’, this);
+
-
current.fadeOut(200);
+
-
}
+
});
});
});
});
-
 
-
$(‘.dropdown a’).hover(function () {
 
-
$(this).stop(true).animate({paddingLeft: ’35px’}, {speed: 100, easing: ‘easeOutBack’});
 
-
}, function () {
 
-
$(this).stop(true).animate({paddingLeft: ’0′}, {speed: 100, easing: ‘easeOutBounce’});
 
-
});
 
-
 
-
pic1 = new Image(310, 672);
 
-
pic1.src = “images/dropdown.png”;
 
-
 
-
pic2 = new Image(4, 40);
 
-
pic2.src = “images/dropselectionleft.png”;
 
-
 
-
pic3 = new Image(394, 40);
 
-
pic3.src = “images/dropselectionright.png”;
 
-
 
});
});
</script>
</script>

Revision as of 23:12, 31 July 2012

Xayona Website Template