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

分享

<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>

 

posted @ 2015-12-14 13:55  镜子-正衣冠-知得失  阅读(249)  评论(0编辑  收藏  举报