设为主页,收藏夹代码
来源:互联网 发布:qq飞车网络加速器 编辑:程序博客网 时间:2024/05/06 19:51
1.文字型:
<aonclick="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.离开时自动提示设为首页:
<bodyonunload="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"><ahref="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=0src="images/Logo.gif">
<u>设为首页</u></a>
2.文字型:
<aonclick="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.离开时自动提示设为首页
<bodyonunload="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>
加入频道
<ahref="typhoon.cdf")>加入频道</a>
邮件链接
<ahref="mailto:xuan_web@hotmail.com">与我联系</a>
再将下面代码加入<body>内:
onload="myhomepage();"
即:<body onload="myhomepage();">
<aonclick="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.离开时自动提示设为首页:
<bodyonunload="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"><ahref="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=0src="images/Logo.gif">
<u>设为首页</u></a>
2.文字型:
<aonclick="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.离开时自动提示设为首页
<bodyonunload="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>
加入频道
<ahref="typhoon.cdf")>加入频道</a>
邮件链接
<ahref="mailto:xuan_web@hotmail.com">与我联系</a>
再将下面代码加入<body>内:
onload="myhomepage();"
即:<body onload="myhomepage();">
- 设为主页,收藏夹代码
- 设为主页代码及添加到收藏夹代码大全
- 设为主页代码及添加到收藏夹代码大全
- 设为主页代码及添加到收藏夹代码大全 .
- 设为主页代码及添加到收藏夹代码大全
- 设为收藏夹代码
- 一个网站上设置"设为主页"和"加入收藏夹"的代码
- JQuery实现添加到收藏夹及设为主页功能
- 设为首页和加入收藏夹代码
- 加入收藏夹,设为首页代码
- 加入收藏夹,设为首页代码
- 代码 设为主页 加入收藏 代码
- 代码 设为主页 加入收藏 代码
- 将自己网站设为主页代码
- 史上最全加入收藏和设为主页代码
- 设为主页和加入收藏的代码?
- JavaScript实例教程之把主页设为首页、加到收藏夹里
- 怎么实现把网页设为主页和增加到收藏夹?
- 自制JAR中图片调用
- 手动使用csc命令编译C#文件
- 2013.11.12中科院客座教授邀请您远程讨论“敏捷”
- 开篇-HOG提取训练检测+样本制作
- 线性代数导论26——对称矩阵和正定性
- 设为主页,收藏夹代码
- tabBar隐藏与显现 hidesBottomBarWhenPushed
- 总结几种常见的Word转换PDF方法
- 纯DIV+CSS制作圆角矩形
- 常用好网址
- table的thead/tbody/tfoot/tr/th/t…
- web前端开发工程师
- 蜂巢问题的dp解决
- 新一代Android 4.0操作系统七大新…