ascript"> $(function() { $('.closeWeChat').click(function(){ $('.weChatBox').fadeOut() }); $('.weChatClick').click(function(){ $('.weChatBox').fadeIn() }); $('.contactRight .close').click(function() { $('.contactRight').animate({ right: '-262px' }) }); $('.contactRightTitle').click(function() { //console.log() if ($(this).parents('.contactRight').css('right') === '0px') { $('.contactRight').animate({ right: '-262px' }) } else { $('.contactRight').animate({ right: '0px' }) } }); setTimeout(function() { if ($('.contactRight').css('right') === '0px') { $('.contactRight').animate({ right: '-262px' }) } }, 4000) }); function shareTo(stype){ var ftit = ''; var flink = ''; var lk = ''; //获取文章标题 ftit = document.title; //获取网页中内容的第一张图片地址作为分享图 flink = document.images[0].src; if(typeof flink == 'undefined'){ flink=''; } //当内容中没有图片时,设置分享图片为网站logo if(flink == ''){ lk = 'http://'+window.location.host+'/static/images/logo.png'; } //如果是上传的图片则进行绝对路径拼接 if(flink.indexOf('/uploads/') != -1) { lk = 'http://'+window.location.host+flink; } //新浪微博接口的传参 if(stype=='sina'){ window.open('http://service.weibo.com/share/share.php?url='+document.location.href+'?sharesource=weibo&title='+ftit+'&pic='+lk+'&appkey=2706825840'); } } $(function () { $(document).bind("dragstart contextmenu selectstart", function (e) { return false; }); $(window).keydown(function (e) { if (((e.ctrlKey) && (e.keyCode == 67)) || ((e.ctrlKey) && (e.keyCode == 85)) || ((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 67)) || ((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 73)) || e.keyCode == 123) { e.preventDefault(); window.event.returnValue = false; } }) });
2.646319s