


Three practical codes to let visitors remember the website_HTML/Xhtml_Webpage Production
Three practical codes for visitors to remember your website. Prompt to add to favorites
Favorites is the browser’s most basic tool for recording URLs. Although the browser has convenient favorites management functions, if you put the add to favorites button on the web page , will greatly increase the collection rate. The following three web design methods can be used:
Prompt the user to press ctrl+d. When you use IE browser to browse a web page, pressing ctrl+d will add the current page to your favorites. You can use text on the web page to prompt the user to press this key combination.
Use text links. Put the following code on the homepage, click the corresponding text link to pop up the favorites management window, press the OK key to bookmark the current page:
〈p align=″right″〉
〈a href= ″http://www.jb51.net/″ target=″_top″onclick=″window.external.addfavorite(′http://www.jb51.net/′,′Script Home′)″title=″Script Home″〉IE users click here to bookmark this site〈/a〉〈/p〉
using button method. It will be more obvious if the add favorites function is implemented on a button. The specific code is as follows: 〈form〉
〈p〉〈input type=″button″value=″Bookmark this site″onclick=″window .external.addfavorite(′http://www.jb51.net/′,′Script Home′)″〉〈/p〉
〈/form〉
Set as the browser’s homepage
If you add a convenient way to set the homepage on your homepage, maybe some people will actually set your website as the homepage. Modifying the browser's homepage requires modifying the Windows registry. All you have to do is make a registry modification file and download it to the user's hard drive to help the viewer complete the automatic modification of the registry. For example, the file name is lspace.reg, which can be opened with Notepad or other text editors. The specific content is as follows:
regedit4
[hkey—current—usersoftwaremicrosoftinternet explorermain]
″start page″ = ″http: //www.jb51.net/″
[hkey—current—usersoftwarenetscapenetscape navigatormain]
″home page″ = ″http://www.jb51.net/″
The first item is to set the star of IE page; The second item sets the home page of nc!
Modify it to the corresponding URL, upload it to the Internet, and provide a download link on the homepage. After downloading, the viewer can double-click to complete the registry modification work.
Production Channel
IE channel file is actually a plain text file, with a syntax format similar to html, with cdf as the extension. Therefore, you do not need any special editing tools to create channel files. Notepad under Windows 98 is enough. The following is an example of a complete channel file:
〈channel href=″index.htm″ self=″jb51.cdf″ base=″http://www.jb51.net/″〉
〈logo href=″/images/logo.gif″ style=″image″ /〉
〈logo href=″/images/120*90.gif″ style=”icon″ / 〉
〈abstract〉Script House——jb51.net〈/abstract〉
〈item href=″ad.htm″ precache=″yes″〉
〈abstract〉Script Home〈/abstract〉
〈logo href=″/images/logo.gif″ style=″icon″ /〉
〈/item〉
〈item href =″/sucai/index.htm″ precache=″yes″〉
〈title〉High-quality material〈/title〉
〈abstract>High-quality material〈/abstract〉
〈logo href=″/images/ logo.gif″ style=″icon″ /〉
〈/item〉
〈/channel〉
Note:
The text of channel files all starts with 〈channel...〉 and ends with Ending with 〈/channel〉.
In the first line 〈channel...〉:
href="..." indicates the main web page file name pointed to by this channel;
self="..." is the channel file itself The file name;
base="..." The default base path (url) of the channel file. If all "hrefs" in the channel file use absolute paths, this can be omitted.
The second line 〈title〉...〈/title〉, fill in the title of the channel.
In the third and fourth lines 〈logo...〉: fill in the file name of the pattern at
href="..."; fill in the description of the pattern at
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: Don’t miss 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 in 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 sub-channel ends.
The eleventh line begins to define the second sub-channel.
Finally ends with 〈/channel〉 and saves it with cdf extension.
Upload this file to the web server. When it needs to be called on the web page, let visitors add it to their channel bar. The specific tag syntax is as follows:
〈a href="http://www.jb51 .net/jb51.cdf″〉 Add Script House to your channel〈/a〉

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to send web pages to the desktop as a shortcut in Edge browser? Many of our users want to display frequently used web pages on the desktop as shortcuts for the convenience of directly opening access pages, but they don’t know how to do it. In response to this problem, the editor of this issue will share the solution with the majority of users. , let’s take a look at the content shared in today’s software tutorial. The shortcut method of sending web pages to the desktop in Edge browser: 1. Open the software and click the "..." button on the page. 2. Select "Install this site as an application" in "Application" from the drop-down menu option. 3. Finally, click it in the pop-up window

1. WeChat is a social platform that pays attention to privacy protection. Users cannot see who has visited their Moments or personal homepage. 2. This design is intended to protect user privacy and avoid potential harassment or snooping. 3. Users can only see the likes and comments records in their circle of friends, further ensuring the confidentiality of personal information.

When deleting or decompressing a folder on your computer, sometimes a prompt dialog box "Error 0x80004005: Unspecified Error" will pop up. How should you solve this situation? There are actually many reasons why the error code 0x80004005 is prompted, but most of them are caused by viruses. We can re-register the dll to solve the problem. Below, the editor will explain to you the experience of handling the 0x80004005 error code. Some users are prompted with error code 0X80004005 when using their computers. The 0x80004005 error is mainly caused by the computer not correctly registering certain dynamic link library files, or by a firewall that does not allow HTTPS connections between the computer and the Internet. So how about

Practical tips for converting full-width English letters into half-width forms. In modern life, we often come into contact with English letters, and we often need to input English letters when using computers, mobile phones and other devices. However, sometimes we encounter full-width English letters, and we need to use the half-width form. So, how to convert full-width English letters to half-width form? Here are some practical tips for you. First of all, full-width English letters and numbers refer to characters that occupy a full-width position in the input method, while half-width English letters and numbers occupy a full-width position.

Some netizens found that when they opened the browser web page, the pictures on the web page could not be loaded for a long time. What happened? I checked that the network is normal, so where is the problem? The editor below will introduce to you six solutions to the problem that web page images cannot be loaded. Web page images cannot be loaded: 1. Internet speed problem The web page cannot display images. It may be because the computer's Internet speed is relatively slow and there are more softwares opened on the computer. And the images we access are relatively large, which may be due to loading timeout. As a result, the picture cannot be displayed. You can turn off the software that consumes more network speed. You can go to the task manager to check. 2. Too many visitors. If the webpage cannot display pictures, it may be because the webpages we visited were visited at the same time.

Quark Netdisk and Baidu Netdisk are currently the most commonly used Netdisk software for storing files. If you want to save the files in Quark Netdisk to Baidu Netdisk, how do you do it? In this issue, the editor has compiled the tutorial steps for transferring files from Quark Network Disk computer to Baidu Network Disk. Let’s take a look at how to operate it. How to save Quark network disk files to Baidu network disk? To transfer files from Quark Network Disk to Baidu Network Disk, you first need to download the required files from Quark Network Disk, then select the target folder in the Baidu Network Disk client and open it. Then, drag and drop the files downloaded from Quark Cloud Disk into the folder opened by the Baidu Cloud Disk client, or use the upload function to add the files to Baidu Cloud Disk. Make sure to check whether the file was successfully transferred in Baidu Cloud Disk after the upload is completed. That's it

Recently, many netizens have asked the editor, what is the file hiberfil.sys? Can hiberfil.sys take up a lot of C drive space and be deleted? The editor can tell you that the hiberfil.sys file can be deleted. Let’s take a look at the details below. hiberfil.sys is a hidden file in the Windows system and also a system hibernation file. It is usually stored in the root directory of the C drive, and its size is equivalent to the size of the system's installed memory. This file is used when the computer is hibernated and contains the memory data of the current system so that it can be quickly restored to the previous state during recovery. Since its size is equal to the memory capacity, it may take up a larger amount of hard drive space. hiber

Executing PHP code in a web page requires ensuring that the web server supports PHP and is properly configured. PHP can be opened in three ways: * **Server environment:** Place the PHP file in the server root directory and access it through the browser. * **Integrated Development Environment: **Place PHP files in the specified web root directory and access them through the browser. * **Remote Server:** Access PHP files hosted on a remote server via the URL address provided by the server.
