zoukankan      html  css  js  c++  java
  • Jquery分享插件

    效果图如下:

    代码如下:

    <!DOCTYPE HTML>
    <html style="padding-bottom: 54px;">
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <title>jQuery分享插件jquery.share.js</title>
    <meta name="description" content="jQuery分享插件jquery.share.js享到QQ、微信、微博、google、in、tweeter等" />
    <meta name="keywords" content="分享插件,社会化分享,jquery.share.js,jquery,jquery插件" />
    <link rel="Shortcut icon" href="http://www.jq22.com/favicon.ico" />
    <link href="css/demo.css?v3" rel="stylesheet" media="all" />
    <!--[if IE]>
                
                <style type="text/css">            
                    li.purchase a {
                        padding-top: 5px;
                        background-position: 0px -4px;
                    }
                    
                    li.remove_frame a {
                        padding-top: 5px;
                        background-position: 0px -3px;
                    }                        
                </style>
                
            <![endif]-->
    <style>
            .fdad a {
                color: #000;
                display: inline-block;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
    
            .fdad {
                top: 66px;
            }
    
            .xgcj li {
                font-size: 14px;
                line-height: 20px;
                list-style-type: none;
                transition: all 1s ease 0s;
                border-radius: 5px;
            }
    
                .xgcj li:hover {
                    background-color: #e4e4e4;
                }
    
            .xgcj {
                background-color: rgba(255,255,255,.3);
                overflow-x: hidden;
            }
    
                .xgcj ul {
                    padding: 10px
                }
    
                .xgcj h3 {
                    line-height: 30px;
                }
    
                .xgcj p {
                    padding-left: 20px;
                    font-size: 13px;
                    display: none;
                }
    
                .xgcj span {
                    font-family: "宋体";
                }
    
                .xgcj li:hover p {
                    display: block;
                }
        </style>
    <script type="text/javascript">
            var txt = "http://www.jq22.com/demo/myshare201704242303";
            window.g1 = txt.substr(0, 3);
            window.g2 = txt.substr(0, 19);
        </script>
    <script src="js/pace.min.js" charset="gbk"></script>
    <link href="css/pace-theme-barber-shop.css" rel="stylesheet" />
    <script src="http://libs.baidu.com/jquery/1.7.0/jquery.min.js"></script>
    <script src="js/jquery.qrcode.min.js"></script>
    <script type="text/javascript">
    
            var theme_list_open = false;
    
            $(document).ready(function () {
                function fixHeight() {
                    var headerHeight = $("#switcher").height();
                    $("#iframe").attr("height", $(window).height() - 54 + "px");
                }
                $(window).resize(function () {
                    fixHeight();
                }).resize();
    
                $('.icon-monitor').addClass('active');
    
                $(".icon-mobile-3").click(function () {
                    $("#by").css("overflow-y", "auto");
                    $('#iframe-wrap').removeClass().addClass('mobile-width-3');
                    $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
                    $(this).addClass('active');
                    return false;
                });
    
                $(".icon-mobile-2").click(function () {
                    $("#by").css("overflow-y", "auto");
                    $('#iframe-wrap').removeClass().addClass('mobile-width-2');
                    $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
                    $(this).addClass('active');
                    return false;
                });
    
                $(".icon-mobile-1").click(function () {
                    $("#by").css("overflow-y", "auto");
                    $('#iframe-wrap').removeClass().addClass('mobile-width');
                    $('.icon-tablet,.icon-mobile,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
                    $(this).addClass('active');
                    return false;
                });
    
                $(".icon-tablet").click(function () {
                    $("#by").css("overflow-y", "auto");
                    $('#iframe-wrap').removeClass().addClass('tablet-width');
                    $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
                    $(this).addClass('active');
                    return false;
                });
    
                $(".icon-monitor").click(function () {
                    $("#by").css("overflow-y", "hidden");
                    $('#iframe-wrap').removeClass().addClass('full-width');
                    $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
                    $(this).addClass('active');
                    return false;
                });
            });
        </script>
    <script type="text/javascript">
            function Responsive($a) {
                if ($a == true) $("#Device").css("opacity", "100");
                if ($a == false) $("#Device").css("opacity", "0");
                $('#iframe-wrap').removeClass().addClass('full-width');
                $('.icon-tablet,.icon-mobile-1,.icon-monitor,.icon-mobile-2,.icon-mobile-3').removeClass('active');
                $(this).addClass('active');
                return false;
            };
        </script>
    </head>
    <body id="by" style="overflow-y: hidden">
    <div id="switcher">
    <div class="center">
    <ul>
    <li class="logoTop" id="sj2"><a href="http://www.jq22.com/jquery-info13612">jQuery分享插件jquery.share.js</a></li>
    <div id="Device">
    <li class="device-monitor"><a href="javascript:">
    <div class="icon-monitor">
    </div>
    </a></li>
    <li class="device-mobile"><a href="javascript:">
    <div class="icon-tablet">
    </div>
    </a></li>
    <li class="device-mobile"><a href="javascript:">
    <div class="icon-mobile-1">
    </div>
    </a></li>
    <li class="device-mobile-2"><a href="javascript:">
    <div class="icon-mobile-2">
    </div>
    </a></li>
    <li class="device-mobile-3"><a href="javascript:">
    <div class="icon-mobile-3">
    </div>
    </a></li>
    </div>
    <li class="top2" id="sj"><a href="#">手机二维码预览</a><div class="vm">
    <div id="output"></div>
    <p style="color: #808080">扫一扫,直接在手机上打开</p>
    </div>
    </li>
    <script>
                        jQuery('#output').qrcode({  150, height: 150, text: window.location.href });
                    </script>
    <li class="remove_frame" style="display:n"><a href="http://www.jq22.com/demo/myshare201704242303" title="移除框架"></a></li>
    </ul>
    </div>
    </div>
    <div id="iframe-wrap">
    <iframe id="iframe" src="http://www.jq22.com/demo/myshare201704242303" frameborder="0" width="100%"></iframe>
    </div>
    <div class="fdad">
    <div class="fdl">Advertisement</div>
    <div class="fdr">x</div>
    <div class="fdadnr">
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    
    <ins class="adsbygoogle" style="display:inline-block;336px;height:280px" data-ad-client="ca-pub-2935286260943234" data-ad-slot="6063645905"></ins>
    <script>
                        (adsbygoogle = window.adsbygoogle || []).push({});
                </script>
     <div class="xgcj">
    <ul>
    <div style="100%">
    <div style="float:left"><h3>相关插件</h3></div>
    <div style="clear: left;"></div>
    </div>
    <li>
    <a href="http://www.jq22.com/jquery-info18298"><span>&gt;</span> jQuery前端excel导入插件xlsx.core.js</a>
    <p>此插件作用可以把excel表,导入到网页中用table显示出来</p>
    </li>
    <li>
    <a href="http://www.jq22.com/jquery-info14085"><span>&gt;</span> jQuery社会华分享插件</a>
    <p>jQuery社会华分享插件支持微信,QQ,新浪,人人等</p>
    </li>
    <li>
    <a href="http://www.jq22.com/jquery-info761"><span>&gt;</span> jQuery网站引导插件joyride</a>
    <p>jQuery网站引导插件joyride</p>
    </li>
    <li>
    <a href="http://www.jq22.com/jquery-info9389"><span>&gt;</span> html5读取二维码</a>
    <p>手机端web调用摄像头读取解析二维码</p>
    </li>
    <li>
    <a href="http://www.jq22.com/jquery-info17899"><span>&gt;</span> CSS3开关切换按钮</a>
    <p>多组超具创意的CSS3开关切换按钮</p>
    </li>
    </ul>
    </div>
    </div>
    <script type="text/javascript">
                    $(document).ready(function () {
                        $(".fdr").click(function () {
                            $(".fdad").hide();
                        });
                    });
        </script>
    <script>
            var _hmt = _hmt || [];
            (function () {
                var hm = document.createElement("script");
                hm.src = "//hm.baidu.com/hm.js?b3a3fc356d0af38b811a0ef8d50716b8";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
        </script>
    </body>
    </html>
  • 相关阅读:
    第十二章 圆周率的计算问题分析
    第十一章:random库概述
    【模板】分治 FFT
    [PKUWC2018]Slay the Spire
    [PKUWC2018]随机算法
    [PKUWC2018]Minimax
    线段树合并初探
    平衡树初探
    Luogu P1613 跑路 题解报告
    CH138 兔子和兔子 题解报告
  • 原文地址:https://www.cnblogs.com/LoveQin/p/9640342.html
Copyright © 2011-2022 走看看