Team:Cornell/sandbox

From 2013.igem.org

(Difference between revisions)
Line 201: Line 201:
z-index: 10;
z-index: 10;
width: 100%;
width: 100%;
-
height: 77px;
 
text-align: center;
text-align: center;
font-size: 13px;
font-size: 13px;
Line 324: Line 323:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
-
$(window).bind('scroll',function(e){
+
$document.ready( function() {
-
parallaxScroll();
+
$(".parallax").click( function() {
 +
alert("hi");
 +
});
});
});
-
+
 
-
function parallaxScroll(){
+
-
var scrolled = $(window).scrollTop();
+
-
$('.parallax').css('left', scrolled / 10+'px');
+
-
}
+
</script>
</script>
</head>
</head>

Revision as of 03:06, 29 December 2013

Parallax Test

Whee

Project