CN104144224A - Method and device for displaying released information through client side - Google Patents

Method and device for displaying released information through client side Download PDF

Info

Publication number
CN104144224A
CN104144224A CN201410419044.8A CN201410419044A CN104144224A CN 104144224 A CN104144224 A CN 104144224A CN 201410419044 A CN201410419044 A CN 201410419044A CN 104144224 A CN104144224 A CN 104144224A
Authority
CN
China
Prior art keywords
news
webpage
plug
unit element
loaded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410419044.8A
Other languages
Chinese (zh)
Other versions
CN104144224B (en
Inventor
郭富森
秀丽蕴
张菊元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410419044.8A priority Critical patent/CN104144224B/en
Publication of CN104144224A publication Critical patent/CN104144224A/en
Application granted granted Critical
Publication of CN104144224B publication Critical patent/CN104144224B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and device for displaying released information through a client side. The method includes the steps that the released information to be loaded and displayed is acquired; a loading and displaying request for a first type plug-in element is detected; the first type plug-in element is embedded into a first local webpage of the client side, wherein scripts for displaying the released information are injected into the first webpage; when the first webpage is loaded, the scripts for displaying the released information are operated, and the released information is displayed on the first type plug-in element in the first webpage in a covering mode. The scripts are injected into the first webpage to display the released information, the scripts can support released information of multiple formats, and therefore the problem that the display form of the released information is single is solved. The first type plug-in element is embedded into the first local webpage of the client side, and then the scripts are operated to display the released information while the first webpage is loaded, so that the released information is displayed while the first type plug-in element is loaded.

Description

Client shows the method and the device that release news
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of client and show the method and the device that release news.
Background technology
Because the function of HTML (application under standard generalized markup language) is very limited, cannot reach people's desired design, for fresh and new dynamic effect is made us in realization, and produce Flash.Flash can comprise simple animation, video content, complicated PowerPoint and application program and between any content between them.Because it represents the rich and varied plug-in unit element that is widely used in game, animation or video etc. of form.In order to show promotion message to user, generally can before plug-in unit element be play or in playing process, show and release news to user.
At present, utilizing before web displaying plug-in unit element, generally all first show and release news, the plug-in unit element here can be game, animation, video etc.; Release news and refer to static or dynamic advertisement.In the prior art, release news to represent form more single, generally only support the advertisement of picture format or Flash form or multimedia form, content dullness, user easily feels to detest to the advertisement of this single form.And prior art is mainly to adopt first to represent and release news, after the demonstration that releases news finishes, just loading of plug-in element also shows the plug-in unit element loading, before after the demonstration that releases news finishes, plug-in unit element shows like this, have one section of time dead and can show without any information, thereby occur releasing news and represent with plug-in unit element the problem separating.
Summary of the invention
In view of the above problems, the present invention has been proposed so that a kind of method that provides client that overcomes the problems referred to above or address the above problem at least in part to show to release news and corresponding client show the device releasing news.
According to an aspect of the present invention, provide a kind of client to show the method releasing news, having comprised:
Get and will be loaded releasing news of demonstration;
The loaded and displayed request of the plug-in unit element to the first kind detected;
The plug-in unit element of the described first kind is embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news;
In the time loading described the first webpage, move the script that described demonstration releases news, the described covering that releases news is presented on the plug-in unit element of the first kind in the first webpage.
According to a further aspect in the invention, provide a kind of client to show the device releasing news, having comprised:
The acquisition module that releases news, is suitable for getting and will be loaded releasing news of demonstration;
First detection module, is suitable for detecting the loaded and displayed request of the plug-in unit element to the first kind;
Merge module, is suitable for the plug-in unit element of the described first kind to be embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news;
Operation module, is suitable for moving in the time loading described the first webpage the script that described demonstration releases news;
The display module that releases news, be suitable for by described release news to cover be presented on the plug-in unit element of the first kind in the first webpage.
According to scheme provided by the invention, get and will be loaded releasing news of demonstration; The loaded and displayed request of the plug-in unit element to the first kind detected; The plug-in unit element of the described first kind is embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news; In the time loading described the first webpage, move the script that described demonstration releases news, the described covering that releases news is presented on the plug-in unit element of the first kind in the first webpage.In the present invention, be used for showing by injection script in the first webpage releasing news, use script can support releasing news of multiple format, overcome the problem that form is single that represents releasing news; By first the plug-in unit element of the first kind being embedded in the first webpage of client terminal local, then represent and release news loading in the first webpage Run Script, realize when the plug-in unit element of the first kind loads and represented the object releasing news, can avoid so first representing and releasing news in prior art, then load releasing news that the plug-in unit element of the first kind brings and represent with the first kind plug-in unit element problem separating.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description of the drawings
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skill in the art.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the flow chart that client according to an embodiment of the invention shows the method releasing news;
Fig. 2 shows the flow chart that client in accordance with another embodiment of the present invention shows the method releasing news;
Fig. 3 shows the flow chart that client in accordance with another embodiment of the present invention shows the method releasing news;
Fig. 4 shows the structured flowchart that client according to an embodiment of the invention shows the device releasing news;
Fig. 5 shows the structured flowchart that client in accordance with another embodiment of the present invention shows the device releasing news;
Fig. 6 shows the structured flowchart that client in accordance with another embodiment of the present invention shows the device releasing news.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, but should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can be by the those skilled in the art that conveys to complete the scope of the present disclosure.
Fig. 1 shows the flow chart that client according to an embodiment of the invention shows the method releasing news.As shown in Figure 1, the method comprises the following steps:
Step S100, gets and will be loaded releasing news of demonstration.
Alternatively, releasing news can be static or dynamic advertisement, and the form releasing news can be Flash form, picture format or multimedia form.Particularly, client is to the cloud server request message that releases news, cloud server is selected to release news according to the request message that releases news receiving from the storehouse that releases news, and releasing news of selecting sent to client, client is obtained releasing news of cloud server transmission, as being loaded releasing news of demonstration.
Step S110, detects the loaded and displayed request of the plug-in unit element to the first kind.
Wherein, the plug-in unit element of the first kind can be game, animation or the video etc. of Flash type.Whether client detects the plug-in unit element of the request of loading first kind by the operation of monitor user ', for example, if client monitors has the webpage of the plug-in unit element of the first kind by browser access to user, or client monitors is opened the plug-in unit element of the local first kind to user, the loaded and displayed request of the plug-in unit element to the first kind detected.
Step S120, is embedded into the plug-in unit element of the first kind in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news.
Wherein, the first webpage refers to the webpage that the plug-in unit element of the first kind shows.The webpage that this first webpage is client terminal local, the webpage of not returning from network side request.The first webpage inside is injected with the script releasing news for showing in advance.
Step S130, in the time loading the first webpage, operation shows the script releasing news, and covers and is presented on the plug-in unit element of the first kind in the first webpage releasing news.
Particularly, owing to having injected the script that shows the use that releases news in the first webpage, therefore, in the time loading the first webpage, can move this script, show and release news by this script, cover and be presented on the plug-in unit element of the first kind in the first webpage releasing news.
The method providing according to the above embodiment of the present invention, gets and will be loaded releasing news of demonstration; The loaded and displayed request of the plug-in unit element to the first kind detected; The plug-in unit element of the first kind is embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news; In the time loading the first webpage, operation shows the script releasing news, and covers and is presented on the plug-in unit element of the first kind in the first webpage releasing news.In the present embodiment, be used for showing by injection script in the first webpage releasing news, use script can support releasing news of multiple format, overcome the problem that form is single that represents releasing news; By first the plug-in unit element of the first kind being embedded in the first webpage of client terminal local, then represent and release news loading in the first webpage Run Script, realize when the plug-in unit element of the first kind loads and represented the object releasing news, can avoid so first representing and releasing news in prior art, then load releasing news that the plug-in unit element of the first kind brings and represent with the first kind plug-in unit element problem separating.
Fig. 2 shows the flow chart that client in accordance with another embodiment of the present invention shows the method releasing news.As shown in Figure 2, the method comprises the following steps:
Step S200, starts timer, in the time that the timing of timer arrives, detects and whether meets the condition that request releases news, and meets the condition that request releases news perform step S201 if detect; Meet if detect condition that request releases news method finish.
Particularly, after client terminal start-up, program starts a timer, and the timing for example 2 hours of timer is set, and detects whether meet the condition that request releases news every 2 hours.Wherein, detect and whether meet the condition that request releases news and further comprise: read local profile, obtain time that this request releases news and the mark releasing news of request last time; Detect current time and whether arrived the time that this request releases news, if so, detect and meet the condition that request releases news.For instance, the time that this request releases news is 15:00, if detect, current time arrives 15:00, detects and meets the condition that request releases news.
Step S201, sends the request message that releases news that carries the mark releasing news of asking last time to cloud server.
Particularly, the mark releasing news has represented the relevant information releasing news, and releases news for unique identification, the publisher, the theme etc. that for example release news.
Detecting after the condition that satisfied request releases news, client is to the cloud server request message that releases news, wherein, the request message that releases news carries the mark releasing news of client request last time, and the mark releasing news of this request last time has embodied the relevant information releasing news of client demonstration last time.
By send the mark releasing news that carries request last time to cloud server, can avoid repeatedly showing to user the problem that same releases news, reduce user's dislike degree.
Step S202, obtains new the releasing news as being loaded releasing news of demonstration that cloud server filters out according to the mark releasing news of request last time.
Particularly, cloud server is receiving the releasing news after request message of the mark releasing news that showed last time that carry that client sends, according to last time, the mark releasing news of request was screened releasing news of making new advances from the storehouse that releases news, and new the releasing news filtering out sent to client, client, getting after new the releasing news that cloud server sends, sets it as and will be loaded releasing news of demonstration.
Alternatively, the request message that releases news also carries user ID, and this user ID has embodied the historical record of user's request plug-in unit element.
Samely release news and reduce user's dislike degree for fear of repeatedly showing, the present embodiment can be selected new releasing news according to release news mark and user ID, be specially: server side utilizes user ID to obtain user's preference type beyond the clouds, chooses and releases news from the storehouse that releases news according to user's preference type; From choose release news screen out this request before obtained release news, obtain new releasing news.What cloud server received that client sends carries the releasing news after request message of user ID, calculate the preference type of user to plug-in unit element according to this user ID, then choose from the storehouse that releases news according to user's preference type and corresponding new the releasing news of plug-in unit element, and new the releasing news of choosing sent to client.If server side does not screen releasing news of making new advances beyond the clouds, receive and ask the time releasing news next time that cloud server returns, will ask next time be recorded in local profile the time releasing news.
After new the releasing news that receives that cloud server filters out, calculate the time that next time, request released news, by the time of asking next time to release news and the new identification record releasing news in local profile.By by the time of asking next time to release news and the new identification record releasing news in local profile, make client to ask to release news according to the record in local profile, and can avoid representing the same problem releasing news to user, in addition by request time is set, reduced the load of cloud server.
Step S203, detects the loaded and displayed request of the plug-in unit element carrying in webpage to be loaded.
In the present embodiment, webpage to be loaded is the webpage that carries plug-in unit element that cloud server returns, i.e. this loaded and displayed request is that the webpage that user carries plug-in unit element by browser access triggers.
Step S204 extracts the DOM node that plug-in unit element is corresponding in webpage to be loaded.
DOM Document Object Model (DOM) is interface a kind of and platform and language independent, content, structure and the type of its permission program and script dynamic access and amendment document.It has defined a series of object and method is carried out various random operations to the node of html dom tree.Wherein, the DOM node of the each own correspondence of html web page element, is also that plug-in unit element is to there being DOM node.
Step S205, obtains plug-in unit element by DOM node, and plug-in unit element is embedded in the first webpage of client terminal local, wherein, is injected with the script that shows the use that releases news in the first webpage.
The first webpage of client terminal local is used for showing plug-in unit element, and it is not the webpage that cloud server returns according to the request of client, but client needs the local webpage generating according to showing.In step S204, extract DOM node corresponding to plug-in unit element, therefore can get corresponding plug-in unit element by this DOM node, and accessed plug-in unit element is embedded in the first webpage of client terminal local.
Step S206, judges whether to meet the condition releasing news that shows, shows that the condition releasing news performs step S207 if meet; If the condition that satisfied demonstration releases news method finishes.
Particularly, judge whether that the condition that satisfied demonstration releases news is mainly to show by judging current time and last time whether the time difference releasing news exceedes Preset Time threshold value for example 6 hours.For instance, current time is 16:00, shows that the time releasing news was 15:00 last time, shows current time and last time that the time difference releasing news was 1 hour, does not exceed Preset Time threshold value 6 hours, does not meet the condition releasing news that shows; If current time is 22:00, showed that the time releasing news was 15:00 last time, showed current time and last time that the time difference releasing news was 7 hours, exceed Preset Time threshold value 6 hours, meet the condition releasing news that shows.
Release news and represent the time interval by setting, controlled the frequency of occurrence releasing news, can not play and release news continuously in a period of time ensureing, fallen greatly the bothering user that release news.
Step S206 is the optional step of the present embodiment.
Step S207, the loading progress of ProgressChange event Real-time Obtaining the first webpage providing by browser kernel.
In the time determining execution opportunity of script, the event mainly providing by IE kernel is notified, and wherein, the event that DocumentComplete has loaded completely as the page, is commonly used to do certain operations after the page has loaded.But this event, only have all elements of working as on the page all to download just and can trigger, if there is a picture that 404 mistakes occur on the page, this event may can trigger never so, if the trigger timing using this event as showing advertisements, may occur that user has seen the page, can play games, pop-up advertisement after a while.Therefore, the present embodiment is selected ProgressChange event to carry out real-time informing in the process of page loading and is loaded progress.
The mode that loads the first webpage mainly contains two kinds: (1) loads webpage to be loaded and the first webpage simultaneously, and the covering of the first webpage is presented on the plug-in unit element of the first kind in webpage to be loaded; (2) stop loading webpage to be loaded, load the first webpage.Wherein (1) kind mode is the webpage to be loaded that simultaneously loads to return from cloud server request and the first webpage of client terminal local, the benefit of this mode is that the first webpage covering is presented on the plug-in unit element of the first kind in webpage to be loaded, can also ensure that client represents the content of the webpage to be loaded except overlay area; (2) kind mode webpage to be loaded does not load, and only represents the content of the first webpage, and the benefit of this mode is the loading velocity that has promoted the first webpage.
Particularly, can judge by the loading progress of Real-time Obtaining the first webpage whether the document of the first webpage has loaded, and whether the main part of document has loaded.
Step S208, in the time knowing that the main part of the first webpage has loaded, Run Script.
Particularly, while knowing that by ProgressChange event the main part of the first webpage has loaded, operate in the release news script of use of the demonstration of injecting in the first webpage.Can strictly control the running time of script by ProgressChange event, avoid script to carry out and release news and also do not show too early, just " be washed out " by the plug-in unit element page of the first kind of loaded and displayed afterwards, can not show at all; And carried out evening, and there will be again the plug-in unit element of the first kind to show, represent suddenly situation about releasing news, thereby affect the normal access of user to plug-in unit element.
Step S209, obtains the DOM node tree structure of the first webpage.
Particularly, utilize JavaScript to obtain the DOM node tree structure of the first webpage.
Step S210, obtains the demonstration size of the plug-in unit element of the first kind and the plug-in unit element of the first kind according to DOM node tree structure.
Owing to plug-in unit element being embedded in the first webpage, therefore can obtain the demonstration size of the plug-in unit element of the first kind and the plug-in unit element of the first kind according to the DOM node tree structure of the first webpage in step S205.
Step S211, the web page element that changes releasing news of getting into floating layer covers and is presented on the plug-in unit element of the first kind, and the demonstration of the web page element of floating layer size is in the same size with the demonstration of the plug-in unit element of the first kind.
The floating layer here refers to an independent window showing, releases news for showing.According to the demonstration size of the plug-in unit element of the first kind of obtaining, releasing news of getting changed into the web page element of the floating layer adapting with the demonstration size of the plug-in unit element of the first kind.
Step S212, after the broadcasting that releases news finishes, closes floating layer, shows the plug-in unit element of the first kind.
Seeing continuously many for fear of user releases news, in the present embodiment, can also judge in self the content of plug-in unit element of the first kind and whether comprise and release news, if comprise, obtain the time span releasing news comprising in the content of plug-in unit element of the first kind.Wherein, the statistical form that can safeguard from client terminal local, inquire about the time span releasing news comprising in the content of plug-in unit element of the first kind.Due to client by start timer timing acquisition to can be for multiple by being loaded releasing news of demonstration, therefore can be from multiple releasing news select time length be equal to or greater than releasing news of the time span releasing news that comprises in the content of plug-in unit element of the first kind, release news to cover and be presented on the plug-in unit element of the first kind in the first webpage what select.Thereby do not show releasing news of comprising in self content of plug-in unit element of the first kind, avoid user to see continuously many and release news.
In addition, that chooses for fear of releasing news is inappropriate, in this enforcement, adopts the method for the type of the plug-in unit element of Sampling network state and the first kind, determines the estimation load time of the plug-in unit element of the first kind.According to the estimation load time of the plug-in unit element of the determined first kind, from multiple releasing news, select time length is equal to or greater than the releasing news of estimation load time of the plug-in unit element of the first kind, releases news to cover and is presented on the plug-in unit element of the first kind in the first webpage what select.
Except above-mentioned obtaining will be loaded the method releasing news of demonstration, the present invention also can be obtained and will be loaded releasing news of demonstration by additive method, for example, utilizes the host process of client to obtain and will be loaded releasing news of demonstration from cloud server side.Afterwards, in the time the loaded and displayed request of the plug-in unit element to the first kind being detected, host process will need the webpage process of notice to the first webpage that release news of loaded and displayed.Wherein, webpage process corresponding to the first webpage is webpage process independently, and webpage process is safeguarded at least one subprocess, and each subprocess is for the plug-in unit element of a first kind of loaded and displayed.
The method providing according to the above embodiment of the present invention, by timing being set, arranging and ask the time interval releasing news and release news to represent the time interval, reduce request number of times, thereby effectively reduce the occupancy to server bandwidth resource, reduce the load of cloud server, and strictly controlled the frequency that releases news and occur, reduce greatly the bothering user that release news; By send the mark releasing news of carrying request last time to cloud server, can avoid continuous several times to show same releasing news to user, thereby reduce user's degree of dislike; The loading progress of ProgressChange event Real-time Obtaining the first webpage providing by browser kernel, can strictly control the execution opportunity of script, avoiding script to carry out releases news and does not also show too early, just " washed out " by the plug-in unit element page of the first kind of loaded and displayed afterwards, can not show at all; And carried out evening, and there will be again the plug-in unit element of the first kind to show, represent suddenly situation about releasing news, thereby affect the normal access of user to plug-in unit element; Be used for showing by injection script in the first webpage releasing news, use script can support releasing news of multiple format, overcome the problem that form is single that represents releasing news; By first the plug-in unit element of the first kind being embedded in the first webpage of client terminal local, then represent and release news loading in the first webpage Run Script, realize when the plug-in unit element of the first kind loads and represented the object releasing news, can avoid so first representing and releasing news in prior art, then load releasing news that the plug-in unit element of the first kind brings and represent with the first kind plug-in unit element problem separating.
Fig. 3 shows the flow chart that client in accordance with another embodiment of the present invention shows the method releasing news.As shown in Figure 3, the method comprises the following steps:
Step S300, starts timer, in the time that the timing of timer arrives, detects and whether meets the condition that request releases news, and meets the condition that request releases news perform step S301 if detect; Meet if detect condition that request releases news method finish.
Step S301, sends the request message that releases news that carries the mark releasing news of asking last time to cloud server.
Step S302, obtains new the releasing news as being loaded releasing news of demonstration that cloud server filters out according to the mark releasing news of request last time.
Step S300-step S302 in embodiment illustrated in fig. 3 and embodiment illustrated in fig. 2 in step S200-step S202 similar, do not repeat them here.
Step S303, detects the loaded and displayed request of the plug-in unit element that is stored in client terminal local.
Directly request shows the plug-in unit element that is stored in client terminal local in this step, and also, this loaded and displayed request user opens the plug-in unit element that is stored in client terminal local and triggers, and wherein, the form of plug-in unit element is SWF form.
Step S304, is embedded into the plug-in unit element that is stored in client terminal local in the first webpage, wherein, is injected with the script that shows the use that releases news in the first webpage.
Do not extract the operation of the DOM node of webpage in this step, but directly plug-in unit element is embedded in the first webpage.
Step S305, judges whether to meet the condition releasing news that shows, shows that the condition releasing news performs step S306 if meet; If the condition that satisfied demonstration releases news method finishes, this step is the optional step of this embodiment.
Step S306, the loading progress of ProgressChange event Real-time Obtaining the first webpage providing by browser kernel.
Step S307, in the time knowing that the main part of the first webpage has loaded, Run Script.
Step S308, obtains the DOM node tree structure of the first webpage;
Step S309, obtains the demonstration size of the plug-in unit element of the first kind and the plug-in unit element of the first kind according to DOM node tree structure.
Step S310, the web page element that changes releasing news of getting into floating layer covers and is presented on the plug-in unit element of the first kind, and the demonstration of the web page element of floating layer size is in the same size with the demonstration of the plug-in unit element of the first kind.
Step S311, after the broadcasting that releases news finishes, closes floating layer, shows the plug-in unit element of the first kind.
Step S305-step S311 in embodiment illustrated in fig. 3 and embodiment illustrated in fig. 2 in step S206-step S212 similar, do not repeat them here.
Seeing continuously many for fear of user releases news, in the present embodiment, can also judge in self the content of plug-in unit element of the first kind and whether comprise and release news, if comprise, obtain the time span releasing news comprising in the content of plug-in unit element of the first kind.Wherein, the statistical form that can safeguard from client terminal local, inquire about the time span releasing news comprising in the content of plug-in unit element of the first kind.Due to client by start timer timing acquisition to can be for multiple by being loaded releasing news of demonstration, therefore can be from multiple releasing news select time length be equal to or greater than releasing news of the time span releasing news that comprises in the content of plug-in unit element of the first kind, release news to cover and be presented on the plug-in unit element of the first kind in the first webpage what select.Thereby do not show releasing news of comprising in self content of plug-in unit element of the first kind, avoid user to see continuously many and release news.
Except above-mentioned obtaining will be loaded the method releasing news of demonstration, the present invention also can be obtained and will be loaded releasing news of demonstration by additive method, for example, utilizes the host process of client to obtain and will be loaded releasing news of demonstration from cloud server side.Afterwards, in the time the loaded and displayed request of the plug-in unit element to the first kind being detected, host process will need the webpage process of notice to the first webpage that release news of loaded and displayed.Wherein, webpage process corresponding to the first webpage is webpage process independently, and webpage process is safeguarded at least one subprocess, and each subprocess is for the plug-in unit element of a first kind of loaded and displayed.
The method providing according to the above embodiment of the present invention, by timing being set, arranging and ask the time interval releasing news and release news to represent the time interval, reduce request number of times, thereby effectively reduce the occupancy to server bandwidth resource, reduce the load of cloud server, and strictly controlled the frequency that releases news and occur, reduce greatly the bothering user that release news; By send the mark releasing news of carrying request last time to cloud server, can avoid continuous several times to show same releasing news to user, thereby reduce user's degree of dislike; The loading progress of ProgressChange event Real-time Obtaining the first webpage providing by browser kernel, can strictly control the execution opportunity of script, avoiding script to carry out releases news and does not also show too early, just " washed out " by the plug-in unit element page of the first kind of loaded and displayed afterwards, can not show at all; And carried out evening, and there will be again the plug-in unit element of the first kind to show, represent suddenly situation about releasing news, thereby affect the normal access of user to plug-in unit element; Be used for showing by injection script in the first webpage releasing news, use can be supported releasing news of multiple format, has overcome the problem that form is single that represents releasing news; By first the plug-in unit element of the first kind being embedded in the first webpage of client terminal local, then represent and release news loading in the first webpage Run Script, realize when the plug-in unit element of the first kind loads and represented the object releasing news, can avoid so first representing and releasing news in prior art, then load releasing news that the plug-in unit element of the first kind brings and represent with the first kind plug-in unit element problem separating.
Fig. 4 shows the structured flowchart that client according to an embodiment of the invention shows the device releasing news.As shown in Figure 4, this device comprises: the acquisition module 400 that releases news, first detection module 410, merge module 420, operation module 430, display module 440 releases news.
The acquisition module 400 that releases news, is suitable for getting and will be loaded releasing news of demonstration.
First detection module 410, is suitable for detecting the loaded and displayed request of the plug-in unit element to the first kind.
Merge module 420, is suitable for the plug-in unit element of the first kind to be embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news.
Operation module 430, is suitable for operation in the time loading the first webpage and shows the script releasing news.
The display module 440 that releases news, is suitable for covering and being presented on the plug-in unit element of the first kind in the first webpage releasing news.
The device providing according to the above embodiment of the present invention, gets and will be loaded releasing news of demonstration; The loaded and displayed request of the plug-in unit element to the first kind detected; The plug-in unit element of the first kind is embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news; In the time loading the first webpage, operation shows the script releasing news, and covers and is presented on the plug-in unit element of the first kind in the first webpage releasing news.In the present embodiment, be used for showing by injection script in the first webpage releasing news, use script can support releasing news of multiple format, overcome the problem that form is single that represents releasing news; By first the plug-in unit element of the first kind being embedded in the first webpage of client terminal local, then represent and release news loading in the first webpage Run Script, realize when the plug-in unit element of the first kind loads and represented the object releasing news, can avoid so first representing and releasing news in prior art, then load releasing news that the plug-in unit element of the first kind brings and represent with the first kind plug-in unit element problem separating.
Fig. 5 shows the structured flowchart that client in accordance with another embodiment of the present invention shows the device releasing news.As shown in Figure 5, this device comprises: the acquisition module 500 that releases news, first detection module 510, merge module 520, operation module 530, display module 540 releases news.
The acquisition module 500 that releases news, is suitable for getting and will be loaded releasing news of demonstration.
What wherein, get will be loaded the releasing news as multiple of demonstration.The form releasing news is Flash form, picture format or multimedia form.
The acquisition module 500 that releases news further comprises: start unit 501, detecting unit 502, acquiring unit 503.
Start unit 501, is suitable for starting timer.
Detecting unit 502, is suitable in the time that the timing of timer arrives, and detects and whether meets the condition that request releases news.
Detecting unit 502 is further adapted for: read local profile, obtain time that this request releases news and the mark releasing news of request last time; Detect current time and whether arrived the time that this request releases news, if so, detect and meet the condition that request releases news.
Acquiring unit 503, detect if be suitable for and meet the condition that request releases news, send the request message that releases news of the mark releasing news that carries request last time to cloud server, then obtain new the releasing news as being loaded releasing news of demonstration that cloud server filters out according to the mark releasing news of request last time.
First detection module 510, is suitable for detecting the loaded and displayed request of the plug-in unit element to the first kind.
First detection module 510 is specifically suitable for: the loaded and displayed request of the plug-in unit element carrying in webpage to be loaded detected.
Merge module 520, is suitable for the plug-in unit element of the first kind to be embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news.
Merge module further comprises: extraction unit 521, plug-in unit element acquiring unit 522, embedded unit 523.
Extraction unit 521, is suitable for extracting in webpage to be loaded the DOM node that plug-in unit element is corresponding.
Plug-in unit element acquiring unit 522, is suitable for obtaining plug-in unit element by DOM node.
Embedded unit 523, is embedded into plug-in unit element in the first webpage of client terminal local.
Operation module 530, is suitable for operation in the time loading the first webpage and shows the script releasing news.
Operation module 530 is specifically suitable for: load webpage to be loaded and the first webpage, and the covering of the first webpage is presented on the plug-in unit element of the first kind in webpage to be loaded simultaneously.Or operation module 530 is specifically suitable for: stop loading webpage to be loaded, load the first webpage.
Operation module 530 is further adapted for: the loading progress of ProgressChange event Real-time Obtaining the first webpage providing by browser kernel; In the time knowing that the main part of the first webpage has loaded, Run Script.
The display module 540 that releases news, is suitable for covering and being presented on the plug-in unit element of the first kind in the first webpage releasing news.
The display module 540 that releases news further comprises: DOM node tree structure acquiring unit 541, element extraction unit 542, display unit 543 releases news.
DOM node tree structure acquiring unit 541, is suitable for obtaining the DOM node tree structure of the first webpage.
Element extraction unit 542, is suitable for obtaining according to DOM node tree structure the demonstration size of the plug-in unit element of the first kind and the plug-in unit element of the first kind.
The display unit 543 that releases news, the web page element that is suitable for changing releasing news of getting into floating layer covers and is presented on the plug-in unit element of the first kind, and the demonstration of the web page element of floating layer size is in the same size with the demonstration of the plug-in unit element of the first kind.
This device also comprises: logging modle 550, be suitable for calculating the time that next time, request released news, by the time of asking next time to release news and the new identification record releasing news in local profile.
Logging modle 550 is also suitable for: receive cloud server side and ask the time releasing news in the case of not screening the next time of returning releasing news of making new advances, will ask next time be recorded in local profile the time releasing news.
This device also comprises: closing module 560, be suitable for, after the broadcasting that releases news finishes, closing floating layer, and show the plug-in unit element of the first kind.
This device also comprises: whether the first judge module 570, be suitable for comprising and releasing news in the content of the plug-in unit element that judges the first kind.
Time span acquisition module 571, being suitable for comprising in the content of the plug-in unit element in the case of judging the first kind and releasing news, obtains the time span releasing news comprising in the content of plug-in unit element of the first kind.
The display module 540 that releases news is specifically suitable for: from multiple releasing news, select time length is equal to or greater than releasing news of the time span releasing news that comprises in the content of plug-in unit element of the first kind; The covering that releases news of selecting is presented on the plug-in unit element of the first kind in the first webpage.
Time span acquisition module 571 is specifically suitable for: the statistical form of safeguarding from client terminal local, inquire about the time span releasing news comprising in the content of plug-in unit element of the first kind.
Device also comprises: the second detection module 580, is suitable for the type of the plug-in unit element of Sampling network state and the first kind.
Determination module 581, is suitable for determining estimation load time of plug-in unit element of the first kind.
The display module 540 that releases news is specifically suitable for: from multiple releasing news, select time length is equal to or greater than the releasing news of estimation load time of the plug-in unit element of the first kind, releases news to cover and is presented on the plug-in unit element of the first kind in the first webpage what select.
This device also comprises: the second judge module 531, is suitable for judging whether to meet the condition releasing news that shows.
Operation module 530 is specifically suitable for: if the condition that satisfied demonstration releases news is moved and shown the script releasing news in the time loading the first webpage.
The second judge module 531 is specifically suitable for: judge and show current time and last time whether the time difference releasing news exceedes Preset Time threshold value.
The acquisition module 500 that releases news is specifically suitable for: utilize the host process of client to obtain and will be loaded releasing news of demonstration from cloud server end.
This device also comprises: notification module 511, be suitable in the time the loaded and displayed request of the plug-in unit element to the first kind being detected, and host process will need the notice releasing news of loaded and displayed to webpage process corresponding to the first webpage.
Webpage process corresponding to the first webpage is webpage process independently, and webpage process is safeguarded at least one subprocess, and each subprocess is for the plug-in unit element of a first kind of loaded and displayed.
The device providing according to the above embodiment of the present invention, by timing being set, arranging and ask the time interval releasing news and release news to represent the time interval, reduce request number of times, thereby effectively reduce the occupancy to server bandwidth resource, reduce the load of cloud server, and strictly controlled the frequency that releases news and occur, reduce greatly the bothering user that release news; By send the mark releasing news of carrying request last time to cloud server, can avoid continuous several times to show same releasing news to user, thereby reduce user's degree of dislike; The loading progress of ProgressChange event Real-time Obtaining the first webpage providing by browser kernel, can strictly control the execution opportunity of script, avoiding script to carry out releases news and does not also show too early, just " washed out " by the plug-in unit element page of the first kind of loaded and displayed afterwards, can not show at all; And carried out evening, and there will be again the plug-in unit element of the first kind to show, represent suddenly situation about releasing news, thereby affect the normal access of user to plug-in unit element; Be used for showing by injection script in the first webpage releasing news, can support releasing news of multiple format, overcome the problem that form is single that represents releasing news; By first the plug-in unit element of the first kind being embedded in the first webpage of client terminal local, then represent and release news loading in the first webpage Run Script, realize when the plug-in unit element of the first kind loads and represented the object releasing news, can avoid so first representing and releasing news in prior art, then load releasing news that the plug-in unit element of the first kind brings and represent with the first kind plug-in unit element problem separating.
Fig. 6 shows the structured flowchart that client in accordance with another embodiment of the present invention shows the device releasing news.As shown in Figure 6, this device comprises: the acquisition module 600 that releases news, first detection module 610, merge module 620, operation module 630, display module 640 releases news.
The acquisition module 600 that releases news, is suitable for getting and will be loaded releasing news of demonstration.
What wherein, get will be loaded the releasing news as multiple of demonstration.The form releasing news is Flash form, picture format or multimedia form.
The acquisition module 600 that releases news further comprises: start unit 601, detecting unit 602, acquiring unit 603.
Start unit 601, is suitable for starting timer.
Detecting unit 602, is suitable in the time that the timing of timer arrives, and detects and whether meets the condition that request releases news.
Detecting unit 602 is further adapted for: read local profile, obtain time that this request releases news and the mark releasing news of request last time; Detect current time and whether arrived the time that this request releases news, if so, detect and meet the condition that request releases news.
Acquiring unit 603, detect if be suitable for and meet the condition that request releases news, send the request message that releases news of the mark releasing news that carries request last time to cloud server, then obtain new the releasing news as being loaded releasing news of demonstration that cloud server filters out according to the mark releasing news of request last time.
First detection module 610, is suitable for detecting the loaded and displayed request of the plug-in unit element to the first kind.
First detection module 610 is specifically suitable for: the loaded and displayed request of the plug-in unit element that is stored in client terminal local detected.
Merge module 620, is suitable for the plug-in unit element of the first kind to be embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news.
Merge module 620 is specifically suitable for: the plug-in unit element that is stored in client terminal local is embedded in the first webpage.
Operation module 630, is suitable for operation in the time loading the first webpage and shows the script releasing news.
Operation module 630 is further adapted for: the loading progress of ProgressChange event Real-time Obtaining the first webpage providing by browser kernel; In the time knowing that the main part of the first webpage has loaded, Run Script.
The display module 640 that releases news, is suitable for covering and being presented on the plug-in unit element of the first kind in the first webpage releasing news.
The display module 640 that releases news further comprises: DOM node tree structure acquiring unit 641, element extraction unit 642, display unit 643 releases news.
DOM node tree structure acquiring unit 641, is suitable for obtaining the DOM node tree structure of the first webpage.
Element extraction unit 642, is suitable for obtaining according to DOM node tree structure the demonstration size of the plug-in unit element of the first kind and the plug-in unit element of the first kind.
The display unit 643 that releases news, the web page element that is suitable for changing releasing news of getting into floating layer covers and is presented on the plug-in unit element of the first kind, and the demonstration of the web page element of floating layer size is in the same size with the demonstration of the plug-in unit element of the first kind.
This device also comprises: logging modle 650, be suitable for calculating the time that next time, request released news, by the time of asking next time to release news and the new identification record releasing news in local profile.
Logging modle 650 is also suitable for: receive cloud server side and ask the time releasing news in the case of not screening the next time of returning releasing news of making new advances, will ask next time be recorded in local profile the time releasing news.
This device also comprises: closing module 660, be suitable for, after the broadcasting that releases news finishes, closing floating layer, and show the plug-in unit element of the first kind.
This device also comprises: whether the first judge module 670, be suitable for comprising and releasing news in the content of the plug-in unit element that judges the first kind.
Time span acquisition module 671, being suitable for comprising in the content of the plug-in unit element in the case of judging the first kind and releasing news, obtains the time span releasing news comprising in the content of plug-in unit element of the first kind.
The display module 640 that releases news is specifically suitable for: from multiple releasing news, select time length is equal to or greater than releasing news of the time span releasing news that comprises in the content of plug-in unit element of the first kind; The covering that releases news of selecting is presented on the plug-in unit element of the first kind in the first webpage.
Time span acquisition module 671 is specifically suitable for: the statistical form of safeguarding from client terminal local, inquire about the time span releasing news comprising in the content of plug-in unit element of the first kind.
The display module 640 that releases news is specifically suitable for: from multiple releasing news, select time length is equal to or greater than the releasing news of estimation load time of the plug-in unit element of the first kind, releases news to cover and is presented on the plug-in unit element of the first kind in the first webpage what select.
This device also comprises: the second judge module 631, is suitable for judging whether to meet the condition releasing news that shows.
Operation module 630 is specifically suitable for: if the condition that satisfied demonstration releases news is moved and shown the script releasing news in the time loading the first webpage.
The second judge module 631 is specifically suitable for: judge and show current time and last time whether the time difference releasing news exceedes Preset Time threshold value.
The acquisition module 600 that releases news is specifically suitable for: utilize the host process of client to obtain and will be loaded releasing news of demonstration from cloud server end.
This device also comprises: notification module 611, be suitable in the time the loaded and displayed request of the plug-in unit element to the first kind being detected, and host process will need the notice releasing news of loaded and displayed to webpage process corresponding to the first webpage.
Webpage process corresponding to the first webpage is webpage process independently, and webpage process is safeguarded at least one subprocess, and each subprocess is for the plug-in unit element of a first kind of loaded and displayed.
The device providing according to the above embodiment of the present invention, by timing being set, arranging and ask the time interval releasing news and release news to represent the time interval, reduce request number of times, thereby effectively reduce the occupancy to server bandwidth resource, reduce the load of cloud server, and strictly controlled the frequency that releases news and occur, reduce greatly the bothering user that release news; By send the mark releasing news of carrying request last time to cloud server, can avoid continuous several times to show same releasing news to user, thereby reduce user's degree of dislike; The loading progress of ProgressChange event Real-time Obtaining the first webpage providing by browser kernel, can strictly control the execution opportunity of script, avoiding script to carry out releases news and does not also show too early, just " washed out " by the plug-in unit element page of the first kind of loaded and displayed afterwards, can not show at all; And carried out evening, and there will be again the plug-in unit element of the first kind to show, represent suddenly situation about releasing news, thereby affect the normal access of user to plug-in unit element; Be used for showing by injection script in the first webpage releasing news, use script can support releasing news of multiple format, overcome the problem that form is single that represents releasing news; By first the plug-in unit element of the first kind being embedded in the first webpage of client terminal local, then represent and release news loading in the first webpage Run Script, realize when the plug-in unit element of the first kind loads and represented the object releasing news, can avoid so first representing and releasing news in prior art, then load releasing news that the plug-in unit element of the first kind brings and represent with the first kind plug-in unit element problem separating.
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the specification that provided herein, a large amount of details are described.But, can understand, embodiments of the invention can be put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.But, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them in addition multiple submodules or subelement or sub-component.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this specification (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature instead of further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module of moving on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize the some or all functions that show the some or all parts in the equipment releasing news according to the client of the embodiment of the present invention.The present invention can also be embodied as part or all equipment or the device program (for example, computer program and computer program) for carrying out method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described instead of limit the invention, and those skilled in the art can design alternative embodiment in the case of not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has multiple such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim of having enumerated some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
The invention discloses: A1, a kind of client show the method releasing news, and comprising:
Get and will be loaded releasing news of demonstration;
The loaded and displayed request of the plug-in unit element to the first kind detected;
The plug-in unit element of the described first kind is embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news;
In the time loading described the first webpage, move the script that described demonstration releases news, the described covering that releases news is presented on the plug-in unit element of the first kind in the first webpage.
A2, according to the method described in A1, described in get and further comprise being loaded releasing news of demonstration:
Start timer, in the time that the timing of described timer arrives, detect and whether meet the condition that request releases news;
Meet the condition that request releases news if detect, send the request message that releases news of the mark releasing news that carries last time request to cloud server, then obtain new the releasing news that described cloud server filters out according to the mark releasing news of described request last time and will be loaded releasing news of demonstration as described.
A3, according to the method described in A2, whether described detection meets the condition that request releases news and further comprises:
Read local profile, obtain time that this request releases news and the mark releasing news of request last time;
Detect current time and whether arrived the time that described this request releases news, if so, detect and meet the condition that request releases news.
A4, according to the method described in A2 or A3, described in the request message that releases news also carry user ID;
Described method also comprises: utilize described user ID to obtain user's preference type in described cloud server side, choose and release news from the storehouse that releases news according to user's preference type; From choose release news screen out releasing news of having obtained before this request, obtain described new releasing news.
A5, according to the method described in A4, after new the releasing news that receives that described cloud server filters out, also comprise: calculate the time that next time, request released news, by the time of asking next time to release news and the new identification record releasing news in local profile.
A6, according to the method described in A4, described method also comprises: if do not filter out described new releasing news in described cloud server side, receive and ask the time releasing news next time that described cloud server returns, the time that described next time, request released news is recorded in local profile.
A7, according to the method described in A1, described in detect that the loaded and displayed request of the plug-in unit element to the first kind is specially: the loaded and displayed request of the described plug-in unit element carrying in webpage to be loaded detected;
The first webpage that the described plug-in unit element by the first kind is embedded into client terminal local further comprises:
In described webpage to be loaded, extract the DOM node that described plug-in unit element is corresponding;
Obtain described plug-in unit element by described DOM node, and described plug-in unit element is embedded in the first webpage of client terminal local.
A8, according to the method described in A7, described loading the first webpage further comprises:
Load described webpage to be loaded and described the first webpage, and described the first webpage covering is presented on the plug-in unit element of the first kind in described webpage to be loaded simultaneously.
A9, according to the method described in A7, described loading the first webpage further comprises: stop loading described webpage to be loaded, load the first webpage.
A10, according to the method described in A1, described in detect that the loaded and displayed request of the plug-in unit element to the first kind is specially: the loaded and displayed request of the described plug-in unit element that is stored in client terminal local detected;
The described plug-in unit element by the first kind is embedded in the first webpage of client terminal local and is specially: the described described plug-in unit element that is stored in client terminal local is embedded in the first webpage.
A11, according to the method described in A1-A10 any one, in the time of described loading the first webpage, move the script that described demonstration releases news and further comprise:
The loading progress of the first webpage described in the ProgressChange event Real-time Obtaining providing by browser kernel;
In the time knowing that the main part of described the first webpage has loaded, move described script.
A12, according to the method described in A1, described cover to be presented on the plug-in unit element of the first kind in the first webpage by releasing news further comprise:
Obtain the DOM node tree structure of described the first webpage;
Obtain the demonstration size of the plug-in unit element of the first kind and the plug-in unit element of the described first kind according to described DOM node tree structure;
The web page element that changes releasing news of getting into floating layer covers and is presented on the plug-in unit element of the described first kind, and the demonstration of the web page element of described floating layer size is in the same size with the demonstration of the plug-in unit element of the described first kind.
A13, according to the method described in A12, described method also comprises: after releasing news and playing and finish, close described floating layer, show the plug-in unit element of the described first kind.
A14, according to the method described in A1-A13 any one, described in get will be loaded the releasing news as multiple of demonstration;
Whether described method also comprises: judge in the content of plug-in unit element of the described first kind and comprise and release news; If comprise, obtain the time span releasing news comprising in the content of plug-in unit element of the described first kind;
Described cover to be presented on the plug-in unit element of the first kind in the first webpage by releasing news be specially: from multiple releasing news, select time length is equal to or greater than releasing news of the time span releasing news that comprises in the content of plug-in unit element of the described first kind, and releases news to cover and is presented on the plug-in unit element of the first kind in the first webpage what select.
A15, according to the method described in A14, described in obtain the time span releasing news comprising in the content of plug-in unit element of the first kind and be specially: the statistical form of safeguarding from client terminal local, inquire about the time span releasing news comprising in the content of plug-in unit element of the first kind.
A16, according to the method described in A1-A13 any one, described in get will be loaded the releasing news as multiple of demonstration;
Described method also comprises: the type of the plug-in unit element of Sampling network state and the first kind, determine estimation load time of the plug-in unit element of the described first kind;
Described cover to be presented on the plug-in unit element of the first kind in the first webpage by releasing news be specially: from multiple releasing news, select time length is equal to or greater than the releasing news of estimation load time of the plug-in unit element of the described first kind, releases news to cover and is presented on the plug-in unit element of the first kind in the first webpage what select.
A17, according to the method described in A1-A16 any one, described loading move the script that described demonstration releases news when described the first webpage before, described method also comprises: judge whether to meet the condition releasing news that shows;
If the condition that satisfied demonstration releases news is moved the script that described demonstration releases news in the time loading described the first webpage.
A18, according to the method described in A17, described in judge whether to meet and show that the condition that releases news is specially: judge and show current time and last time whether the time difference releasing news exceedes Preset Time threshold value.
A19, according to the method described in A1-A18 any one, get and be specially being loaded releasing news of demonstration: utilize the host process of client to obtain and will be loaded releasing news of demonstration from cloud server side;
Described method also comprises: in the time the loaded and displayed request of the plug-in unit element to the first kind being detected, described host process will need the notice that releases news of loaded and displayed to webpage process corresponding to the first webpage.
A20, according to the method described in A19, webpage process corresponding to described the first webpage is webpage process independently, described webpage process is safeguarded at least one subprocess, each subprocess is for the plug-in unit element of a first kind of loaded and displayed.
A21, according to the method described in A1-A20 any one, described in the form that releases news be Flash form, picture format or multimedia form.
The invention also discloses: B22, a kind of client show the device releasing news, and comprising:
The acquisition module that releases news, is suitable for getting and will be loaded releasing news of demonstration;
First detection module, is suitable for detecting the loaded and displayed request of the plug-in unit element to the first kind;
Merge module, is suitable for the plug-in unit element of the described first kind to be embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news;
Operation module, is suitable for moving in the time loading described the first webpage the script that described demonstration releases news;
The display module that releases news, be suitable for by described release news to cover be presented on the plug-in unit element of the first kind in the first webpage.
B23, according to the device described in B22, described in the acquisition module that releases news further comprise:
Start unit, is suitable for starting timer;
Detecting unit, is suitable in the time that the timing of described timer arrives, and detects and whether meets the condition that request releases news;
Acquiring unit, detect if be suitable for and meet the condition that request releases news, send the request message that releases news of the mark releasing news that carries last time request to cloud server, then obtain new the releasing news that described cloud server filters out according to the mark releasing news of described request last time and will be loaded releasing news of demonstration as described.
B24, according to the device described in B23, described detecting unit is further adapted for:
Read local profile, obtain time that this request releases news and the mark releasing news of request last time;
Detect current time and whether arrived the time that described this request releases news, if so, detect and meet the condition that request releases news.
B25, according to the method described in B23 or B24, also comprise: logging modle, be suitable for calculating the time that next time, request released news, by the time of asking next time to release news and the new identification record releasing news in local profile.
B26, according to the device described in B25, described logging modle is also suitable for: receive described cloud server side and ask the time releasing news in the case of not filtering out the next time of returning described new releasing news, ask the time releasing news to be recorded in local profile described next time.
B27, according to the device described in B22, described first detection module is specifically suitable for: the loaded and displayed request of the described plug-in unit element carrying in webpage to be loaded detected;
Described merge module further comprises:
Extraction unit, is suitable for extracting in described webpage to be loaded the DOM node that described plug-in unit element is corresponding;
Plug-in unit element acquiring unit, is suitable for obtaining described plug-in unit element by described DOM node;
Embedded unit, is embedded into described plug-in unit element in the first webpage of client terminal local.
B28, according to the device described in B27, described operation module is specifically suitable for:
Load described webpage to be loaded and described the first webpage, and described the first webpage covering is presented on the plug-in unit element of the first kind in described webpage to be loaded simultaneously.
B29, according to the device described in B27, described operation module is specifically suitable for: stop loading described webpage to be loaded, load the first webpage.
B30, according to the device described in B22, described first detection module is specifically suitable for: the loaded and displayed request of the described plug-in unit element that is stored in client terminal local detected;
Described merge module is specifically suitable for: the described described plug-in unit element that is stored in client terminal local is embedded in the first webpage.
B31, according to the device described in B22-B30 any one, described operation module is further adapted for: the loading progress of the first webpage described in the ProgressChange event Real-time Obtaining providing by browser kernel; In the time knowing that the main part of described the first webpage has loaded, move described script.
B32, according to the device described in B22, described in the display module that releases news further comprise:
DOM node tree structure acquiring unit, is suitable for obtaining the DOM node tree structure of described the first webpage;
Element extraction unit, is suitable for obtaining according to described DOM node tree structure the demonstration size of the plug-in unit element of the first kind and the plug-in unit element of the described first kind;
Display unit releases news, the web page element that is suitable for changing releasing news of getting into floating layer covers and is presented on the plug-in unit element of the described first kind, and the demonstration of the web page element of described floating layer size is in the same size with the demonstration of the plug-in unit element of the described first kind.
B33, according to the device described in B32, also comprise: closing module, be suitable for, after releasing news and playing and finish, closing described floating layer, show the plug-in unit element of the described first kind.
B34, according to the device described in B22-B33 any one, described in get will be loaded the releasing news as multiple of demonstration;
Described device also comprises: whether the first judge module, be suitable for comprising and releasing news in the content of the plug-in unit element that judges the described first kind;
Time span acquisition module, being suitable for comprising in the content of the plug-in unit element in the case of judging the described first kind and releasing news, obtains the time span releasing news comprising in the content of plug-in unit element of the described first kind;
The described display module that releases news is specifically suitable for: from multiple releasing news, select time length is equal to or greater than releasing news of the time span releasing news that comprises in the content of plug-in unit element of the described first kind; The covering that releases news of selecting is presented on the plug-in unit element of the first kind in the first webpage.
B35, according to the device described in B34, time span acquisition module is specifically suitable for: the statistical form of safeguarding from client terminal local, inquire about the time span releasing news comprising in the content of plug-in unit element of the first kind.
B36, according to the device described in B22-B33 any one, described in get will be loaded the releasing news as multiple of demonstration;
Described device also comprises: the second detection module, is suitable for the type of the plug-in unit element of Sampling network state and the first kind;
Determination module, is suitable for determining estimation load time of plug-in unit element of the described first kind;
The described display module that releases news is specifically suitable for: from multiple releasing news, select time length is equal to or greater than the releasing news of estimation load time of the plug-in unit element of the described first kind, releases news to cover and is presented on the plug-in unit element of the first kind in the first webpage what select.
B37, according to the device described in B22-B36 any one, also comprise: the second judge module, is suitable for judging whether meeting the condition releasing news that shows;
Described operation module is specifically suitable for: if the condition that satisfied demonstration releases news is moved the script that described demonstration releases news in the time loading described the first webpage.
B38, according to the device described in B37, described the second judge module is specifically suitable for: judge and show current time and last time whether the time difference releasing news exceedes Preset Time threshold value.
B39, according to the device described in B22-B38 any one, described in the acquisition module that releases news be specifically suitable for: utilize the host process of client to obtain and will be loaded releasing news of demonstration from cloud server end;
Described device also comprises: notification module, be suitable in the time the loaded and displayed request of the plug-in unit element to the first kind being detected, and described host process will need the notice releasing news of loaded and displayed to webpage process corresponding to the first webpage.
B40, according to the device described in B39, webpage process corresponding to described the first webpage is webpage process independently, described webpage process is safeguarded at least one subprocess, each subprocess is for the plug-in unit element of a first kind of loaded and displayed.
B41, according to the device described in B22-B40 any one, described in the form that releases news be Flash form, picture format or multimedia form.

Claims (10)

1. client shows the method releasing news, and comprising:
Get and will be loaded releasing news of demonstration;
The loaded and displayed request of the plug-in unit element to the first kind detected;
The plug-in unit element of the described first kind is embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news;
In the time loading described the first webpage, move the script that described demonstration releases news, the described covering that releases news is presented on the plug-in unit element of the first kind in the first webpage.
2. method according to claim 1, described in get and further comprise being loaded releasing news of demonstration:
Start timer, in the time that the timing of described timer arrives, detect and whether meet the condition that request releases news;
Meet the condition that request releases news if detect, send the request message that releases news of the mark releasing news that carries last time request to cloud server, then obtain new the releasing news that described cloud server filters out according to the mark releasing news of described request last time and will be loaded releasing news of demonstration as described.
3. method according to claim 2, whether described detection meets is asked the condition releasing news further to comprise:
Read local profile, obtain time that this request releases news and the mark releasing news of request last time;
Detect current time and whether arrived the time that described this request releases news, if so, detect and meet the condition that request releases news.
4. the request message that releases news according to the method in claim 2 or 3, also carries user ID;
Described method also comprises: utilize described user ID to obtain user's preference type in described cloud server side, choose and release news from the storehouse that releases news according to user's preference type; From choose release news screen out releasing news of having obtained before this request, obtain described new releasing news.
5. method according to claim 4, after new the releasing news that receives that described cloud server filters out, also comprise: calculate the time that next time, request released news, by the time of asking next time to release news and the new identification record releasing news in local profile.
6. method according to claim 4, described method also comprises: if do not filter out described new releasing news in described cloud server side, receive and ask the time releasing news next time that described cloud server returns, the time that described next time, request released news is recorded in local profile.
7. method according to claim 1, described in detect that the loaded and displayed request of the plug-in unit element to the first kind is specially: the loaded and displayed request of the described plug-in unit element carrying in webpage to be loaded detected;
The first webpage that the described plug-in unit element by the first kind is embedded into client terminal local further comprises:
In described webpage to be loaded, extract the DOM node that described plug-in unit element is corresponding;
Obtain described plug-in unit element by described DOM node, and described plug-in unit element is embedded in the first webpage of client terminal local.
8. method according to claim 7, described loading the first webpage further comprises:
Load described webpage to be loaded and described the first webpage, and described the first webpage covering is presented on the plug-in unit element of the first kind in described webpage to be loaded simultaneously.
9. method according to claim 7, described loading the first webpage further comprises: stop loading described webpage to be loaded, load the first webpage.
10. client shows the device releasing news, and comprising:
The acquisition module that releases news, is suitable for getting and will be loaded releasing news of demonstration;
First detection module, is suitable for detecting the loaded and displayed request of the plug-in unit element to the first kind;
Merge module, is suitable for the plug-in unit element of the described first kind to be embedded in the first webpage of client terminal local, wherein in the first webpage, is injected with the script that shows the use that releases news;
Operation module, is suitable for moving in the time loading described the first webpage the script that described demonstration releases news;
The display module that releases news, be suitable for by described release news to cover be presented on the plug-in unit element of the first kind in the first webpage.
CN201410419044.8A 2014-08-22 2014-08-22 Client shows the method and device to release news Expired - Fee Related CN104144224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410419044.8A CN104144224B (en) 2014-08-22 2014-08-22 Client shows the method and device to release news

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410419044.8A CN104144224B (en) 2014-08-22 2014-08-22 Client shows the method and device to release news

Publications (2)

Publication Number Publication Date
CN104144224A true CN104144224A (en) 2014-11-12
CN104144224B CN104144224B (en) 2018-07-06

Family

ID=51853291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410419044.8A Expired - Fee Related CN104144224B (en) 2014-08-22 2014-08-22 Client shows the method and device to release news

Country Status (1)

Country Link
CN (1) CN104144224B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404539A (en) * 2015-12-30 2016-03-16 网易(杭州)网络有限公司 Method for transplanting client game into webpage game, webpage game system and terminal
CN106484759A (en) * 2016-08-09 2017-03-08 广州视睿电子科技有限公司 The analysis method and device of interactive electric whiteboard storage file
CN108415748A (en) * 2018-03-01 2018-08-17 广州南方人才资讯科技有限公司 Method for information display and system, computer storage media and equipment
CN111506848A (en) * 2019-01-30 2020-08-07 阿里巴巴集团控股有限公司 Webpage processing method, device, equipment and readable storage medium
CN112363784A (en) * 2020-10-26 2021-02-12 深圳市明源云科技有限公司 Method and device for displaying window in application program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6654784B1 (en) * 2000-01-14 2003-11-25 Nexaweb Technologies, Inc Computing architecture
CN101136815A (en) * 2006-08-31 2008-03-05 腾讯科技(深圳)有限公司 Method and system for broadcasting advertisement during network living broadcast buffering process
CN101198022A (en) * 2007-12-26 2008-06-11 青岛海信移动通信技术股份有限公司 Method for inter cutting video information in stream media broadcasting or buffering course
CN101430781A (en) * 2007-11-05 2009-05-13 上海柯楠网络科技有限公司 Advertisement putting method for network video

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6654784B1 (en) * 2000-01-14 2003-11-25 Nexaweb Technologies, Inc Computing architecture
CN101136815A (en) * 2006-08-31 2008-03-05 腾讯科技(深圳)有限公司 Method and system for broadcasting advertisement during network living broadcast buffering process
CN101430781A (en) * 2007-11-05 2009-05-13 上海柯楠网络科技有限公司 Advertisement putting method for network video
CN101198022A (en) * 2007-12-26 2008-06-11 青岛海信移动通信技术股份有限公司 Method for inter cutting video information in stream media broadcasting or buffering course

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404539A (en) * 2015-12-30 2016-03-16 网易(杭州)网络有限公司 Method for transplanting client game into webpage game, webpage game system and terminal
CN106484759A (en) * 2016-08-09 2017-03-08 广州视睿电子科技有限公司 The analysis method and device of interactive electric whiteboard storage file
CN106484759B (en) * 2016-08-09 2020-01-10 广州视睿电子科技有限公司 Method and device for analyzing storage file of interactive electronic whiteboard
CN108415748A (en) * 2018-03-01 2018-08-17 广州南方人才资讯科技有限公司 Method for information display and system, computer storage media and equipment
CN108415748B (en) * 2018-03-01 2021-06-01 广州南方人才资讯科技有限公司 Information display method and system, computer storage medium and device
CN111506848A (en) * 2019-01-30 2020-08-07 阿里巴巴集团控股有限公司 Webpage processing method, device, equipment and readable storage medium
CN112363784A (en) * 2020-10-26 2021-02-12 深圳市明源云科技有限公司 Method and device for displaying window in application program

Also Published As

Publication number Publication date
CN104144224B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN104144224A (en) Method and device for displaying released information through client side
US11528318B2 (en) Method, apparatus, and system for pushing application program, and device
EP2916243A1 (en) Method, apparatus, server and system for implementing web application
JP6353542B2 (en) Video advertisement filtering method, apparatus and equipment
CN103019676B (en) A kind of method of managing software and system
CN103930885A (en) Measuring web page rendering time
CN103984468A (en) Method and device for information processing
CN104462074A (en) Method and device for conducting webpage data translation and browser client side
CN105471935B (en) Information prompting method and device
CN106095551A (en) The method and apparatus showing media file
CN103019677B (en) For the method and apparatus managing software
CN104967909A (en) Page video play method and page video play apparatus
CN106470360B (en) Video player calling method and device
CN104035854B (en) A kind of software action methods of exhibiting and system
CN101493837A (en) Network video playing method in multi-page browser and processing device
CN103995601A (en) Method and device for achieving input method
CN102982181A (en) Method and device for showing webpage data on browser side
CN103823829A (en) Method and device for playing webpage video
CN104469528A (en) Method and device for loading video data and browser client side
CN102306077A (en) Method for downloading video in Macintosh (MAC) platform browser and browser
CN104463642A (en) Advertisement filtering processing method and device and browser client side
CN107643911B (en) HTML 5-based interface interaction and display system and method
CN104598571A (en) Method and device for playing multimedia resource
CN103020246A (en) Webpage data presentation method and device for browser
CN103514021A (en) Method and device for providing browsers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180706

Termination date: 20210822