First of all, I declare that I am a rookie of the website construction (program code). This article is also shared with friends who have just entered the webmaster. If you are a senior, please advise or pass by!
First of all, this method is a very effective website promotion method, and it can also improve the user experience of the website. After all, many netizens do not know how to collect them, or do n’t manage it, or collect hundreds or thousands of websites, because countless websites are used to use the collection of Ctrl+D. Let netizens collect their own website. Therefore, I feel that the method of putting the URL on the desktop can be defeated to join the collection. Huoo, as for your believe, I believe it anyway.
Furthermore, this collection method settings are very simple. Just replace the website and website name in the ASP source code to your own, and then upload it to your website server! I have just added the test successfully, and the whole process does not exceed 2 minutes!
Finally, this method is PHP source code, and I choose to use ASP to satisfy more webmasters and friends. After all, ASP space is more common, and it does not require independent databases.
In that way, if you think there is this necessary, add this collection method to your website, then follow the following operation methods:
Add website shortcut ASP source code to the desktop :
Create a new ASP document: Name is good, just like: desktop.asp
- <%
- ID = request (ID)
- liehuo_net_url = request (liehuo_net_url)
- IFLIEHUO_NET_URL = TheNLIEHUO_NET_URL = Wulin.com
- Shortcut = & vBcrLF
- Shortcut = shortcut & url = http://www.vevb.com &vbcrf
- Shortcut = Shortcut & Idlist = & VBCRLF
- Shortcut = shortcut & iconfile = http://www.vevb.com/favicon.ico&vbcrlf
- Shortcut = Shortcut & iConindex = 1 & VBCRLF
- Shortcut = shortcut & [{000214A0-0000-0000-C000-0000000046}] & vBCRLF
- Shortcut = Shortcut & Prop3 = 19,2 & VBCRLF
- Shortcut = Shortcut && VBCRLF
- Response.addheaderContent-Disposition, Attachment; FILENAME = & LIEHUO_NET_URL & .url;
- Response.contenttype = Application/OCTET-Stream
- Response.writeshortcut
- %>
Demonstration: http://www.qvodone.com/desktop.asp
Finally, after you generate the above ASP code, you can directly replace the collection code on your website to this ASP link! Everything is ok!
Add the PHP source code of the website shortcut on the desktop :
Some friends need PHP, because my space does not support PHP. Essence So there is a test. Essence Friends in PHP space can try this code:
Create a new PHP document: Name is good, just like: desktop.php
- <? php
- $ Shortcut =
- Url = http://www.2y.cn
- Idlist =
- Iconfile = http://www.vevb.com/favicon.ico
- Iconindex = 1
- [000214A0-0000-0000-C000-0000000046}]
- Prop3 = 19,2
- ; // Pay attention to modify the website and icon link above
- Header (Content-Type: Application/OCTET-Stream);
- Header (Content-Disposition: Attachment; Filename = Wulin.com.url;);
- echo $ shortcut;
- ?>>
Just replace the URL to your domain name!