久久久久国产一级毛片高清板-久久久久国产一级毛片高清片-久久久久激情免费观看-久久久久精彩视频-97成人在线视频-97大香伊在人人线色

專業的廣州網站建設、廣州網站制作公司為您服務,電話:020-85548809,29883069 手機訪問
微信關注
關注奇億廣州網站建設微信
網站導航
新聞中心
首頁>新聞中心>網頁設計

簡單添加網頁快捷方式到電腦桌面

添加時間:2016/12/20 19:35:10    編輯:奇億網站建設公司

以下是ASP添加網頁快捷方式到電腦桌面的代碼:

<%

Response.ContentType="APPLICATION/OCTET-STREAM"
Response.AddHeader "Content-Disposition","attachment;filename="&"廣州網站建設.url"  '生成的文件名字
Response.Write("[InternetShortcut]")&Chr(13)
Response.Write("URL=http://"&host&""&sdir&"")&Chr(13)
Response.Write("IconFile=http://www.232cn.cn/favicon.ico")&Chr(13) '生成的桌面圖標
Response.Write("IDList=")&Chr(13)
Response.Write("[{000214A0-0000-0000-C000-000000000046}]")&Chr(13)
Response.Write("Prop3=19,2")&Chr(13)
Response.End
%>

如果是PHP添加網頁快捷方式到電腦桌面的則是下面的代碼:
<?php
if(isset($_GET[title]) && trim($_GET[title]) !== "") $title = trim($_GET[tilte]);
$content='
[DEFAULT]
BASEURL=http://www.232cn.cn/
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=http://www.232cn.cn/
IDList=[{000214A0-0000-0000-C000-000000000046}]
IconFile=http://www.232cn.cn/favicon.ico
IconIndex=1
HotKey=0
Prop3=19,2';
header("Content-type:application/octet-stream");
header("Content-Disposition:attachment; {$title}.url;");
echo $content;
?>