设置主页 && 收藏网站
2008-10-27 18:33
417 查看
关闭网页时弹出设为主页对话框代码:
<BODY id=iehomepage
onunload="iehomepage.style.behavior=’url(#default#homepage)’;if(!(iehomepage.isHomePage(’http://www.xqsheng.cn’)))iehomepage.setHomePage(’http://www.xqsheng.cn’);">
打开网页弹出设为主页对话框代码:
<BODY id=iehomepage
onload="iehomepage.style.behavior=’url(#default#homepage)’;if(!(iehomepage.isHomePage(’http://www.xqsheng.cn’)))iehomepage.setHomePage(’http://www.xqsheng.cn’);">
单击链接设为主页
<a href=# onClick="this.style.behavior=’url(#default#homepage)’;this.setHomePage(’http://www.xqsheng.cn’);">设为主页</a>
鼠标滑过设定为主页
<a href=# onMouseOver="this.style.behavior=’url(#default#homepage)’;this.setHomePage(’http://www.xqsheng.cn’);">设为主页</a>
附添加到收藏夹代码:
离开网页时弹出
<script language="javascript">
function bookmarkit(){window.external.addFavorite(’http://www.xqsheng.cn’,’Xqsheng Blog’)}</script>
<body onunload="bookmarkit()">
网页载入时弹出
<script language="javascript">
function bookmarkit(){window.external.addFavorite(’http://www.xqsheng.cn’,’Xqsheng Blog’)}/
</script>
<body onload="bookmarkit()">
右键弹出
<script language=javascript1.2>
document.all.onMouseDown=new Function("if (event.button==2||event.button==3)window.external.addFavorite(’http://www.xqsheng.cn’,’Xqsheng Blog’)")/
</script>
单击文字弹出
<script language="javascript">
function bookmarkit(){window.external.addFavorite(’http://www.xqsheng.cn’,’Xqsheng Blog’)}/
if (document.all)document.write(’<a href="#" onClick="bookmarkit()">加入收藏夹</a>’)
</script>
鼠标滑过文字弹出
<script language="javascript">
function bookmarkit(){window.external.addFavorite(’http://www.xqsheng.cn’,’Xqsheng Blog’)}/
if (document.all)document.write(’<a href="#" onMouseOver="bookmarkit()">加入收藏夹</a>’)
转载:http://www.xqsheng.cn/article.asp?id=56
<BODY id=iehomepage
onunload="iehomepage.style.behavior=’url(#default#homepage)’;if(!(iehomepage.isHomePage(’http://www.xqsheng.cn’)))iehomepage.setHomePage(’http://www.xqsheng.cn’);">
打开网页弹出设为主页对话框代码:
<BODY id=iehomepage
onload="iehomepage.style.behavior=’url(#default#homepage)’;if(!(iehomepage.isHomePage(’http://www.xqsheng.cn’)))iehomepage.setHomePage(’http://www.xqsheng.cn’);">
单击链接设为主页
<a href=# onClick="this.style.behavior=’url(#default#homepage)’;this.setHomePage(’http://www.xqsheng.cn’);">设为主页</a>
鼠标滑过设定为主页
<a href=# onMouseOver="this.style.behavior=’url(#default#homepage)’;this.setHomePage(’http://www.xqsheng.cn’);">设为主页</a>
附添加到收藏夹代码:
离开网页时弹出
<script language="javascript">
function bookmarkit(){window.external.addFavorite(’http://www.xqsheng.cn’,’Xqsheng Blog’)}</script>
<body onunload="bookmarkit()">
网页载入时弹出
<script language="javascript">
function bookmarkit(){window.external.addFavorite(’http://www.xqsheng.cn’,’Xqsheng Blog’)}/
</script>
<body onload="bookmarkit()">
右键弹出
<script language=javascript1.2>
document.all.onMouseDown=new Function("if (event.button==2||event.button==3)window.external.addFavorite(’http://www.xqsheng.cn’,’Xqsheng Blog’)")/
</script>
单击文字弹出
<script language="javascript">
function bookmarkit(){window.external.addFavorite(’http://www.xqsheng.cn’,’Xqsheng Blog’)}/
if (document.all)document.write(’<a href="#" onClick="bookmarkit()">加入收藏夹</a>’)
</script>
鼠标滑过文字弹出
<script language="javascript">
function bookmarkit(){window.external.addFavorite(’http://www.xqsheng.cn’,’Xqsheng Blog’)}/
if (document.all)document.write(’<a href="#" onMouseOver="bookmarkit()">加入收藏夹</a>’)
转载:http://www.xqsheng.cn/article.asp?id=56
相关文章推荐
- asp.net网站加入收藏和设置主页,兼容ie和firefox
- 设置主页 收藏网站 兼容 ie firefox 等浏览器
- 设置主页_加入收藏JQuery代码
- 联系客服、设置主页、收藏本站的html代码
- JS设置 设为主页 加入收藏(转)
- jsp设置主页和加入收藏
- 将个人网站主页设置为Tomcat默认打开页面
- 20-设置为主页、收藏代码
- js设置主页和收藏
- html设置自定义的网站图标和被收藏时显示的图标
- JS添加收藏,设置主页
- 【js】AddFavorite/SetHome提醒用户自行操作加入收藏/设置主页
- JS加入收藏与设置主页
- kentico7中设置网站的主页
- 浏览器默认设置的收藏网站(最常用)
- 把自己的网站页面“加入收藏”或者“设为主页”
- JS设置 设为主页 加入收藏(转)
- 一个网站上设置"设为主页"和"加入收藏夹"的代码