1、设为首页功能的实现:
<a href=http://software.csu.edu.cn/"
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://software.csu.edu.cn/');
return(false);"
style=" url(#default#homepage)">
设为首页
</a>
2、加入收藏功能的实现:
<a href="http://software.csu.edu.cn/"
οnclick="window.external.addFavorite('http://software.csu.edu.cn/','软件学院');
return false;"
title="将本站添加到你的收藏夹中!"
align="center">
加入收藏
</a>
转载于:https://blog.51cto.com/3795780/1238440