avoid2

Written by

in

yahooBuzzArticleHeadline=”avoid2″;yahooBuzzArticleId=”http://extrabeautycare.com/skin-treatment/how-to-treat-oily-skin-natural-treatments-and-solutions-for-open-pores/attachment/avoid2/”;

avoid2

<!–

Subscribe via Email

–>

#dd_ajax_float{
background:none repeat scroll 0 0 #FFFFFF;
border-top:1px solid #DDDDDD;
border-bottom:1px solid #DDDDDD;
border-left:1px solid #DDDDDD;
float:left;
margin-left:-224px;
margin-right:10px;
margin-top:10px;
position:absolute;
z-index:-9999;
}jQuery(document).ready(function($){

var $postShare = $(‘#dd_ajax_float’);

if($(‘.dd_content_wrap’).length > 0){

var descripY = parseInt($(‘.dd_content_wrap’).offset().top) -20;
var pullX = $postShare.css(‘margin-left’);

$(window).scroll(function () {

var scrollY = $(window).scrollTop();
var fixedShare = $postShare.css(‘position’) == ‘fixed’;

if($(‘#dd_ajax_float’).length > 0){

if ( scrollY > descripY && !fixedShare ) {
$postShare.stop().css({
position: ‘fixed’,
top: 16
});
} else if ( scrollY < descripY && fixedShare ) {
$postShare.css({
position: 'absolute',
top: descripY,
marginLeft: pullX
});
}

}

});
}
}); jQuery(document).ready(function($) {

if($(window).width()> 790){
$(‘#dd_ajax_float’).show()
}else{
$(‘#dd_ajax_float’).hide()
}

$(window).resize(function() {

if($(window).width()> 790){
$(‘#dd_ajax_float’).show()
}else{
$(‘#dd_ajax_float’).hide()
}

});

}); ;

Subscribe Extrabeautycare via Email

Comments

One response to “avoid2”

  1. Get Backlinks Avatar
    Get Backlinks

    Wow, awesome blog layout! How long have you been blogging for? you make blogging look easy.

Leave a Reply

Your email address will not be published. Required fields are marked *