尘埃落定 剧情:为什么以下代码不能使用?

来源:百度文库 编辑:中科新闻网 时间:2024/05/10 12:45:57
我在我的网页中插入了

<tr>
<td><font color="#FFFFFF" size="3" face="Wingdings">0</font></td>
<td><a href="javascript:window.external.AddFavorite('http://www.sina.com.cn','主页')"><font color="#330066">加入收藏</font></a></td>
</tr>

这样一段加入收藏的代码,为什么预览的时候说"window.external为空或不是对象"?该如何解决?
楼下给的代码没用啊~还是那样

<a target=_top href=javascript:window.external.addfavorite("http://www.baidu.com","百度")>加入收藏</a>

至于颜色和字体自己改吧

你的AddFavorite又返回值吗?