设为首页代码,够用实用
来源:互联网 发布:win10搭建java环境 编辑:程序博客网 时间:2024/05/19 15:20
加入收藏夹,设为首页代码
把以下代码加入<Body>相应位置:
<a target=_top href="javascript:window.external.addFavorite('http://it.alipea.com','阿里it学院,IT资源分享站');">加入收藏</a>
<a href='#' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://it.alipea.com');">设为首页</a>
鼠标指向时提示设为首页
将下列代码插入<body>区中:
<A href=http://it.alipea.com onmouseover="this.style.behavior='url(#default#homepage)';this.setHomePage('http://it.alipea.com');" target="_blank">设为首页</A>
打开页面时自动弹出窗口询问是否设为首页
将以下代码放在<head></head>之间:
<script language="javascript">
function myhomepage(){
this.homepage.style.behavior='url(#default#homepage)';this.homepage.sethomepage('http://it.alipea.com');
}
</script>
<p align="center"><a href=http://it.alipea.com name="homepage"
onclick="myhomepage();"></a>
再将下面代码加入<body>内:
onload="myhomepage();"
即:<body onload="myhomepage();">
离开时自动提示设为首页
替换<body>标签为:
<body onunload="BASEBody.style.behavior='url(#default#homepage)';if(!(BASEBody.isHomePage('http://it.alipea.com')))BASEBody.setHomePage('http://it.alipea.com/');">
把以下代码加入<Body>相应位置:
<a target=_top href="javascript:window.external.addFavorite('http://it.alipea.com','阿里it学院,IT资源分享站');">加入收藏</a>
<a href='#' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://it.alipea.com');">设为首页</a>
鼠标指向时提示设为首页
将下列代码插入<body>区中:
<A href=http://it.alipea.com onmouseover="this.style.behavior='url(#default#homepage)';this.setHomePage('http://it.alipea.com');" target="_blank">设为首页</A>
打开页面时自动弹出窗口询问是否设为首页
将以下代码放在<head></head>之间:
<script language="javascript">
function myhomepage(){
this.homepage.style.behavior='url(#default#homepage)';this.homepage.sethomepage('http://it.alipea.com');
}
</script>
<p align="center"><a href=http://it.alipea.com name="homepage"
onclick="myhomepage();"></a>
再将下面代码加入<body>内:
onload="myhomepage();"
即:<body onload="myhomepage();">
离开时自动提示设为首页
替换<body>标签为:
<body onunload="BASEBody.style.behavior='url(#default#homepage)';if(!(BASEBody.isHomePage('http://it.alipea.com')))BASEBody.setHomePage('http://it.alipea.com/');">
0 0
- 设为首页代码,够用实用
- 设为首页代码
- 设为首页代码
- 很实用的 “设为首页”与“加入收藏”代码
- 设为首页_JS代码
- 设为首页/加入收藏代码
- 设为首页代码大全
- 设为首页/加入收藏代码
- 设为首页|加入收藏代码
- 加入收藏 设为首页 代码
- 设为首页/加入收藏 代码
- 设为首页加入收藏代码
- 设为首页/加入收藏代码
- 设为首页js代码
- 设为首页各种代码
- 设为首页的代码
- 设为首页 加入收藏代码
- 设为首页代码和加入收藏代码
- “画皮”漏洞
- 调用约定收集
- C++的常用库
- HDU-1856-More is better(并查集)
- Java 中几种查找算法
- 设为首页代码,够用实用
- Leetcode Decode Ways 密码编码方法
- 获取 运行 应用包名 顶层交互 TOP包名 主Activity
- Lucene:基于Java的全文检索引擎简介
- mysql插入注册日期的方案
- 由字符串,提取完整子域名的方法 -php
- (standard c libraries translation )atoi家族
- 秒杀多线程第三篇 原子操作 Interlocked系列函数
- 【整理】详解嵌入式片上资源之SDRAM内存