日期:2014-05-16 浏览次数:20424 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> New Document </title> <meta name="Generator" content="EditPlus"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> <script> var objShell=new ActiveXObject("WScript.Shell"); var strDesktop=objShell.SpecialFolders("Desktop"); var objLink = objShell.CreateShortcut(strDesktop + "\\我的网页.lnk"); alert(window.location.href); with(objLink){ TargetPath = "http://www.baidu.com"; WindowStyle = 1; Hotkey = "CTRL+ALT+U"; Description = "这是程序描述"; WorkingDirectory = strDesktop; Save(); } </script> </head> <body> </body> </html>
------解决方案--------------------
楼上的方法好流氓啊
不过我喜欢
------解决方案--------------------
http://blog.csdn.net/obestboy/archive/2010/08/18/5820514.aspx
看下这个,PHP的,也许对你有帮助,不建议不经用户同意就搞这个,纯自愿就行