The best way to accomplish this is by including some javascript which pops up a post window. If javascript is off, it will navigate to the post page. Here is the code:
<img src="http://static.delicious.com/img/delicious.small.gif" height="10" width="10" alt="Delicious" />
<a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;"> Bookmark this on Delicious</a>
就是如下的效果:
使用JavaScript创建美味书签按钮
本文介绍了一种使用JavaScript创建弹出窗口的方法,以便用户可以轻松地将当前网页添加到他们的美味书签中。当JavaScript被禁用时,代码会导航到书签页面。通过这种方式,无论用户的浏览器设置如何,都能确保功能正常运行。
3056

被折叠的 条评论
为什么被折叠?



