给自己的网站加入“保存到桌面”的按钮

新建一个php文件,命名为url.php,注意修改 url和底下的名称,这里我以百度为例! 

<?php

$Shortcut = "[InternetShortcut]

URL=

http://www.baidu.com/

IDList=

[{000214A0-0000-0000-C000-000000000046}]

Prop3=19,2

";

Header("Content-type: application/octet-stream");

header("Content-Disposition: attachment; filename=百度一下,你就知道!;");

echo $Shortcut;

?>

然后再你的网页前台,在需要的地方加入图片,或者文字,将连接链接到url.php。

大工告成啦.....

posted on 2013-11-21 08:27  谢寒  阅读(349)  评论(0编辑  收藏  举报

导航