惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
Schneier on Security
Schneier on Security
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
A
About on SuperTechFans
Recorded Future
Recorded Future
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
V2EX - 技术
V2EX - 技术
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
V
Visual Studio Blog
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
Scott Helme
Scott Helme
H
Heimdal Security Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
Application and Cybersecurity Blog
Application and Cybersecurity Blog
V
Vulnerabilities – Threatpost
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
Jina AI
Jina AI
S
Securelist
小众软件
小众软件
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
AWS News Blog
AWS News Blog
N
News and Events Feed by Topic
博客园 - 三生石上(FineUI控件)
量子位

博客园 - Ame

将项目改为windows 服务的步骤 压缩图片 - Ame - 博客园 FCKeditor 的使用心得 IE,firefox 里对浏览器事件处理的兼容性处理 - Ame - 博客园 项目中的JS ,alert 出现乱码 Jquery 插件参考 报表实现的参考 RDLC 矩阵使用 - Ame - 博客园 ajaxpro 的使用心得 - Ame - 博客园 [转]ReportViewer 2008的部署 Reporting services 权限 经典正则表达式 [转载] iframe和跨站点cookie被阻止 (转载) js 动态生成HTML,并加载事件遇到的问题 - Ame - 博客园 jquery.cookies 的使用心得[仅做自己记忆所用] 一些药物的副作用 一些食物的用法 Blogs Flog Fat 蜂蜜知识大全 - Ame - 博客园
js 设为首页,加入收藏夹 - Ame - 博客园
Ame · 2010-06-30 · via 博客园 - Ame

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    
<title>无标题页</title>

    
<script type="text/javascript" language="javascript">
    
function AddFavorite(sURL, sTitle)
    
{
        
try
        
{
            window.external.addFavorite(sURL, sTitle);
        }

        
catch (e)
        
{
            
try
            
{
                window.sidebar.addPanel(sTitle, sURL, 
"");
            }

            
catch (e)
            
{
                alert(
"加入收藏失败,请使用Ctrl+D进行添加");
            }

        }

    }

    
function SetHome(obj,vrl)
    
{
        
try
        
{
                obj.style.behavior
='url(#default#homepage)';obj.setHomePage(vrl);
        }

        
catch(e){
                
if(window.netscape) {
                        
try {
                                netscape.security.PrivilegeManager.enablePrivilege(
"UniversalXPConnect"); 
                        }
 
                        
catch (e) 
                                alert(
"此操作被浏览器拒绝!\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'"); 
                        }

                        
var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
                        prefs.setCharPref(
'browser.startup.homepage',vrl);
                 }

        }

    }

    
</script>

</head>
<body>
    
<onclick="AddFavorite(window.location,document.title)" style="cursor:hand">加入收藏</a> 
    
<onclick="SetHome(this,window.location)" style="cursor:hand">设为首页</a>
</body>
</html>
<table width="160" border="0" cellspacing="0" cellpadding="0">
      
<tr>
        
<td height="5"></td>
      
</tr>
      
<tr>
        
<td height="25" align="center"><href="javascript:window.external.AddFavorite('http://<%=web_url%>/','<%=web_title%>');" target="_self" class="lnkfooter">收藏本站</a></td>
      
</tr>
      
<tr>
        
<td height="25" align="center"><onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://<%=web_url%>');return false;" href="#" class="lnkfooter">設為首頁</a></td>
      
</tr>
      
<tr>
        
<td height="5">&nbsp;</td>
      
</tr>
    
</table>