if(document.layers) { alert("此效果在Netscape浏览器中不能实现!"); }
///pc/img/blank.gif" width="12" height="8">当前位置:///default.htm" class="under">亿度网络 -> ///pc/index.htm" class="under">网页制作教程 -> JavaScript实例
///pc/homepage/javascript/sample/img/bule.gif" width="207" height="13"> ///pc/homepage/javascript/sample/img/blank.gif" width="1" height="1"> ///pc/homepage/javascript/sample/img/js.gif" width="186" height="20"> ///pc/homepage/javascript/sample/img/blank.gif" width="1" height="1">
///pc/homepage/javascript/sample/img/blank.gif" width="1" height="1"> ///pc/homepage/javascript/sample/img/blank.gif" width="1" height="1">
     离开时自动启动收藏夹 ///pc/homepage/javascript/sample/img/blank.gif" width="1" height="1">  
  ///pc/homepage/javascript/sample/img/bule1.gif" width="28" height="49">  
 
源代码如下 ///pc/homepage/javascript/sample/img/bule2.gif" width="11" height="18">


这段程序放在<body>与</body>之间

这段程序放在<body ****>正文中

   
源程序讲解: ///pc/homepage/javascript/sample/img/bule2.gif" width="11" height="18">
  ///pc/homepage/javascript/sample/img/bule1.gif" width="28" height="49">  

function folder() 定义一个函数。
window.external.AddFavorite
('http://www.shanghaigongsi.com.cn', '亿度网络')
external.AddFavorite是window的一个方法,可以自动开启收藏夹,括号中的地址可以随便换,例如,可以写上你的个人主页地址。
onunload = folder() 页面卸载的时候,调用 folder()函数。

注:此效果只能在IE浏览器中实现。

  ///pc/homepage/javascript/sample/img/blank.gif" width="1" height="1">  
 

 

网页制作 网页设计 网站建设 网站设计 网站制作 做网站 做网页