<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<title>收藏网站与设为主页的js代码</title>
<script type="text/javascript">
function addFavorite()
{
window.external.addFavorite("http://eyo.cn","中国服饰网");
return false;
}
function setHomePage()
{
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage("http://eyo.cn","中国服饰网");
return false;
}
</script>
</head>
<body>
<a href="http://eyo.cn" οnclick="return setHomePage()">设为首页</a>
<a href="http://eyo.cn" οnclick="return addFavorite()">加入收藏</a>
</body>
</html>
收藏/设为主页js代码
最新推荐文章于 2021-10-15 16:48:00 发布