// JavaScript Document $(function () { // 鍒嗕韩 var timer = null; $(document).on('mouseover', '.share .bds_more,.share .bdshare_popup_box', function () { clearTimeout(timer); $('.bdshare_popup_box').fadeIn(); }) $(document).on('mouseout', '.share .bds_more,.share .bdshare_popup_box', function () { timer = setTimeout(function () { $('.bdshare_popup_box').fadeOut(); }, 500); }) $(document).on('click', '.share .bds_more,.share .popup_more', function () { $('.bdshare_popup_box').hide(); $('.bdshare_dialog_box').fadeIn(); }) $(document).on('click', '.bdshare_dialog_close', function () { $('.bdshare_dialog_box').hide(); }) // QQ绌洪棿 $(document).on("click", ".bds_qzone,.popup_qzone", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "" window.open(op); }) // 鏂版氮寰崥 $(document).on("click", ".bds_tsina,.popup_tsina", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://service.weibo.com/share/share.php?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "" window.open(op); }) // 鑵捐寰崥 $(document).on("click", ".bds_tqq,.popup_tqq", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://share.v.t.qq.com/index.php?c=share&a=index&title=" + encodeURIComponent(title) + "&url=" + encodeURIComponent(url) + "" window.open(op); }) // 浜轰汉缃 $(document).on("click", ".bds_renren,.popup_renren", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://widget.renren.com/dialog/share?resourceUrl=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "&desc=&summary=" window.open(op); }) // 寰俊 $(document).on("click", ".bds_weixin2", function () { var url = $(this).data("img"); if (url == '') { url = 'http://qcode.hongru.com/qrcode/qrcode.php?content=' + window.location.href; } var title = ""; title += "
"; title += "x"; title += "

鍒嗕韩鍒板井淇℃湅鍙嬪湀

"; title += "
"; title += "

鎵撳紑寰俊锛岀偣鍑诲簳閮ㄧ殑鈥滃彂鐜扳€濓紝浣跨敤 鈥滄壂涓€鎵€ 鍗冲彲灏嗙綉椤靛垎浜埌鎴戠殑鏈嬪弸鍦堛€侟/p>"; title += "

"; $("body").remove(".weixin"); $("body").append(title); $('.bdshare_popup_box').hide(); $('.bdshare_dialog_box').hide(); }) $(document).on("click", ".weixin .c", function () { $(".weixin").remove(); }) // 鑵捐鏈嬪弸 $(document).on("click", ".bds_tqf,.popup_tqf", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?to=pengyou&url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "&desc=&summary=" window.open(op); }) // QQ $(document).on("click", ".bds_qq", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://connect.qq.com/widget/shareqq/index.html?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "&desc=&summary=&site=hongru" window.open(op); }) // 鐧惧害璐村惂 $(document).on("click", ".bds_tieba,.popup_tieba", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://tieba.baidu.com/f/commit/share/openShareApi?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "" window.open(op); }) // 璞嗙摚缃 $(document).on("click", ".bds_douban,.popup_douban", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://www.douban.com/share/service?href=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "" window.open(op); }) // 鎼滅嫄寰崥 $(document).on("click", ".bds_tsohu,.popup_tsohu", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://t.sohu.com/third/post.jsp?url" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "" window.open(op); }) // 鍒嗕韩鍒癋acebook $(document).on("click", ".bds_fbook,.popup_fbook", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://www.facebook.com/share.php?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "&desc=&summary=&site=hongru" window.open(op); }) // 鍒嗕韩鍒癟witter $(document).on("click", ".bds_twi,.popup_twi", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://twitter.com/intent/tweet?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "&desc=&summary=&site=hongru" window.open(op); }) // 鍒嗕韩鍒發inkedin $(document).on("click", ".bds_linkedin,.popup_linkedin", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "https://www.linkedin.com/uas/login?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "&desc=&summary=&site=hongru" window.open(op); }) // QQ濂藉弸 $(document).on("click", ".bds_sqq,.popup_sqq", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://connect.qq.com/widget/shareqq/index.html?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "" window.open(op); }) // 鐧惧害涓汉涓績 $(document).on("click", ".bds_ibaidu,.popup_ibaidu", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://i.baidu.com/store/?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "" window.open(op); }) // 缇庝附璇 $(document).on("click", ".bds_meilishuo,.popup_meilishuo", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://www.meilishuo.com/meilishuo_share?siteurl==" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "" window.open(op); }) // 铇戣弴琛 $(document).on("click", ".bds_mogujie,.popup_mogujie", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://www.mogujie.com/mshare?==" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "" window.open(op); }) // 鑺辩摚 $(document).on("click", ".bds_huaban,.popup_huaban", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://huaban.com/bookmarklet/?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "" window.open(op); }) // 椋炰俊 $(document).on("click", ".bds_fx,.popup_fx", function () { var url = window.location.href; var img = $(this).data("img"); var title = $(this).data("tit"); var op = "http://i.feixin.10086.cn/apps/share/share?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "" window.open(op); }) })