Summary of the invention
A kind of webpage update method provided by the invention and device, with solve existing scheme upgrade after webpage be easy to occur the problem of word folds, covering, cannot the additions and deletions problem that error rate is high, work efficiency is lower of recommending the rich problem of position influence web page contents and the webpage only after content modification completes just after display update to bring when upgrading.
For achieving the above object, the embodiment of the present invention have employed following technical scheme:
Embodiments provide a kind of webpage update method, described method comprises:
Obtain need upgrade webpage and by this web displaying on interface;
According to the update instruction received, know the recommendation position of current needs renewal in described webpage and on described interface, generate the floating layer page, wherein, at least one node being set in the described floating layer page, the corresponding recommendation position of each node;
Receive the webpage more new data by floating layer page input, and the data modification in the recommendation position upgraded by the current needs be presented on interface is this webpage more new data;
When receiving the renewal END instruction by the input of the floating layer page, by the webpage floated when receiving this renewal END instruction in layer page more new data be defined as the data after upgrading in described recommendation position, complete the renewal to this recommendation position;
Wherein, the update instruction that described basis receives, know in described webpage current need to upgrade recommendation position and on described interface, generate the floating layer page comprise:
Described update instruction is generated according to the click of mouse on described webpage, and using recommendation position that the recommendation position of click location upgrades as needs corresponding to this update instruction.
Further, described method also comprises: when receiving recommendation position and splitting instruction, and a newly-increased node in the floating layer page also splits out a recommendation position, by newly-increased node corresponding to the recommendation position split out from current needs the recommendation position upgraded; When receiving recommendation position delete instruction, will knot removal corresponding to position delete instruction be recommended and in webpage, delete recommendation position corresponding to this node in the floating layer page.
Further, described method also comprises: when comprising two or more node in the described floating layer page, according to the ordering instruction received, arrange the order of node, and revises the position of the recommendation position that this node is corresponding in webpage according to the node after sequence.
Further, described method also comprises: when recommending position to be the recommendation position of word content, in the floating layer page this recommendation position correspondence node in arrange in text description interface, text color interface, word overstriking interface and chained address interface one or more; And/or, when recommending position to be the recommendation position of word content, in the floating layer page this recommendation position correspondence node in arrange that to select in icon interface and chained address interface one or more; And/or, when recommending position to be the recommendation position of image content, in the floating layer page this recommendation position correspondence node in arrange in picture uploading interface, picture header interface, picture character color interface, picture character overstriking interface and chained address interface one or more;
The webpage that described reception is inputted by the floating layer page more new data packets is drawn together:
Receive the webpage more new data by the one or more input in text description interface, text color interface, word overstriking interface and chained address interface; And/or, receive the webpage more new data by selecting the one or more input in icon interface and chained address interface; And/or, receive the webpage more new data by the one or more input in picture uploading interface, picture header interface, picture character color interface, picture character overstriking interface and chained address interface.
Further, described method also comprises: while the described floating layer page of generation, be modified in the transparency of the described webpage that interface shows.
Further, described method also comprises: the webpage that the described floating layer page and needs upgrade is simultaneously displayed on interface, the described floating layer page be the webpage that upgrades with needs independently, be positioned at webpage above this webpage.
The embodiment of the present invention additionally provides a kind of webpage updating device, and described device comprises:
Webpage obtain display unit, for obtain need upgrade webpage and by this web displaying at interface;
Floating layer page generating unit, for according to the update instruction received, know the recommendation position of current needs renewal in described webpage and on described interface, generate the floating layer page, wherein, in the described floating layer page, arrange at least one node, corresponding one of each node recommends position;
On-the-fly modify unit, for receiving the webpage more new data by floating layer page input, and the data modification in the recommendation position upgraded by the current needs be presented on interface is this webpage more new data;
Upgrade performance element, for when receiving the renewal END instruction by the input of the floating layer page, by the webpage floated when receiving this renewal END instruction in layer page more new data be defined as the data in described recommendation position after renewal, complete the renewal to this recommendation position;
Wherein, described floating layer page generating unit, specifically for generating described update instruction according to the click of mouse on described webpage, and using recommendation position that the recommendation position of click location upgrades as needs corresponding to this update instruction.
Further, described device also comprises recommends position updating block, for when receiving recommendation position and splitting instruction, a newly-increased node in the floating layer page also splits out a recommendation position, by newly-increased node corresponding to the recommendation position split out from current needs the recommendation position upgraded; When receiving recommendation position delete instruction, will knot removal corresponding to position delete instruction be recommended and in webpage, delete recommendation position corresponding to this node in the floating layer page.
Further, described recommendation position updating block, also for when comprising two or more node in the described floating layer page, according to the ordering instruction received, the order of node is arranged, and revises the position of the recommendation position that this node is corresponding in webpage according to the node after sequence.
Wherein, described floating layer page generating unit, specifically for when recommending position to be the recommendation position of word content, in the floating layer page this recommendation position correspondence node in arrange in text description interface, text color interface, word overstriking interface and chained address interface one or more; And/or, when recommending position to be the recommendation position of word content, in the floating layer page this recommendation position correspondence node in arrange that to select in icon interface and chained address interface one or more; And/or, when recommending position to be the recommendation position of image content, in the floating layer page this recommendation position correspondence node in arrange in picture uploading interface, picture header interface, picture character color interface, picture character overstriking interface and chained address interface one or more;
Describedly on-the-fly modify unit, specifically for receiving the webpage more new data by the one or more input in text description interface, text color interface, word overstriking interface and chained address interface; And/or, receive the webpage more new data by selecting the one or more input in icon interface and chained address interface; And/or, receive the webpage more new data by the one or more input in picture uploading interface, picture header interface, picture character color interface, picture character overstriking interface and chained address interface.
The beneficial effect of the embodiment of the present invention is:
The embodiment of the present invention is need the webpage upgraded to arrange the floating layer page, utilizes the floating layer page to receive webpage more new data, and upgrades Data Update webpage by this webpage, thus achieve the renewal to webpage.
The present embodiment is owing to being simultaneously displayed on interface by the webpage needing to upgrade and the floating layer page, and the data real time modifying in the recommendation position upgraded by the current needs be presented on interface is this webpage more new data, when data variation is upgraded to webpage, content in webpage also real-time change thereupon, when more new web page, can know simultaneously webpage upgrade after result, the webpage reaching a kind of What You See Is What You Get upgrades effect, the renewal rewards theory of great convenience to webpage, improves work efficiency.
The present embodiment is owing to reaching the effect of What You See Is What You Get when webpage upgrades, without the need to fixing the field max-length allowed in each recommendation position in advance, the word quantity of each recommendation position can be adjusted in real time according to the webpage after the renewal be presented on interface, avoid the problem of word folds, word covering, and be conducive to the dirigibility improving editor's web page contents, contribute to improving page click ratio.
Further, the present embodiment can realize, to fractionation or the deletion of recommending position, adding the dirigibility of webpage update mode, improve the rich of web page contents by the floating layer page.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
See Fig. 1, be a kind of webpage update method that the embodiment of the present invention provides, comprise:
100: obtain need upgrade webpage and by this web displaying on interface;
101: according to the update instruction received, know the recommendation position of current needs renewal in described webpage and on described interface, generate the floating layer page, wherein, at least one node being set in the described floating layer page, the corresponding recommendation position of each node.Recommend the position of content in webpage in position instruction webpage, recommend position arranges a word chain or a secondary picture etc. for usual one.This step can specifically comprise: generate described update instruction according to the click of mouse on described webpage, and using recommendation position that the recommendation position of click location upgrades as needs corresponding to this update instruction;
102: receive the webpage more new data by floating layer page input, and the data modification in the recommendation position upgraded by the current needs be presented on interface is this webpage more new data;
103: when receiving the renewal END instruction by the input of the floating layer page, by the webpage floated when receiving this renewal END instruction in layer page more new data be defined as the data after upgrading in described recommendation position, complete the renewal to this recommendation position.
Be appreciated that when existing in webpage is multiple need the recommendation position upgraded time, repeat above-mentioned steps 101 to 103 until complete the renewal to whole webpage.
The embodiment of the present invention is need the webpage upgraded to arrange the floating layer page, utilizes the floating layer page to receive webpage more new data, and upgrades Data Update webpage by this webpage, thus achieve the renewal to webpage.
The present embodiment is owing to being simultaneously displayed on interface by the webpage needing to upgrade and the floating layer page, and the data real time modifying in the recommendation position upgraded by the current needs be presented on interface is this webpage more new data, when data variation is upgraded to webpage, content in webpage also real-time change thereupon, when more new web page, can know simultaneously webpage upgrade after result, the webpage reaching a kind of What You See Is What You Get upgrades effect, the renewal rewards theory of great convenience to webpage, improves work efficiency.
The present embodiment is owing to reaching the effect of What You See Is What You Get when webpage upgrades, without the need to fixing the field max-length allowed in each recommendation position in advance, the word quantity of each recommendation position can be adjusted in real time according to the webpage after the renewal be presented on interface, avoid the problem of word folds, word covering, and be conducive to the dirigibility improving editor's web page contents, contribute to improving page click ratio.
A kind of webpage update method that another embodiment of the present invention provides, comprising:
200: obtain need upgrade webpage and by this web displaying on interface.
The data needing the webpage upgraded are read from the webserver or local data base, these data are utilized to need the web page display upgraded on interface, the interactive interface that this interface can provide for the equipment performing renewal rewards theory, realizes the input of data and the visual of webpage etc. by this interface.
201: according to the update instruction received, know the recommendation position of current needs renewal in described webpage and on described interface, generate the floating layer page.
In the present embodiment, generate described update instruction according to the click of mouse on webpage, and using recommendation position that the recommendation position of click location upgrades as needs corresponding to this update instruction.Namely, in step 201, when receiving the click order to word or picture, the amendment that the floating layer page carries out click place word or picture can be ejected.
The webpage needing to upgrade and the floating layer page are simultaneously displayed on interface, the floating layer page be with the webpage needing to upgrade independently, be positioned at a kind of webpage above this webpage.The floating layer page has the interactive function receiving data input etc., can be considered as a kind of interactive interface.
See Fig. 2, it is the screenshotss schematic diagram of the floating layer page generated according to update instruction.Two pictures have been shown in Fig. 2, and the picture being arranged in below is the webpage (the concrete word of this webpage, image content are only example) needing to upgrade, and is positioned at the picture of top for the floating layer page.
In the example of Fig. 2, webpage is navigation website (as mini homepage), and this navigation website can lead webpage corresponding to the channel such as " focus ", " amusement ", " physical culture ", " emotion ", " life ", " video ", " finance and economics ", " game ", " number ", " fashion ", " reading " respectively.When receiving the click commands of word chain in the webpage to " focus " channel " 26 provincial capital's average salary Guangzhou top the list ", generate the floating layer page as shown in Figure 2,
In the floating layer page, arrange at least one node, corresponding one of each node recommends position.In example shown in Fig. 2, show in the floating layer page scene when comprising a node, the recommendation position that this node is corresponding is the recommendation position of word content.
The recommendation position of word content can arrange word chain and icon, and when recommendation position is only a word chain, what can arrange in text description interface, text color interface, word overstriking interface and chained address interface in this node is one or more.Word chain on different recommendation position can have different words and chained address.
When recommending position only comprises icon, in the node of this recommendation position correspondence, arrange that to select in icon interface and chained address interface one or more.
When recommending position to be the recommendation position of image content, in the floating layer page this recommendation position correspondence node in arrange in picture uploading interface, picture header interface, picture character color interface, picture character overstriking interface and chained address interface one or more, see Fig. 3, show the floating layer page schematic diagram of the recommendation position correspondence comprising picture.
Accordingly, utilize every interface webpage more new data in the floating layer page, comprising: receive the webpage more new data by the one or more input in text description interface, text color interface, word overstriking interface and chained address interface; And/or, receive the webpage more new data by selecting the one or more input in icon interface and chained address interface; And/or, receive the webpage more new data etc. by the one or more input in picture uploading interface, picture header interface, picture character color interface, picture character overstriking interface and chained address interface.
Initial content in the floating layer page in every terms of information can for recommending the original contents in position before renewal.
202: receive the webpage more new data by floating layer page input, and the data modification in the recommendation position upgraded by the current needs be presented on interface is this webpage more new data.
Utilize the content of the webpage that receives in the floating layer page more new data real time modifying webpage, when webpage upgrades data variation, in webpage, corresponding data also change thereupon, such as, in the floating layer page shown in Fig. 2, the initial content of " text description " item is " 26 provincial capital's average salary Guangzhou top the list ", in webpage, the original contents of corresponding recommendation position is also " 26 provincial capital's average salary Guangzhou top the list ", when the content modification that then will float " text description " item in the layer page is for " 26 provincial capital ", the content of the corresponding recommendation position that interface shows also is changed to " 26 provincial capital ".
Namely the present embodiment is when more new web page, can know simultaneously webpage upgrade after result, the webpage reaching a kind of What You See Is What You Get upgrades effect, and the renewal rewards theory of great convenience to webpage, improves work efficiency.
203: when receiving the renewal END instruction by the input of the floating layer page, by the webpage floated when receiving this renewal END instruction in layer page more new data be defined as the data after upgrading in described recommendation position, complete the renewal to this recommendation position.
" preservation " button clicked in the floating layer page can send to the floating layer page and upgrade END instruction, and now in the floating layer page, every content is the final content in corresponding recommendation position.Be appreciated that after recommending one position renewal to terminate, again can generate the floating layer page when needing and the content in this recommendation position is modified.
Further, the present embodiment can realize the increase (fractionation) recommended and delete, and comprises following process:
When receiving recommendation position and splitting instruction, a newly-increased node in the floating layer page also splits out a recommendation position, by newly-increased node corresponding to the recommendation position split out from current needs the recommendation position upgraded.The recommendation position being word content to recommend position illustrates, " interpolation word " button can be utilized in the floating layer page of this recommendation position correspondence to add the node only comprising word, or, in the floating layer page of this recommendation position correspondence, utilize " interpolation icon " button to add the node only comprising icon.Then corresponding to the increase of floating layer page interior joint, in webpage, the current recommendation position upgraded that needs is split into two or more recommendation position.By the new recommendation position that splits out with originally can be upgraded by a floating layer page by the recommendation position split.
When receiving recommendation position delete instruction, will knot removal corresponding to position delete instruction be recommended and in webpage, delete recommendation position corresponding to this node in the floating layer page.Corresponding to the deletion of floating layer page interior joint, recommend position and wherein content is also deleted accordingly in webpage.See Fig. 4, show the example of a floating layer page, in this floating layer page, comprise three nodes, a node corresponding to icon and two nodes corresponding to word.This floating layer page corresponds to a line information in webpage, as " network major issue factory of the icon trenchant comments China sumptuous meal beginning of the year is existing ".When needing the icon in this row information to delete, choose icon node, to send the delete instruction deleting icon, the floating layer page after deletion only remains the node that two correspond to word, this floating layer page corresponds to the information in webpage, is also modified to " network major issue factory of the trenchant comments China sumptuous meal beginning of the year is existing ".
Further, the present embodiment also comprises: when comprising two or more node in the described floating layer page, according to the ordering instruction received, arrange the order of node, and revises the position of the recommendation position that this node is corresponding in webpage according to the node after sequence.Such as, " ascending order " or " descending " button that utilization is floated in the layer page receives ordering instruction, will float each node in the layer page and, according to numbering from greatly to minispread or from little to longer spread, adjust the position of recommendation position corresponding to webpage interior joint accordingly.
Further, the present embodiment also comprises: while the described floating layer page of generation, be modified in the transparency of the described webpage that interface shows.Adjustment needs the transparency of the webpage upgraded, as compared to the webpage generated before the floating layer page, after generating the floating layer page, reduce the transparency of this webpage, be in more new state to indicate webpage, and contribute to distinguishing the webpage of needs renewal and the floating layer page, be convenient to renewal rewards theory.
Further embodiment of this invention additionally provides a kind of webpage updating device, and see Fig. 5, described device comprises:
Webpage obtain display unit 500, for obtain need upgrade webpage and by this web displaying at interface;
Floating layer page generating unit 501, for according to the update instruction received, know the recommendation position of current needs renewal in described webpage and on described interface, generate the floating layer page, wherein, in the described floating layer page, arrange at least one node, corresponding one of each node recommends position;
On-the-fly modify unit 502, for receiving the webpage more new data by floating layer page input, and the data modification in the recommendation position upgraded by the current needs be presented on interface is this webpage more new data;
Upgrade performance element 503, for when receiving the renewal END instruction by floating layer page input, by the webpage floated when receiving this renewal END instruction in layer page more new data be defined as in described recommendation position upgrade after data, complete the renewal to this recommendation position.
Further, described floating layer page generating unit 501, specifically for generating described update instruction according to the click of mouse on described webpage, and using recommendation position that the recommendation position of click location upgrades as needs corresponding to this update instruction.
Further, described device also comprises recommends position updating block, for when receiving recommendation position and splitting instruction, a newly-increased node in the floating layer page also splits out a recommendation position, by newly-increased node corresponding to the recommendation position split out from current needs the recommendation position upgraded; When receiving recommendation position delete instruction, will knot removal corresponding to position delete instruction be recommended and in webpage, delete recommendation position corresponding to this node in the floating layer page.
Further, described recommendation position updating block, also for when comprising two or more node in the described floating layer page, according to the ordering instruction received, the order of node is arranged, and revises the position of the recommendation position that this node is corresponding in webpage according to the node after sequence.
Further, described floating layer page generating unit 501, specifically for when recommending position to be the recommendation position of word content, in the floating layer page this recommendation position correspondence node in arrange in text description interface, text color interface, word overstriking interface and chained address interface one or more; When recommending position to be the recommendation position of word content, in the floating layer page this recommendation position correspondence node in arrange that to select in icon interface and chained address interface one or more; When recommending position to be the recommendation position of image content, in the floating layer page this recommendation position correspondence node in arrange in picture uploading interface, picture header interface, picture character color interface, picture character overstriking interface and chained address interface one or more;
Describedly on-the-fly modify unit 502, specifically for receiving the webpage more new data by the one or more input in text description interface, text color interface, word overstriking interface and chained address interface; And/or, receive the webpage more new data by selecting the one or more input in icon interface and chained address interface; And/or, receive the webpage more new data by the one or more input in picture uploading interface, picture header interface, picture character color interface, picture character overstriking interface and chained address interface.
In apparatus of the present invention embodiment, the specific works mode of each unit can see embodiment of the method for the present invention.
From the above mentioned, the present embodiment is owing to being simultaneously displayed on interface by the webpage needing to upgrade and the floating layer page, and the data real time modifying in the recommendation position upgraded by the current needs be presented on interface is this webpage more new data, when data variation is upgraded to webpage, content in webpage also real-time change thereupon, when more new web page, the result after webpage renewal can be known simultaneously, the webpage reaching a kind of What You See Is What You Get upgrades effect, the renewal rewards theory of great convenience to webpage, improves work efficiency.
The present embodiment is owing to reaching the effect of What You See Is What You Get when webpage upgrades, without the need to fixing the field max-length allowed in each recommendation position in advance, the word quantity of each recommendation position can be adjusted in real time according to the webpage after the renewal be presented on interface, avoid the problem of word folds, word covering, and be conducive to the dirigibility improving editor's web page contents, contribute to improving page click ratio.
Further, the present embodiment can realize, to fractionation or the deletion of recommending position, adding the dirigibility of webpage update mode, improve the rich of web page contents by the floating layer page.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.