Let the visitor remember the three pieces of practical code for the website _ HTML/Xhtml _ webpage Creation
Source: Internet
Author: User
Let the visitor remember the three practical codes of the website. TIPS: adding to favorites is the most basic website record tool in the browser. Although there is a convenient favorites management function in the browser, adding a button to favorites on the webpage will greatly increase the favorites rate. You can use the following three Webpage Design Methods: prompt the user to let the visitor remember the three pieces of practical code of the website. Add to favorites prompt Favorites is the most basic website record tool in the browser. Although there is a convenient favorites management function in the browser, if you add the favorites button to the webpage, the favorites rate will be greatly increased. The following three webpage design methods can be used:
Prompt the user to press ctrl + d. When you browse a webpage in IE browser, press ctrl + d to add the current page to favorites. You can prompt the user to press the key combination in text on the webpage.
Use text links. Put the following code on the home page. Press the corresponding text link to bring up the favorites Management window. Press OK to add the current page to the bookmarks:
<P align = "right"> ″〉
<A href = "http://www.jb51.net/" target =" _ top "onclick =" window. external. addfavorite ('http://www.jb51.net/″,′ ') "title =" ″ "> the IE user clicks here to add this site to bookmarks </a> </p> 〉
Use the button method. If you add favorites to a button, the Code is as follows: <form> 〉
<P> <input type = "button" value = "add this site to the bookmarks" onclick = "window. external. addfavorite ('http://www.jb51.net/″, ′ ')"> </p> 〉
</Form> 〉
Set as the browser Homepage
If you add a convenient homepage setting method to the homepage, some people may actually set your website as the homepage. To modify the browser's homepage, You need to modify the windows registry. All you need to do is create a registry modification file and download it to the user's hard disk to help the browser automatically modify the registry. For example, the file name is lspace. reg, which can be opened in notepad or another text editor. The specific content is as follows:
Regedit4
[Hkey-current-user \ software \ microsoft \ internet explorer \ main]
"Start page" = "http://www.jb51.net /″
[Hkey-current-user \ software \ netscape navigator \ main]
"Home page" = "http://www.jb51.net /″
The first step is to set the star page of IE, and the second step is to set the home page of nc!
Modify it to the corresponding URL, upload it to the Internet, and provide the download link on the home page. After downloading it, the viewer can double-click it to complete registry modification.
Channel Creation
The IE channel file is actually a plain text file, which has a syntax format similar to html and uses cdf as the extension. Therefore, you do not need any special editing tools to create a channel file. You can use Notepad under windows 98. The following is an example of a complete channel file:
<Channel href1_1_index.htm "self =" jb51.cdf "base =" http://www.jb51.net/#> /″〉
<Title> script home </title> 〉
<Logo href = "/images/logo.gif" style = "image"/> ″/〉
<Logo href = "/images/120 * 90.gif" style = "icon"/> ″/〉
<Abstract> script home --jb51.net </abstract> 〉
<Item href?ad.htm "precache =" yes "> ″〉
<Title> script home advertisement service </title> 〉
<Abstract> script home </abstract> 〉
<Logo href = "/images/logo.gif" style = "icon"/> ″/〉
</Item> 〉
<Item href = "/sucai/index.htm" precache = "yes"> ″〉
<Title> excellent materials </title> 〉
<Abstract> excellent materials </abstract> 〉
<Logo href = "/images/logo.gif" style = "icon"/> ″/〉
</Item> 〉
</Channel> 〉
Note:
The body of the channel file starts with "channel..." and ends with "/channel.
In the first line of <channel...>:
Href = "..." indicates the name of the main webpage file pointed to by this channel;
Self = "..." is the file name of the channel file itself;
The default basic path (url) of the base = "..." channel file. If "href" in the channel file uses absolute paths, this can be omitted.
The second line is <title>... </title>. Enter the channel title.
In the third and fourth lines of <logo...>:
Fill in the pattern file name in href =;
Enter the description of the pattern in style =;
Image indicates the icon in the Channel Bar (80x32 pixels in size );
Icon indicates the channel File Identifier (32x32 pixels ).
Note: Do not miss the "/" at the end.
The fifth line is <abstract>... </abstract>. Enter the description of the channel content.
The sixth line, "item...", defines the sub-channel. Subchannels can be links to some main topics on the home page. Href = "... ", fill in the webpage file name pointed to by the sub-channel; precache ="... "is to determine whether the sub-channel is cached, and the answer is only" yes "or" no ".
Line 7: <title>... </title>. Enter the subchannel title.
The subchannel of Row 10 </item> ends.
Line 3 starts to define the second subchannel.
End with </channel> and save the disk with the cdf extension.
Upload the file to the web server. When you need to call the file on a webpage, add the visitor to their channel bar. the syntax of the tag is as follows:
<A href = "http://www.jb51.net/jb51.cdf.pdf" add the foothome to your channel. </a> 〉
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service