A kind of advertisement broadcast method
Technical field
The present invention relates to Internet technical field, particularly a kind of advertisement broadcast method.
Background technology
1), when surfing the Net with browser and opening video player displaying video the method for throwing in advertisement by the Internet in prior art comprises following two kinds:, before video starts, play the not advertisements of equal time such as 15 seconds or 30 seconds, this period of time spot is that spectators can not skip; 2), when surfing the Net by browser, webpage generates some unsteady advertising pictures or videos above the page after opening.
For the 1st kind of advertisement placement method, a lot of spectators can be at this section of time spot player webpage away from keyboard, and remove to browse other webpage or do other thing, after video formally starts, goes back to again, advertising results and income are not high, and can cause the negative emotions such as dislike of user to advertisement.For the 2nd kind of advertisement placement method, the advertisement of floating above the page tends to the normal browsing of interference user to web page contents, thereby be subject to user's repulsion, user often arranges shielding by browser and does not allow advertisement occur or occur rear manual-lock in advertisement, and advertising results and income are not high yet.
Meanwhile, by online computing, when webpage is transferred loading, have one section of blank time, this section of blank time probably has several seconds to more than 10 seconds, is but never fully utilized.Popularization along with Web TV and smart mobile phone, increasing user is by TV and mobile phone terminal internet, TV and surfing Internet with cell phone speed do not have computer fast, when open any browser and clickthrough enter next webpage and transfer Web page loading, generally need cost than the more time of computer, this section of blank time is obviously a kind of waste concerning operator and brand business.
Summary of the invention
(1) technical problem that will solve
The technical problem to be solved in the present invention is: how a kind of advertisement broadcast method is provided, carries out advertisement broadcasting with the time of utilizing browser to transfer Web page loading.
(2) technical scheme
For solving the problems of the technologies described above, the invention provides a kind of advertisement broadcast method, it comprises step:
A: when the network terminal is connected to server by network, be saved to the described network terminal from described server downloads ad file;
B: when the browser on the described network terminal is transferred Web page loading according to user instruction, show described promotional literature on the described network terminal.
Wherein, described steps A specifically comprises step:
A100: when the network terminal is connected to server by network, the described network terminal obtains the URL of described server and upgrades sign;
A200: whether the described network terminal successfully downloads to promotional literature according to described renewal sign judgement when connected described server last time, and if so, the promotional literature that is last downloaded by local advertising file update, then performs step A300; Otherwise, directly perform step A300;
A300: download promotional literature from described server according to the URL of described server;
A400: described renewal sign is set according to downloading result.
Wherein, described steps A 300 specifically comprises step:
A310: download from described server the address information file that promotional literature is corresponding according to the URL of described server;
A320: resolve described address information file, judge whether to obtain the storage address of promotional literature, if so, execution step A330, and record download result is successfully; Otherwise, process ends, and record download result is unsuccessfully;
A330: according to the storage address downloads ad file of promotional literature.
Wherein, described steps A 330 specifically comprises step:
A331: the store path of promotional literature on the described network terminal is set;
A332: obtain the size of promotional literature, and according to the size of promotional literature reserved corresponding memory space on the described network terminal;
A333: the storage address that creates socket and promotional literature communicates;
A334: create the temporary file that promotional literature is corresponding in described memory space;
A335: receive the data of promotional literature by described socket, and the data that receive are saved to described temporary file;
A336: close described socket after data receiver, and the name of revising described temporary file is called the Old Name of promotional literature.
Wherein, described step B specifically comprises step:
B100: when the browser on the described network terminal is transferred Web page loading according to user instruction, the transparency of webpage is set to translucent;
B200: local advertising file is shown above webpage;
B300: judge whether local advertising file displaying time reaches predetermined minimum, if so, execution step B400; Otherwise, execution step B200;
B400: judge whether webpage has loaded, if so, execution step B600; Otherwise, execution step B500;
B500: the top that remains on webpage shows local advertising file, and judges whether local advertising file displaying time reaches predetermined maximum, if so, execution step B600; Otherwise, execution step B400;
B600: hide local advertising file, and the transparency of webpage is set to opaque.
Wherein, described predetermined minimum is 2 seconds, and described predetermined maximum is 15 seconds.
Wherein, described local advertising file is advertising pictures.
Wherein, when described local advertising file is advertising pictures, described step B200 specifically comprises step:
B210: read in the word that described advertising pictures is relevant;
B220: read in described advertising pictures, judge whether the picture format of described advertising pictures is predetermined format, if so, execution step B230; Otherwise, throw aside described advertising pictures and relevant word thereof, execution step B210;
B230: whether the size that judges described advertising pictures belongs to predetermined size range, if so, execution step B240; Otherwise, throw aside described advertising pictures and relevant word thereof, execution step B210;
B240: whether the size that judges described advertising pictures belongs to predetermined magnitude range if so, shows described advertising pictures and relevant word thereof above webpage; Otherwise, throw aside described advertising pictures and relevant word thereof, execution step B210.
Wherein, described predetermined size range is for being greater than 120 * 90 pixels, and is less than 800 * 600 pixels.
Wherein, described predetermined magnitude range is for being greater than 0kB, and is less than 512kB.
Wherein, the described network terminal is mobile phone, TV or computer.
(3) beneficial effect
Advertisement broadcast method of the present invention, downloads ad file in advance when network terminal connection server, and when browser is transferred Web page loading, call promotional literature and show, thereby in the situation that not affecting webpage loading, taking full advantage of browser transfers the aperture time of Web page loading and carries out advertisement broadcasting, improved the displaying time of the network terminal and other have been shown to the utilance of resource, there is obvious social benefit.Meanwhile, in advertisement, show the stage, webpage is set to translucent, and advertisement display effect is better.
Accompanying drawing explanation
Fig. 1 is advertisement broadcast method flow chart described in the embodiment of the present invention;
Fig. 2 is the detail flowchart of steps A described in the embodiment of the present invention;
Fig. 3 is the detail flowchart of step B described in the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used for illustrating the present invention, but are not used for limiting the scope of the invention.
Fig. 1 is advertisement broadcast method flow chart described in the embodiment of the present invention, and as shown in Figure 1, described method comprises step:
A: when the network terminal is connected to server by network, be saved to the described network terminal from described server downloads ad file.
The described network terminal is mobile phone, TV or computer, is preferably Web TV in the present embodiment.Described promotional literature can be that picture, Flash(dodge) animation, video, in the present embodiment, be preferably advertising pictures.
Fig. 2 is the detail flowchart of steps A described in the embodiment of the present invention, and as shown in Figure 2, described steps A further comprises step:
A100: when the network terminal is connected to server by network, the described network terminal obtains the URL(Uniform Resource Locator of described server, URL(uniform resource locator)) and upgrade sign.
A200: whether the described network terminal successfully downloads to promotional literature according to described renewal sign judgement when connected described server last time, and if so, the promotional literature that is last downloaded by local advertising file update, then performs step A300; Otherwise, directly perform step A300.
A300: download promotional literature from described server according to the URL of described server.
Described steps A 300 specifically comprises step:
A310: download from described server the address information file that promotional literature is corresponding according to the URL of described server.Address information file is generally an XML file, and the relevant informations such as storage address that comprise promotional literature in legal address information file.
A320: resolve described address information file, judge whether to obtain the storage address of promotional literature, if so, execution step A330, and record download result is successfully; Otherwise, process ends, and record download result is unsuccessfully.
A330: according to the storage address downloads ad file of promotional literature.
Described steps A 330 specifically comprises step:
A331: the store path of promotional literature on the described network terminal is set.
A332: obtain the size of promotional literature, and according to the size of promotional literature reserved corresponding memory space on the described network terminal.
A333: the storage address that creates socket and promotional literature communicates.
A334: create the temporary file that promotional literature is corresponding in described memory space.Described temporary file is generally .bak file, and such as when former promotional literature is called picture1.jpg, its corresponding temporary file is picture1.jpg.bak.
A335: receive the data of promotional literature by described socket, and the data that receive are saved to described temporary file.
A336: close described socket after data receiver, and the name of revising described temporary file is called the Old Name of promotional literature.
A400: described renewal sign is set according to downloading result.Described renewal sign can be a flag bit, such as representing to download successfully when this flag bit is 1, is to represent failed download at 0 o'clock.
It should be noted that, described in the application, method is to be all stored in the network terminal after downloading in advance for the promotional literature showing at every turn, particularly, and namely when network terminal connection server, download in advance the promotional literature for show next time, and result downloaded in record.When downloading successfully, next time during network terminal connection server, automatically the promotional literature of having downloaded is updated in a file that can directly call, in order to calling; When failed download, next time during network terminal connection server, still use original promotional literature.Can guarantee that like this promotional literature can called be shown to user with the extremely short time, thereby can adapt to time that the present invention utilizes Web page loading carries out the requirement of advertisement broadcasting.
B: when the browser on the described network terminal is transferred Web page loading according to user instruction, show described promotional literature on the described network terminal.
Fig. 3 is the detail flowchart of step B described in the embodiment of the present invention, and as shown in Figure 3, described step B specifically comprises step:
B100: when the browser on the described network terminal is transferred Web page loading according to user instruction, the transparency of webpage is set to translucent.Transparency by webpage is set to translucent, makes it as display background, can highlight in the advertisement demonstration stage content of advertisement.
B200: local advertising file is shown above webpage.
In the present embodiment, when described local advertising file is advertising pictures, described step B200 specifically comprises step:
B210: read in the word that described advertising pictures is relevant.The word that these advertising pictures are relevant is generally the word that advertising pictures is described.
B220: read in described advertising pictures, judge whether the picture format of described advertising pictures is predetermined format, if so, execution step B230; Otherwise, throw aside described advertising pictures and relevant word thereof, execution step B210.Wherein, described predetermined format can be .gif file .png file or .jpg file.
B230: whether the size that judges described advertising pictures belongs to predetermined size range, if so, execution step B240; Otherwise, throw aside described advertising pictures and relevant word thereof, execution step B210.Described predetermined size range is for being greater than 120 * 90 pixels, and is less than 800 * 600 pixels.
B240: whether the size that judges described advertising pictures belongs to predetermined magnitude range if so, shows described advertising pictures and relevant word thereof above webpage; Otherwise, throw aside described advertising pictures and relevant word thereof, execution step B210.Described predetermined magnitude range is for being greater than 0kB, and is less than 512kB.
In order to guarantee that advertising pictures can complete call within the extremely short time, must carry out strict restriction to the form of advertising pictures, size and size.In addition, along with the lifting of network terminal hardware performance, to the restriction of the form of advertising pictures, size and size etc., also can suitably adjust.
B300: judge whether local advertising file displaying time reaches predetermined minimum, if so, execution step B400; Otherwise, execution step B200.Described in the present embodiment, predetermined minimum is 2 seconds, and to guarantee the shortest demonstration duration of promotional literature, described in practical application, predetermined minimum can suitably be adjusted according to actual conditions.
B400: judge whether webpage has loaded, if so, execution step B600; Otherwise, execution step B500.
B500: the top that remains on webpage shows local advertising file, and judges whether local advertising file displaying time reaches predetermined maximum, if so, execution step B600; Otherwise, execution step B400.Described in the present embodiment, predetermined maximum is 15 seconds, to limit the longest demonstration duration of promotional literature, that is to say when promotional literature displaying time reaches 15 seconds, no matter whether webpage has loaded, all to stop advertisement and show, to avoid advertisement displaying time long, cause user to dislike.Described in practical application, predetermined maximum can suitably be adjusted according to actual conditions.
B600: hide local advertising file, and the transparency of webpage is set to opaque.
Advertisement broadcast method described in the embodiment of the present invention, downloads ad file in advance when network terminal connection server, and when browser is transferred Web page loading, call promotional literature and show, thereby in the situation that not affecting webpage loading, taking full advantage of browser transfers the aperture time of Web page loading and carries out advertisement broadcasting, improved the displaying time of the network terminal and other have been shown to the utilance of resource, there is obvious social benefit.Meanwhile, in advertisement, show the stage, webpage is set to translucent, and advertisement display effect is better.
Above execution mode is only for illustrating the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.