Siamese Twins.#dd_ajax_float{
background:none repeat scroll 0 0 #FFFFFF;
border:0px solid #DDDDDD;
float:left;
margin-left:-250px;
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()
}
});
}); ;