兼容的加入收藏

<script type="text/javascript">
    function addBookmark(title,url) {
        if( document.all ) {
            window.external.AddFavorite( url, title);
        } else if (window.sidebar) {
            window.sidebar.addPanel(title, url,"");
        } else if( window.opera && window.print ) {
            return true;
        }
    }
</script>
<a href="javascript:addBookmark('站点名称,'http://www.yjyj.net/');">加入收藏</a>

评论 (1)
  1. 沙发
    此段 2011-07-22 06:04

    此段太有虾米味了