HTML设为首页/加入收藏代码
来源:互联网 发布:模糊图像处理算法 编辑:程序博客网 时间:2024/04/29 02:35
(特别注意:要把’这个符号换成无任何输入法状态中输入的’这个符号,否则程序无法运行)
1.文字型:
<a onclick="this.style.behavior=’url(#default#homepage)’;this.setHomePage(’http://www.apple-wallpaper.com’);" href="http://www.apple-wallpaper.com">设为首页</a>
2.按钮型:
<input TYPE="button" VALUE=" 设为首页 " onclick="this.style.behavior=’url(#default#homepage)’;this.setHomePage(’http://www.apple-wallpaper.com’);" href="http://www.apple-wallpaper.comt">
3.离开时自动提示设为首页:
<body onunload="BASEBody.style.behavior=’url(#default#homepage)’;if(!(BASEBody.isHomePage(’http://www.1.com’)))BASEBody.setHomePage(’http://www.apple-wallpaper.comt’);">
4.打开网页就提示是否设为主页:
<script language="javascript">
function myhomepage(){
this.homepage.style.behavior=’url(#default#homepage)’;this.homepage.sethomepage(’http://www.dafacai.net’);
}
</script>
<p align="center"><a href="http://www.apple-wallpaper.comt" name="homepage"
onclick="myhomepage();"></a>
1.图片链接
<a style="cursor:hand" onclick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.apple-wallpaper.com');">
<img width=16 height=16 border=0 src="images/Logo.gif">
<u> 设为首页</u></a>
2.文字型:
<a onclick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.apple-wallpaper.com');" href="#">设为首页</a>
3.按钮型:
<input TYPE="button" VALUE=" 设为首页 " onclick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.apple-wallpaper.com');" href="#">
4.离开时自动提示设为首页
<body onunload="BASEBody.style.behavior='url(#default#homepage)';
if(!(BASEBody.isHomePage('http://www.apple-wallpaper.com')))BASEBody.setHomePage('http://www.apple-wallpaper.com/');">
5.鼠标指向时提示设为首页
<A href="http://www.apple-wallpaper.com/" onmouseover="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.apple-wallpaper.com');" target="_blank">设为首页</A>
-------------------------------------------------------------------------------
加入收藏代码
1.
<a href="#" onclick="javascript:window.external.AddFavorite('http://www.apple-wallpaper.com','苹果壁纸资源')" title="收藏本站到你的收藏夹"><font size="-1" color="#FFE09E">收藏本站</font></a>
2.
<a href="javascript:void(0);" onClick="window.external.AddFavorite(document.location.href,document.title)">加入收藏</a>
加入频道
<a href="typhoon.cdf")>加入频道</a>
邮件链接
<a href="mailto:xuan_web@hotmail.com">与我联系</a>
再将下面代码加入<body>内:
onload="myhomepage();"
即:<body onload="myhomepage();">
- HTML设为首页/加入收藏代码
- 设为首页 加入收藏 HTML代码
- html实现“设为首页”加入收藏”代码
- HTML设为首页/加入收藏代码
- HTML设为首页/加入收藏代码
- HTML设为首页/加入收藏代码
- HTML设为首页/加入收藏代码
- HTML设为首页/加入收藏代码
- HTML设为首页/加入收藏代码
- html 设为首页 加入收藏
- 设为首页/加入收藏代码
- 设为首页/加入收藏代码
- 设为首页|加入收藏代码
- 加入收藏 设为首页 代码
- 设为首页/加入收藏 代码
- 设为首页加入收藏代码
- 设为首页/加入收藏代码
- 设为首页 加入收藏代码
- world-wide financial crisis
- Apache源代码全景分析第一卷 开始接受预定
- CPLD基本使用问题
- 如何解决ORA-27100 shared memory realm already exists错误
- Cache&虚拟存储器
- HTML设为首页/加入收藏代码
- 如何解决ORA-27102: Out of memory error错误
- extjs的LoadMask的应用
- ERP项目开发/升级/维护
- sql sever删除问题
- Web开发电子期刊2009年第5期(总第33期)
- ORA-00600: internal error code, arguments: [evapls1]的解决
- oracle日常备份脚本
- Oracle Incrementally Updated Backups