Team:Michigan/Test Css

From 2012.igem.org

(Difference between revisions)
Line 11: Line 11:
     .appendTo('#slideshow');
     .appendTo('#slideshow');
},  6000);
},  6000);
 +
 +
$(function () {
 +
 +
$(‘.dropdown’).each(function () {
 +
$(this).parent().eq(0).hoverIntent({
 +
timeout: 100,
 +
over: function () {
 +
var current = $(‘.dropdown:eq(0)’, this);
 +
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:08, 31 July 2012

Xayona Website Template