Three useful codes to help visitors remember your website. Tips to add to favorites Favorites are the most basic tool for recording URLs in browsers. Although browsers have convenient favorites management functions, if you put a button to add to favorites on the web page, it will greatly increase the collection rate. There are three approaches to web design that you can take: Prompt the user to press ctrl+d. When you browse a web page with IE browser, pressing ctrl+d will add the current page to favorites. You can use text on the web page to prompt users to press the key combination. Use text links. Put the following code on the homepage, press the corresponding text link to pop up the favorites management window, press the OK key to add the current page to the bookmark: 〈p align=″right″〉 〈a href=″https://www.jb51.net/″ target=″_top″onclick=″window.external.addfavorite(′https://www.jb51.net/′,′123WORDPRESS.COM′)″title=″123WORDPRESS.COM″〉IE users click here to bookmark this site〈/a〉〈/p〉 Use button method. If the add to favorites function is implemented on a button, it will be more obvious. The specific code is as follows: 〈p〉〈input type=″button″value=″Add this site to bookmarks″onclick=″window.external.addfavorite(′https://www.jb51.net/′,′123WORDPRESS.COM′)″〉〈/p〉 〈/form〉 Set as the browser's homepage <br />If you add a convenient method to set the homepage on the homepage, maybe some people will actually set your website as their homepage. To modify the browser's homepage, you need to modify the Windows registry. All you have to do is create a registry modification file, download it to the user's hard disk, and help the browser complete the automatic registry modification work. For example, if the file name is lspace.reg, you can open it with Notepad or other text editors. The specific content is as follows: regedit4 [hkey—current—user\software\microsoft\internet explorer\main] ″start page″ = ″https://www.jb51.net/″ [hkey—current—user\software\netscape\netscape navigator\main] ″home page″ = ″https://www.jb51.net/″ The first one sets IE's star page; the second one sets nc's home page! Modify it to the corresponding URL, upload it to the Internet, provide a download link on the homepage, and the viewer can complete the registry modification by double-clicking it after downloading. Production Channel The IE channel file is actually a plain text file with a syntax format similar to HTML and a cdf extension. Therefore, to create a channel file, you do not need any special editing tools, using Notepad under Windows 98 is enough. The following is an example of a complete channel file: 〈channel href=″index.htm″ self=″jb51.cdf″base=″https://www.jb51.net/″〉 〈title〉123WORDPRESS.COM〈/title〉 〈logo href=″/images/logo.gif″ style=″image″ /〉 〈logo href=″/images/120*90.gif″ style=″icon″ /〉 〈abstract〉123WORDPRESS.COM——jb51.net〈/abstract〉 〈item href=″ad.htm″ precache=″yes″〉 〈title〉123WORDPRESS.COM Advertising Service〈/title〉 〈abstract〉123WORDPRESS.COM〈/abstract〉 〈logo href=″/images/logo.gif″ style=″icon″ /〉 〈/item〉 〈item href=″/sucai/index.htm″ precache=″yes″〉 〈title〉Quality Materials〈/title〉 〈abstract〉Quality materials〈/abstract〉 〈logo href=″/images/logo.gif″ style=″icon″ /〉 〈/item〉 〈/channel〉 illustrate: The body of a channel file begins with 〈channel ...〉 and ends with 〈/channel〉. In the first line <channel ...>: href="..." indicates the main web page file name that this channel points to; self="..." is the file name of the channel file itself; base="..." The default base path (url) of the channel file. If all "href" in the channel file use absolute paths, this item can be omitted. The second line 〈title〉...〈/title〉, fill in the channel title. In the third and fourth lines <logo ...>: Fill in the pattern file name at href="..."; Fill in the description of the pattern in style="..."; Image represents the icon located in the channel bar (size is 80×32 pixels); icon represents the icon of the channel file (size is 32×32 pixels). Note: Do not omit the “/” at the end. The fifth line 〈abstract〉...〈/abstract〉, fill in the description of the channel content. The sixth line 〈item ...〉 defines the sub-channel. Sub-channels can be links to some main columns under the main page. Where href="..." is filled with the web page file name pointed to by the sub-channel; precache="..." is used to determine whether to cache the sub-channel, and the answer is only "yes" or "no". The seventh line 〈title〉...〈/title〉, fill in the title of the sub-channel. The tenth line 〈/item〉ends the sub-channel. Line 11 begins to define the second subchannel. Finally, end it with 〈/channel〉 and save it with the extension cdf. Upload this file to the web server and call it on the web page to let visitors add it to their channel bar. The specific tag syntax is as follows: 〈a href=″https://www.jb51.net/jb51.cdf″〉 Add 123WORDPRESS.COM to your channel〈/a〉 |
<<: JS realizes the effect of Baidu News navigation bar
>>: Implementation of mysql8.0.11 data directory migration
Table of contents Preface sql_mode explained The ...
Note: The system is Ubuntu 14.04LTS, a 32-bit ope...
Enter /usr/local/nginx/conf sudo cd /usr/local/ng...
<a href="http://" style="cursor...
Public name of the page: #wrapper - - The outer e...
1. Installation environment 1. HUAWEI mate x cpu ...
BackUpMysql.sh script #!/bin/bash PATH=/bin:/sbin...
There are many reasons for slow query speed, the ...
This article summarizes the knowledge points of M...
Table of contents Introduction and Demo API: Cont...
How to obtain SQL statements with performance iss...
Some time ago, when I was working on a small func...
text OK, next it’s time to show the renderings. O...
Table of contents Why is IN slow? Which is faster...
1. [admin@JD ~]$ cd opt #Enter opt in the root di...