what are in your forumurl and forumname? the following works for me<%
forumurl = "http://www.csdn.com"
forumname = "CSDN"
%>
<a href="javascript:window.external.addFavorite('<%=forumurl%>','<%=forumname%>')"><img src="http://www.csdn.net/images/csdn.gif"></a>
forumurl = "http://www.csdn.com"
forumname = "CSDN"
%>
<a href="javascript:window.external.addFavorite('<%=forumurl%>','<%=forumname%>')"><img src="http://www.csdn.net/images/csdn.gif"></a>
哈哈
谢谢