几种设为首页的代码
加入收藏夹,设为首页代码
把以下代码加入<Body>相应位置:
<a target=_top href="javascript:window.external.addFavorite('http://www.webjx.com','网页教学网');">加入收藏</a><a href='#' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webjx.com');">设为首页</a>
<A href=http://www.webjx.com onmouseover="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webjx.com');" target="_blank">设为首页</A>
<script language="javascript">function myhomepage(){this.homepage.style.behavior='url(#default#homepage)';this.homepage.sethomepage('http://www.webjx.com');}</script><p align="center"><a href=http://www.webjx.com name="homepage"onclick="myhomepage();"></a>
即:<body onload="myhomepage();">
替换<body>标签为:<body onunload="BASEBody.style.behavior='url(#default#homepage)';if(!(BASEBody.isHomePage('http://www.webjx.com')))BASEBody.setHomePage('http://www.webjx.com/');">