精品久久毛片免费高清看-久久精品韩国电影-欧美午夜精品视频在线观看-在线看日本亚洲精品 午夜理论片在线观看免费_无码专区在线观看韩国_亚洲红杏第一区网站_亚洲欧美日韩综合久久久久久

專(zhuān)業(yè)的廣州網(wǎng)站建設(shè)、廣州網(wǎng)站制作公司為您服務(wù),電話(huà):020-85548809,29883069 手機(jī)訪(fǎng)問(wèn)
微信關(guān)注
關(guān)注奇億廣州網(wǎng)站建設(shè)微信
網(wǎng)站導(dǎo)航
新聞中心
首頁(yè)>新聞中心>網(wǎng)頁(yè)設(shè)計(jì)

簡(jiǎn)單添加網(wǎng)頁(yè)快捷方式到電腦桌面

添加時(shí)間:2016/12/20 19:35:10    編輯:奇億網(wǎng)站建設(shè)公司

以下是ASP添加網(wǎng)頁(yè)快捷方式到電腦桌面的代碼:

<%

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

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