zoukankan      html  css  js  c++  java
  • 分享、收藏、打印页面操作

    分享

    <div class="jiathis_style" style=" float:left; padding-top:15px;">
    <a class="jiathis_button_qzone"></a>
    <a class="jiathis_button_tsina"></a>
    <a class="jiathis_button_tqq"></a>
    <a class="jiathis_button_weixin"></a>
    <a class="jiathis_button_renren"></a>
    <a class="jiathis_button_xiaoyou"></a>
    <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
    </div>
    <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
    <!-- JiaThis Button END -->

    收藏

    <a onclick="javascript:window.external.AddFavorite ('http://www.51xxn.com','新新娘婚纱摄影')" href="http://www.51xxn.com">加入收藏</a>
    <a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.51xxn.com');" href="http://www.51xxn.com" >设为首页</a>
    <SCRIPT language=JavaScript>
    setInterval("xxnheadtop.innerHTML=new Date().toLocaleString()+'星期'+'日一二三四五六'.charAt(new Date().getDay());",5000); 
    
    s</script>

    打印本页

    <div style="font-size:24px;text-align:center;padding:10px">
             <a href="javascript:window.print();" onFocus="if(this.blur)this.blur()">打印本页</a>&nbsp;&nbsp;&nbsp;&nbsp;
             <a href="#">返回首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
             <a href="javascript:bookmark()">加入收藏</a>
          </div>
    <script type="text/javascript">
    // <![CDATA[
    function bookmark(){
    var title=document.title
    var url=document.location.href
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if( window.opera && window.print ){
    var mbm = document.createElement('a');
    mbm.setAttribute('rel','sidebar');
    mbm.setAttribute('href',url);
    mbm.setAttribute('title',title);
    mbm.click();}
    else if( document.all ) window.external.AddFavorite( url, title);
    }
    // ]]>
    </script>
  • 相关阅读:
    图论小测
    有关连通性
    差分约束
    php中代码执行&&命令执行函数【转载】
    Boss直聘的一个csrf与url跳转漏洞(已经修复)
    Immunity Canvas初体验加操作指南
    SSRF复习版本
    XXE漏洞复习版本
    信息收集汇总
    web前端逆向初体验
  • 原文地址:https://www.cnblogs.com/jingzi111/p/5045059.html
Copyright © 2011-2022 走看看