保存到桌面、设为桌面且带图标的PHP代码

1.建立一个PHP文件,PHP的代码如下

保存到桌面、设为桌面的PHP代码

新建一个文件Desktopurl.php 代码如下:

复制代码 代码如下:


<?php $Shortcut= "[InternetShortcut] URL='你的域名' IDList=IconIndex=43 IconFile=https://www.jb51.net/favicon.ico HotKey=1626 [{000214A0-0000-0000-C000-000000000046}] Prop3=19,2"; Header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=银行利率.url"); echo$Shortcut; ?> 


保存为Desktopurl.php,或者你喜欢叫他什么名字,自己取。

2.在你想显示的位置,插入调用上述代码的代码

如下:

01.<a href="https://www.jb51.net/你的域名/Desktopurl.php" target="_blank"><STRONG><FONT color=#000000>加入桌面</FONT></STRONG></a>

02.复制代码当然,你可以根据的喜好,看你要如何设计文字的字体,大小,颜色,甚至用图片来代替也可以。

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/ae58d32a2da35692fb03d8fa7a8d5eee.html