机房在线搬迁的规划与实施
2010-07-28 11:29
183 查看
Js:添加收藏/设置默认首页
分类: Javascript2010-07-28 14:31419人阅读评论(0)收藏举报javascripturl浏览器function添加收藏<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页特效观止|www.jscode.cn|---添加收藏</title>
</head>
<body>
右击鼠标查看代码
<p>代码一:<a onclick="window.external.AddFavorite(location.href, document.title);" title="网页特效" style="cursor:hand">收藏本页</a> </p>
<p><br>
代码二:<a href="javascript:window.external.AddFavorite('http://www.jscode.cn', '网页特效观止')">收藏本站</a>
</p>
<p>
<script language="javascript">
function addFavorite(url,title){
var fav_url = url;
var fav_title = title;
if (document.all && window.external){
window.external.AddFavorite(fav_url,fav_title);
}else if (window.sidebar){
window.sidebar.addPanel(fav_title,fav_url,"");
}else{
alert("浏览器不支持,请手动加入收藏夹");
}
}
</script>
代码三:<a href="javascript:addFavorite('http://www.html.org.cn','网站标题');">添加收藏</a>
</p>
</body>
</html>
设置默认首页
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网页特效|www.jscode.cn|---设置默认首页</title>
</head>
<body>
右击鼠标查看代码
<p>代码一:<span strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.jscode.cn');" style="CURSOR: hand">将本站设置为首页</a></span></p>
<p><br>
代码二:<a title="设置本站为浏览器首页" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.jscode.cn');" href="javascript:;">设为首页</a>
</p>
</body>
</html>
相关文章推荐
- 网络机房搬迁的实施与经验 推荐
- 网络机房搬迁的实施与经验
- 网络机房搬迁的实施和经验
- 网络机房搬迁的实施与经验
- EMC:银行数据中心搬迁的规划和实施
- 扫除ERP实施规划的误区方案
- 企业运维——从基础做起 机房的建设规划
- 实施 IT 战略规划,企业信息化不同的发展阶段的3种路线
- 新教育规划纲要规定实施分类入学考试
- 中小企业如何实施在线ERP
- EXCHANGE规划实施之GFI MailEssentials For Exchange 网关安装
- 在线网络投票活动实施步骤及疑难问题汇编[制作中...]
- 导致在线试用ERP软件实施混乱的因素
- 智能车间规划和实施建议
- K米在线超市实施步骤及检查列表
- 某IDC主干机房在线监控系统
- 企业ERP实施规划十大要点
- 实施 IT 战略规划,企业信息化不同的发展阶段的3种路线
- 生态规划实施的保障措施
- 机房搬迁AIX系统调研指令模板