2016年7月11日星期一

How to Make a Timer

On many sites you can see the timer countdown before any specific event. It may be time to expiration of the discounts or the time remaining before the New Year. Such timers are great publicity stunt, stimulating the activity of buyers / suppliers, as well as a good variety for an interactive site.

To install a timer on your website, first download the script timer and countdown. Then adjust it two parameters: the reference date and the corresponding inscription, which will be shown at this date. Opening the downloaded archive, you will find two files: one contains countdown.js script, and the other serves as an example of the page, to which will be connected to this script - index.html. First, extract the files from the archive.

Use "Notepad" to edit the script file. To open the file in the "Notepad", use right-mouse click on it. Select from the menu "View", then select "With - Notepad". Save the file and place it in the directory where the page on your site, which will host the timer. In other words, the page file timer th and the script file must be in the same directory.

Next, in a convenient location for the placement of the timer and, in your page code, place the 2 lines:
The DIV the align = «center» ID = «countdown»>.

The first line of the team is responsible for the withdrawal of the timer a. Second is for the connection created by the script. Check the operation of your timer as well. If done correctly, you will see a countdown in the right place on the page of your site.

BTW, you can buy the cheap countdown timer at Banggood. Besides, you can easily get other electronic accessories (e.g. cheap craft kits) there with high quality and reasonable prices.


没有评论:

发表评论