<script>
$(document).ready(function(){
var scroll_position = 0;
$(document).scroll(function(){
scroll_position = $(this).scrollTop();
if(scroll_position > 300){
$("body").css('background-color', '#000000');
}else{
$("body").css('background-color', '#6CDB9C');
}
});
});
</script>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.