.drop_block{
display: none;
}
var click_open = $('.click_open'),
drop_block = $('.drop_block');
click_open.click(function(){
var _this = $(this),
_thisDrop = _this.next(drop_block);
if(!_thisDrop.hasClass('open')){
drop_block.slideUp(300);
_thisDrop.addClass('open').slideDown(300);
} else{
drop_block.slideUp(300);
_thisDrop.removeClass('open');
}
});
$(window).scroll(function(){
$('.block').css({
property1: 'value1',
property2: 'value2'
});
});
$.ajax({
url: '/path/to/file',
type: 'default GET (Other values: POST)',
dataType: 'default: Intelligent Guess (Other values: xml, json, script, or html)',
data: {param1: 'value1'},
});