用php\asp建立 網頁案頭捷徑

來源:互聯網
上載者:User

建立一個PHP文檔:名字好記就行如:shortcut.php

PHP文檔中的內容:

 

代碼

 1 <?php 
 2 $Shortcut = "[InternetShortcut] 
 3 URL=http://www.zhangchu.net/ 
 4 IDList= 
 5 [{000214A0-0000-0000-C000-000000000046}] 
 6 Prop3=19,2 
 7 "; 
 8 Header("Content-type: application/octet-stream"); 
 9 header("Content-Disposition: attachment; filename=張楚網站.url;"); 
10 echo $Shortcut; 
11 ?>

 

asp 代碼

 1 <%
 2 id=request("id")
 3 gname=request("gname")
 4 If gname="" Then gname="4usky小遊戲"
 5 Shortcut = "[InternetShortcut] " & vbCrLf
 6 Shortcut = Shortcut & "URL=http://www.4usky.com/swf/"&id&".htm?desktop" & vbCrLf
 7 Shortcut = Shortcut & "IDList= " & vbCrLf
 8 Shortcut = Shortcut & "[{000214A0-0000-0000-C000-000000000046}] " & vbCrLf
 9 Shortcut = Shortcut & "Prop3=19,2 " & vbCrLf
10 Shortcut = Shortcut & " " & vbCrLf
11 Response.AddHeader "Content-Disposition", "attachment;filename="&gname&".url;"
12 Response.ContentType = "application/octet-stream"
13 Response.Write Shortcut
14 %>

 

 

 

要想出現表徵圖請先確保網站根目錄中有 favicon.ico 檔案

上傳到網站,訪問地址:如:http://www.zhangchu.net/shortcut.php 就會有提示下載一個名為 張楚網站.urll檔案,儲存在本地就是一個捷徑!

 

asp示範 http://www.4usky.com/shortcut/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.