• 分享、收藏、打印页面操作


    分享

    <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>
  • 相关阅读:
    别用言语考验底线
    QQ登陆接口
    cookie设置今日不提醒功能
    Sublime Text 3常用插件
    浏览器的标准模式与怪异模式的设置与区分方法
    JS中offsetTop、clientTop、scrollTop、offsetTop各属性介绍
    javascript中闭包的工作原理
    javascript判断图片是否加载完成方法整理
    社会十二效应法则
    小故事
  • 原文地址:https://www.cnblogs.com/jingzi111/p/5045059.html
Copyright © 2020-2023  润新知