<script type="text/javascript">
<!--
function myAddPanel(title,url,desc)
{
if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))
//Gecko
{
window.sidebar.addPanel(title,url,desc);
}
else
//IE
{
window.external.AddFavorite(url,title);
}
}
//-->
</script>
<span onClick="myAddPanel('my favorite','http://www.iteye.com','iteye.com)"& gt;加入收藏</span>