CN104462249B - Webpage loading method and device - Google Patents

Webpage loading method and device Download PDF

Info

Publication number
CN104462249B
CN104462249B CN201410665123.7A CN201410665123A CN104462249B CN 104462249 B CN104462249 B CN 104462249B CN 201410665123 A CN201410665123 A CN 201410665123A CN 104462249 B CN104462249 B CN 104462249B
Authority
CN
China
Prior art keywords
web page
page element
strategy
mark
file
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.)
Active
Application number
CN201410665123.7A
Other languages
Chinese (zh)
Other versions
CN104462249A (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
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 CN201811620888.3A priority Critical patent/CN109740082A/en
Priority to CN201410665123.7A priority patent/CN104462249B/en
Publication of CN104462249A publication Critical patent/CN104462249A/en
Application granted granted Critical
Publication of CN104462249B publication Critical patent/CN104462249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of webpage loading method and devices, are related to field of computer technology, and main purpose is to provide a kind of new-type structure of web page that can separate the corresponding behavioral strategy of web page element.Method includes: load web document, and record has the mark of guidance file in web document, and guidance file is used to record the mark and the corresponding behavioral strategy of web page element of web page element corresponding with web document;The mark of guidance file is obtained from web document, and guidance file is obtained according to the mark of guidance file and is loaded;The mark of web page element is obtained from guidance file, and web page element is obtained according to the mark of web page element and is loaded;Web page element is presented, and executes the corresponding behavior of web page element by behavioral strategy.

Description

Webpage loading method and device
Technical field
The present invention relates to field of computer technology, in particular to a kind of webpage loading method and device.
Background technique
Currently, in terms of, web page element very rich is usually all devised in webpage, for example, figure Picture, audio, video etc., to be presented accordingly in a browser, to realize effect abundant.
Usually record has relevant coding in the file of web page element.For example, the animated element for a swf format comes It says, the coding for determining how the animated element is acted often is stored in file;In another example for a display content For the pictorial element of " click is registered ", the coding for executing registration service logic is often stored in file.Due to for The design of web page element often relates to Art Design field, and writing for corresponding encoded, often relates to programming technique Field, and the producer of web page element is difficult to have both the knowledge of two different fields, this will result in the production effect of web page element Rate is very low and the design of web page element or correlative code write it is not reasonable.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the webpage loading method and device of problem.
According to one aspect of the present invention, a kind of webpage loading method is provided comprising: load web document, it is described Record has the mark of guidance file in web document, and the guidance file is for recording webpage member corresponding with the web document The mark and the corresponding behavioral strategy of the web page element of element;The mark of the guidance file is obtained from the web document Know, and the guidance file is obtained according to the mark of the guidance file and is loaded;Described in being obtained from the guidance file The mark of web page element, and the web page element is obtained according to the mark of the web page element and is loaded;The webpage is presented Element, and the corresponding behavior of the web page element is executed by the behavioral strategy.
According to another aspect of the invention, a kind of webpage loading device is provided comprising: web document loads mould Block, for loading web document, record has a mark of guidance file in the web document, the guidance file for recording and The mark and the corresponding behavioral strategy of the web page element of the corresponding web page element of the web document;File is guided to load mould Block obtains the guidance text for obtaining the mark of the guidance file from the web document, and according to the mark of guidance Part is loaded;Web page element loading module, for obtaining the mark of the web page element from the guidance file, and according to The mark of the web page element obtains the web page element and is loaded;Control module, the web page element for rendering, and The corresponding behavior of the web page element is executed by the behavioral strategy.
According to above technical solution, it is known that webpage loading method and device of the invention has at least the following advantages:
With prior art the difference is that not re-recording in the file of web page element for executing its corresponding behavior Behavioral strategy, web page element are realized with behavioral strategy and are separated, and behavioral strategy is recorded in guidance file, are advantageous for bearing in this way The fine arts personnel of duty web page element design and the technical staff for being responsible for encoding behavioral strategy in guidance file distinguish It works;" splicing " between behavioral strategy and web page element by the mark for the web page element being recorded in guidance file come It realizes, then by the mark of web page element in modification guidance file, may be implemented between different guidance file and web page element Collocation, this be conducive to improve web page element and behavioral strategy reusability;It can be seen that being provided in technical solution of the present invention A kind of structure of web page more reasonably comprising guidance file and web page element.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of webpage loading method according to an embodiment of the invention;
Fig. 2 shows the flow charts of webpage loading method according to an embodiment of the invention;
Fig. 3 shows the flow chart of webpage loading method according to an embodiment of the invention;
Fig. 4 shows the flow chart of webpage loading method according to an embodiment of the invention;
Fig. 5 shows the flow chart of webpage loading method according to an embodiment of the invention;
Fig. 6 shows the block diagram of webpage loading device according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
As shown in Figure 1, providing a kind of webpage loading method in one embodiment of the present of invention comprising:
Step 110, web document is loaded, record has the mark of guidance file in web document, and guidance file is for recording The mark and the corresponding behavioral strategy of web page element of web page element corresponding with web document.
In the present embodiment, web document generally can be using the file of the formats such as HTML.Guidance file mark include but It is not limited to the diversified forms such as title, number.It is unlimited to the form of guidance file, such as can be the text text for being suitable for recording coding Part.It is unlimited to the form of web page element comprising but be not limited to image, document, audio, video and multimedia file etc..Webpage The mark of element equally includes but is not limited to the diversified forms such as title, number.Behavioral strategy can be using a variety of programming languages such as JS Speech is to write, for executing any behavior relevant to web page element, for example, if web page element is multimedia file, phase The behavioral strategy answered is used to control the broadcasting of multimedia file, if web page element is the advertisement of certain business, corresponding behavior Strategy is for executing specific service logic.
Step 120, the mark of guidance file is obtained from web document, and guidance text is obtained according to the mark of guidance file Part is loaded.
Step 130, the mark of web page element is obtained from guidance file, and webpage member is obtained according to the mark of web page element Element is loaded.
Here it is seen that " splicing " between behavioral strategy and web page element passes through the web page element being recorded in guidance file Mark realize, then by the mark of web page element in modification guidance file, may be implemented different guidance file and webpage Collocation between element, this is conducive to the reusability for improving web page element and behavioral strategy.
Step 140, web page element is presented, and executes the corresponding behavior of web page element by behavioral strategy.
At this point, web page element and the guidance file with respective behavior strategy are all loaded, being equivalent to realizes webpage The splicing of element and behavioral strategy, so as to which web page element is presented and executes corresponding behavior.Assuming that web document The title of guidance file A is had recorded in 123.html, and music file a.mp3 (webpage member is had recorded in guidance file A Element) and a.mp3 broadcasting time (behavioral strategy), then loading procedure is as follows as can be seen from FIG. 1: first load web document 123.html;After the title for reading guidance file A in 123.html, obtains guidance file A and loaded;From A A.mp3 and its broadcasting time are read, a.mp3 is loaded;A.mp3 is played on Webpage, and presses above-mentioned broadcasting time Loop play.
As shown in Fig. 2, providing a kind of webpage loading method in another embodiment of the invention comprising:
Step 210, web document is loaded, record has the mark of guidance file in web document, and guidance file is for recording The corresponding presentation strategy of the mark and web page element of web page element corresponding with web document.Which dictates that web page element how It is presented to the user.
Step 220, the mark of guidance file is obtained from web document, and guidance text is obtained according to the mark of guidance file Part is loaded.
Step 230, the mark of web page element is obtained from guidance file, and webpage member is obtained according to the mark of web page element Element is loaded.
Step 240, by strategy is presented, the presentation of web page element is controlled.
In the present embodiment, it is not limited to strategy is presented, for example, when web page element is image, then it is corresponding to present Strategy can be control image and generate gradual change;When web page element is text, then strategy is presented accordingly can be control text The transformation of color.Assuming that having recorded the title of guidance file B in web document 234.html, and recorded in guidance file B The gradual change style (strategy is presented) of image file b.jpg (web page element) and b.jpg faded in, then according to fig. 2 may be used Know that loading procedure is as follows: load web document 234.html first;The name that guidance file B is read from 234.html is referred to as Afterwards, it obtains guidance file B and is loaded;B.jpg and its gradual change style are read from B, load b.jpg;In webpage page B.jpg, and being fade-in fade-out by above-mentioned gradual change style control b.jpg are shown on face.
As shown in figure 3, providing a kind of webpage loading method in another embodiment of the invention comprising:
Step 310, web document is loaded, record has the mark of guidance file in web document, and guidance file is for recording The mark and the corresponding location information of web page element and/or dynamic change strategy of web page element corresponding with web document.
Step 320, the mark of guidance file is obtained from web document, and guidance text is obtained according to the mark of guidance file Part is loaded.
Step 330, the mark of web page element is obtained from guidance file, and webpage member is obtained according to the mark of web page element Element is loaded.
Step 340, opsition dependent information determines the position of web page element.For example, when web page element is logos, then in advance If location information, can control its display position on webpage.Assuming that having recorded guidance text in web document 345.html The title of part C, and the coordinate position of logos c.bmp (web page element) and c.bmp are had recorded in guidance file C (location information), then loading procedure is as follows as can be seen from FIG. 3: load web document 345.html first;It is read from 345.html After the title for getting guidance file C, obtains guidance file C and loaded;C.bmp and its gradual change wind are read from C Lattice record c.bmp;C.bmp is shown on Webpage, and determines position of the c.bmp on webpage by above-mentioned coordinate position.
Or, pressing dynamic change strategy, the dynamic change of web page element is controlled.For example, being pressed when web page element is animation file Preset dynamic change strategy can control the specific animated actions of animation file, than it is more typical be exactly swf format above-mentioned Flash animation file.Assuming that the title of guidance file D is had recorded in web document 456.html, and in guidance file D The animated actions (dynamic change strategy) of animation file d.swf (web page element) and d.swf are had recorded, then as can be seen from FIG. 3 Loading procedure is as follows: load web document 456.html first;After the title for reading guidance file D in 456.html, It obtains guidance file D and is loaded;D.swf and animated actions are read from D, load d.swf;It is shown on Webpage Show d.swf, and carries out dynamic change by above-mentioned animated actions control d.swf.
As shown in figure 4, providing a kind of webpage loading method in one embodiment of the present of invention comprising:
Step 410, web document is loaded, record has the mark of guidance file in web document, and guidance file is for recording The corresponding user data collection strategy of mark and web page element of web page element corresponding with web document.Collected data Including but not limited to user is inputted by keyboard or mouse.
Step 420, the mark of guidance file is obtained from web document, and guidance text is obtained according to the mark of guidance file Part is loaded.
Step 430, the mark of web page element is obtained from guidance file, and webpage member is obtained according to the mark of web page element Element is loaded.
Step 440, the operation that user carries out is obtained by user data collection strategy when web page element is presented, according to user Operation obtain and data and be transmitted to server.
In the present embodiment, for example, when web page element is the register interface for registering user, corresponding user mobile phone plan The every terms of information that user inputs in register interface is slightly collected, and returns to server to complete to register.Assuming that web document The title of guidance file E is had recorded in 567.html, and has recorded register interface image e.jpg (webpage in guidance file E Element) and the corresponding registration logic of e.jpg (user data collection strategy), then loading procedure is as follows as can be seen from FIG. 4: first Load web document 567.html;After the title for reading guidance file E in 567.html, obtains guidance file E and go forward side by side Row load;E.jpg and registration logic are read from E, load e.jpg;E.jpg is shown on Webpage, and by above-mentioned The input frame that is generated on e.jpg of registration logic, and the data that user is inputted in input frame are sent to server.
As shown in figure 5, providing a kind of webpage loading method in one embodiment of the present of invention comprising:
Step 510, web document is loaded, record has the mark of guidance file in web document, and guidance file is for recording The corresponding server acquisition strategy of mark and web page element of web page element corresponding with web document.Which dictates that how from Server obtains web page element and is showed.
Step 520, the mark of guidance file is obtained from web document, and guidance text is obtained according to the mark of guidance file Part is loaded.
Step 530, the mark of web page element is obtained from guidance file, and webpage member is obtained according to the mark of web page element Element is loaded.
Step 540, one or more web page elements to be obtained are determined by server acquisition strategy, obtain one from server A or multiple web page elements are simultaneously presented.
In the present embodiment, the concrete form of server acquisition strategy is not limited, for example, server acquisition strategy In can be by the preset time and obtain corresponding web page element, realize that the timing of web page element is presented;It can be reception again The triggering of user obtains web page element according to the triggering of user, realizes response user's operation web page element is presented.Assuming that net The title of guidance file F is had recorded in page document 678.html, and has recorded f.swf (web page element) in guidance file F And f.swf corresponding presentation time (server acquisition strategy), then loading procedure is as follows as can be seen from FIG. 5: load net first Page document 678.html;After the title for reading guidance file F in 678.html, obtains guidance file F and loaded; F.swf and registration logic are read from F, load f.swf;E.jpg is shown on Webpage, and is patrolled by above-mentioned registration The input frame generated on e.jpg is collected, and the registration information that user is inputted in input frame is sent to server.
As shown in fig. 6, providing a kind of webpage loading device in one embodiment of the present of invention comprising:
Web document loading module 610 loads web document, and record has the mark of guidance file, guidance in web document File is used to record the mark and the corresponding behavioral strategy of web page element of web page element corresponding with web document.
In the present embodiment, web document generally can be using the file of the formats such as HTML.Guidance file mark include but It is not limited to the diversified forms such as title, number.It is unlimited to the form of guidance file, such as can be the text text for being suitable for recording coding Part.It is unlimited to the form of web page element comprising but be not limited to image, document, audio, video and multimedia file etc..Webpage The mark of element equally includes but is not limited to the diversified forms such as title, number.Behavioral strategy can be using a variety of programming languages such as JS Speech is to write, for executing any behavior relevant to web page element, for example, if web page element is multimedia file, phase The behavioral strategy answered is used to control the broadcasting of multimedia file, if web page element is the advertisement of certain business, corresponding behavior Strategy is for executing specific service logic.
File load module 620 is guided, the mark of guidance file is obtained from web document, and according to the mark of guidance file Knowing to obtain guides file to be loaded.
Web page element loading module 630 obtains the mark of web page element from guidance file, and according to the mark of web page element Know acquisition web page element to be loaded.
Here it is seen that " splicing " between behavioral strategy and web page element passes through the web page element being recorded in guidance file Mark realize, then by the mark of web page element in modification guidance file, may be implemented different guidance file and webpage Collocation between element, this is conducive to the reusability for improving web page element and behavioral strategy.
Control module 640 is presented web page element, and executes the corresponding behavior of web page element by behavioral strategy.
At this point, web page element and the guidance file with respective behavior strategy are all loaded, being equivalent to realizes webpage The splicing of element and behavioral strategy, so as to which web page element is presented and executes corresponding behavior.Assuming that web document The title of guidance file A is had recorded in 123.html, and music file a.mp3 (webpage member is had recorded in guidance file A Element) and a.mp3 broadcasting time (behavioral strategy), then loading procedure is as follows as can be seen from FIG. 6: first load web document 123.html;After the title for reading guidance file A in 123.html, obtains guidance file A and loaded;From A A.mp3 and its broadcasting time are read, a.mp3 is loaded;A.mp3 is played on Webpage, and presses above-mentioned broadcasting time Loop play.
A kind of webpage loading device is provided in another embodiment of the invention comprising:
Web document loading module 610 loads web document, and record has the mark of guidance file, guidance in web document File is used to record the mark and the corresponding presentation strategy of web page element of web page element corresponding with web document.Which dictates that How web page element is presented to the user.
File load module 620 is guided, the mark of guidance file is obtained from web document, and according to the mark of guidance file Knowing to obtain guides file to be loaded.
Web page element loading module 630 obtains the mark of web page element from guidance file, and according to the mark of web page element Know acquisition web page element to be loaded.
Control module 640 controls the presentation of web page element by strategy is presented.
In the present embodiment, it is not limited to strategy is presented, for example, when web page element is image, then it is corresponding to present Strategy can be control image and generate gradual change;When web page element is text, then strategy is presented accordingly can be control text The transformation of color.Assuming that having recorded the title of guidance file B in web document 234.html, and recorded in guidance file B The gradual change style (strategy is presented) of image file b.jpg (web page element) and b.jpg faded in, then can according to Fig. 6 Know that loading procedure is as follows: load web document 234.html first;The name that guidance file B is read from 234.html is referred to as Afterwards, it obtains guidance file B and is loaded;B.jpg and its gradual change style are read from B, load b.jpg;In webpage page B.jpg, and being fade-in fade-out by above-mentioned gradual change style control b.jpg are shown on face.
A kind of webpage loading device is provided in another embodiment of the invention comprising:
Web document loading module 610 loads web document, and record has the mark of guidance file, guidance in web document File is used to record the mark and the corresponding location information of web page element and/or dynamic of web page element corresponding with web document Variation strategy.
File load module 620 is guided, the mark of guidance file is obtained from web document, and according to the mark of guidance file Knowing to obtain guides file to be loaded.
Web page element loading module 630 obtains the mark of web page element from guidance file, and according to the mark of web page element Know acquisition web page element to be loaded.
Control module 640, opsition dependent information determine the position of web page element.For example, when web page element is logos, Then preset location information can control its display position on webpage.Draw assuming that being had recorded in web document 345.html The title of file C is led, and has recorded the coordinate bit of logos c.bmp (web page element) and c.bmp in guidance file C (location information) is set, then loading procedure is as follows as can be seen from FIG. 6: load web document 345.html first;From 345.html After the title for reading guidance file C, obtains guidance file C and loaded;C.bmp and its gradual change are read from C Style loads c.bmp;C.bmp is shown on Webpage, and determines position of the c.bmp on webpage by above-mentioned coordinate position It sets.
Or, pressing dynamic change strategy, the dynamic change of web page element is controlled.For example, being pressed when web page element is animation file Preset dynamic change strategy can control the specific animated actions of animation file, than it is more typical be exactly swf format above-mentioned Flash animation file.Assuming that the title of guidance file D is had recorded in web document 456.html, and in guidance file D The animated actions (dynamic change strategy) of animation file d.swf (web page element) and d.swf are had recorded, then as can be seen from FIG. 6 Loading procedure is as follows: load web document 456.html first;After the title for reading guidance file D in 456.html, It obtains guidance file D and is loaded;D.swf and animated actions are read from D, load d.swf;It is shown on Webpage Show d.swf, and carries out dynamic change by above-mentioned animated actions control d.swf.
A kind of webpage loading device is provided in one embodiment of the present of invention comprising:
Web document load 610 loads web document, and record has the mark of guidance file in web document, guides file The corresponding user data collection strategy of mark and web page element for recording web page element corresponding with web document.It is received The data of collection include but is not limited to that user is inputted by keyboard or mouse.
File load module 620 is guided, the mark of guidance file is obtained from web document, and according to the mark of guidance file Knowing to obtain guides file to be loaded.
Web page element loading module 630 obtains the mark of web page element from guidance file, and according to the mark of web page element Know acquisition web page element to be loaded.
Control module 640 obtains the operation that user carries out by user data collection strategy when web page element is presented, according to The operation of user obtains data and is transmitted to server.
In the present embodiment, for example, when web page element is the register interface for registering user, corresponding user mobile phone plan The every terms of information that user inputs in register interface is slightly collected, and returns to server to complete to register.Assuming that web document The title of guidance file E is had recorded in 567.html, and has recorded register interface image e.jpg (webpage in guidance file E Element) and the corresponding registration logic of e.jpg (user data collection strategy), then loading procedure is as follows as can be seen from FIG. 6: first Load web document 567.html;After the title for reading guidance file E in 567.html, obtains guidance file E and go forward side by side Row load;E.jpg and registration logic are read from E, load e.jpg;E.jpg is shown on Webpage, and by above-mentioned The input frame that is generated on e.jpg of registration logic, and the data that user is inputted in input frame are sent to server.
A kind of webpage loading device is provided in one embodiment of the present of invention comprising:
Web document loading module 610 loads web document, and record has the mark of guidance file, guidance in web document File is used to record the mark and the corresponding server acquisition strategy of web page element of web page element corresponding with web document.This It determines how to obtain web page element from server and be showed.
File load module 620 is guided, the mark of guidance file is obtained from web document, and according to the mark of guidance file Knowing to obtain guides file to be loaded.
Web page element loading module 630 obtains the mark of web page element from guidance file, and according to the mark of web page element Know acquisition web page element to be loaded.
Control module 640 is determined one or more web page elements to be obtained by server acquisition strategy, obtained from server It takes one or more web page elements and is presented.
In the present embodiment, the concrete form of server acquisition strategy is not limited, for example, server acquisition strategy In can be by the preset time and obtain corresponding web page element, realize that the timing of web page element is presented;It can be reception again The triggering of user obtains web page element according to the triggering of user, realizes response user's operation web page element is presented.Assuming that net The title of guidance file F is had recorded in page document 678.html, and has recorded f.swf (web page element) in guidance file F And f.swf corresponding presentation time (server acquisition strategy), then loading procedure is as follows as can be seen from FIG. 6: load net first Page document 678.html;After the title for reading guidance file F in 678.html, obtains guidance file F and loaded; F.swf and registration logic are read from F, load f.swf;E.jpg is shown on Webpage, and is patrolled by above-mentioned registration The input frame generated on e.jpg is collected, and the registration information that user is inputted in input frame is sent to server.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) come realize some in webpage loading device according to an embodiment of the present invention or The some or all functions of person's whole component.The present invention is also implemented as one for executing method as described herein Point or whole device or device programs (for example, computer program and computer program product).Such this hair of realization Bright program can store on a computer-readable medium, or may be in the form of one or more signals.It is such Signal can be downloaded from an internet website to obtain, and is perhaps provided on the carrier signal or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
A1, a kind of webpage loading method comprising:
Web document is loaded, record has the mark of guidance file in the web document, and the guidance file is for recording The mark and the corresponding behavioral strategy of the web page element of web page element corresponding with the web document;
The mark of the guidance file is obtained from the web document, and institute is obtained according to the mark of the guidance file Guidance file is stated to be loaded;
The mark of the web page element is obtained from the guidance file, and institute is obtained according to the mark of the web page element Web page element is stated to be loaded;
The web page element is presented, and executes the corresponding behavior of the web page element by the behavioral strategy.
A2, method according to a1, wherein the behavioral strategy includes the corresponding presentation strategy of the web page element; The corresponding behavior of the web page element is executed by the behavioral strategy, is specifically included:
By the presentation strategy, the presentation of the web page element is controlled.
A3, the method according to A2, wherein it is described present strategy include the web page element location information and/or Dynamic change strategy;By the presentation strategy, the presentation of the web page element is controlled, is specifically included:
By the location information, the position of the web page element is determined;And/or
By the dynamic change strategy, the dynamic change of the web page element is controlled.
A4, method according to a1, wherein the behavioral strategy includes that the corresponding user data of the web page element is received Collection strategy;The corresponding behavior of the web page element is executed by the behavioral strategy, is specifically included:
The operation that user carries out is obtained by the user data collection strategy when the web page element is presented, according to described The operation of user obtains data and is transmitted to server.
A5, method according to a1, wherein the behavioral strategy includes that the corresponding server of the web page element obtains Strategy;Corresponding behavior is executed by the behavioral strategy, is specifically included:
One or more web page elements to be obtained are determined by the server acquisition strategy, obtain described one from server A or multiple web page elements are simultaneously presented.
A6, the method according to any one of A1 to A5, wherein the web page element includes at least one of the following: figure Picture, document, audio, video and multimedia file.
A7, a kind of webpage loading device comprising:
Web document loading module, for loading web document, record has the mark of guidance file in the web document, Mark and the web page element of the guidance file for recording web page element corresponding with the web document are corresponding Behavioral strategy;
File load module is guided, for obtaining the mark of the guidance file from the web document, and according to drawing The mark led obtains the guidance file and is loaded;
Web page element loading module, for obtaining the mark of the web page element from the guidance file, and according to institute The mark for stating web page element obtains the web page element and is loaded;
Control module, the web page element for rendering, and by the behavioral strategy to execute the web page element corresponding Behavior.
A8, the device according to A7, wherein the behavioral strategy includes the corresponding presentation strategy of the web page element;
The control module controls the presentation of the web page element by the presentation strategy.
A9, the device according to A8, wherein it is described present strategy include the web page element location information and/or Dynamic change strategy;
The control module presses the location information, determines the position of the web page element;And/or press the dynamic change Strategy controls the dynamic change of the web page element.
A10, the device according to A7, wherein the behavioral strategy includes the corresponding user data of the web page element Collection strategy;
The control module obtains what user carried out by the user data collection strategy when the web page element is presented Operation obtains data according to the operation of the user and is transmitted to server.
A11, the device according to A7, wherein the behavioral strategy includes that the corresponding server of the web page element obtains Take strategy;
The control module is determined one or more web page elements to be obtained by the server acquisition strategy, from service Device obtains one or more of web page elements and is presented.
A12, the device according to any one of A7 to A11, wherein the web page element includes at least one of the following: Image, document, audio, video and multimedia file.

Claims (10)

1. a kind of webpage loading method comprising:
Web document is loaded, record has the mark of guidance file in the web document, and the guidance file is for record and institute The mark and the corresponding behavioral strategy of the web page element, the behavioral strategy for stating the corresponding web page element of web document include The corresponding server acquisition strategy of the web page element, and the server acquisition strategy is for identifying obtaining for the web page element Take dimension;
The mark of the guidance file is obtained from the web document, and is drawn according to the mark acquisition of the guidance file File is led to be loaded;
The mark of the web page element is obtained from the guidance file, and the net is obtained according to the mark of the web page element Page element is loaded;
The web page element is presented, and executes the corresponding behavior of the web page element by the behavioral strategy;
It is described to include: by the corresponding behavior of the behavioral strategy execution web page element
One or more web page elements to be obtained are determined by the server acquisition strategy, from server obtain it is one or Multiple web page elements are simultaneously presented.
2. according to the method described in claim 1, wherein, the behavioral strategy includes the corresponding presentation plan of the web page element Slightly;The corresponding behavior of the web page element is executed by the behavioral strategy, is specifically included:
By the presentation strategy, the presentation of the web page element is controlled.
3. according to the method described in claim 2, wherein, it is described present location information that strategy includes the web page element and/ Or dynamic change strategy;By the presentation strategy, the presentation of the web page element is controlled, is specifically included:
By the location information, the position of the web page element is determined;And/or
By the dynamic change strategy, the dynamic change of the web page element is controlled.
4. according to the method described in claim 1, wherein, the behavioral strategy includes the corresponding user data of the web page element Collection strategy;The corresponding behavior of the web page element is executed by the behavioral strategy, is specifically included:
The operation that user carries out is obtained by the user data collection strategy when the web page element is presented, according to the user Operation obtain and data and be transmitted to server.
5. method according to claim 1 to 4, wherein the web page element includes at least one of the following: Image, document, audio, video and multimedia file.
6. a kind of webpage loading device comprising:
Web document loading module, for loading web document, record has the mark of guidance file in the web document, described Guidance file is used to record the mark and the corresponding behavior of the web page element of web page element corresponding with the web document Strategy, the behavioral strategy include the corresponding server acquisition strategy of the web page element;
File load module is guided, for obtaining the mark of the guidance file from the web document, and according to guidance Mark obtains the guidance file and is loaded;
Web page element loading module, for obtaining the mark of the web page element from the guidance file, and according to the net The mark of page element obtains the web page element and is loaded;
Control module, the web page element for rendering, and the corresponding row of the web page element is executed by the behavioral strategy For;
The control module is determined one or more web page elements to be obtained by the server acquisition strategy, is obtained from server It takes one or more of web page elements and is presented.
7. device according to claim 6, wherein the behavioral strategy includes the corresponding presentation plan of the web page element Slightly;
The control module controls the presentation of the web page element by the presentation strategy.
8. device according to claim 7, wherein it is described present strategy include the web page element location information and/ Or dynamic change strategy;
The control module presses the location information, determines the position of the web page element;And/or press the dynamic change plan Slightly, the dynamic change of the web page element is controlled.
9. device according to claim 6, wherein the behavioral strategy includes the corresponding number of users of the web page element According to collection strategy;
The control module obtains the operation that user carries out by the user data collection strategy when the web page element is presented, Data are obtained according to the operation of the user and are transmitted to server.
10. device according to any one of claims 6 to 9, wherein the web page element includes at least one of the following: Image, document, audio, video and multimedia file.
CN201410665123.7A 2014-11-19 2014-11-19 Webpage loading method and device Active CN104462249B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811620888.3A CN109740082A (en) 2014-11-19 2014-11-19 Webpage loading method and device
CN201410665123.7A CN104462249B (en) 2014-11-19 2014-11-19 Webpage loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410665123.7A CN104462249B (en) 2014-11-19 2014-11-19 Webpage loading method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201811620888.3A Division CN109740082A (en) 2014-11-19 2014-11-19 Webpage loading method and device

Publications (2)

Publication Number Publication Date
CN104462249A CN104462249A (en) 2015-03-25
CN104462249B true CN104462249B (en) 2019-02-12

Family

ID=52908285

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201410665123.7A Active CN104462249B (en) 2014-11-19 2014-11-19 Webpage loading method and device
CN201811620888.3A Pending CN109740082A (en) 2014-11-19 2014-11-19 Webpage loading method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201811620888.3A Pending CN109740082A (en) 2014-11-19 2014-11-19 Webpage loading method and device

Country Status (1)

Country Link
CN (2) CN104462249B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284464B (en) * 2018-08-29 2021-07-23 网宿科技股份有限公司 Page loading method and terminal, page response method and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963987A (en) * 2010-09-30 2011-02-02 百度在线网络技术(北京)有限公司 Methods and equipments for generating and loading web page file
CN104063460A (en) * 2014-06-25 2014-09-24 北京奇虎科技有限公司 Method and device for loading webpage in browser
CN104133844A (en) * 2014-06-27 2014-11-05 小米科技有限责任公司 Method and device for loading webpage

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9098472B2 (en) * 2010-12-08 2015-08-04 Microsoft Technology Licensing, Llc Visual cues based on file type
CN102981848B (en) * 2012-11-13 2015-12-09 北京奇虎科技有限公司 Webpage main body element process browser and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963987A (en) * 2010-09-30 2011-02-02 百度在线网络技术(北京)有限公司 Methods and equipments for generating and loading web page file
CN104063460A (en) * 2014-06-25 2014-09-24 北京奇虎科技有限公司 Method and device for loading webpage in browser
CN104133844A (en) * 2014-06-27 2014-11-05 小米科技有限责任公司 Method and device for loading webpage

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
精致可拖动QQ在线客服JS特效代码;JS代码网;《JS代码网》;20140912;4-7

Also Published As

Publication number Publication date
CN109740082A (en) 2019-05-10
CN104462249A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN108495192B (en) Page editing processing method and device
US8775472B2 (en) Dynamic presentation framework
Wang et al. OpenSceneGraph 3 Cookbook
EP2840511A1 (en) System and method for dynamically converting webpage, and computer-readable recording medium
US9772978B2 (en) Touch input visualizations based on user interface context
CN104395882A (en) Creation and context-aware presentation of customized emoticon item sets
CN102136199A (en) On-line electronic book reader and on-line electronic book editor
US10579220B2 (en) Method and system for story development with a dynamic grid
US20120229391A1 (en) System and methods for generating interactive digital books
US11004350B2 (en) Computerized training video system
CN104156421A (en) Method, device and system for displaying page
US20150111189A1 (en) System and method for browsing multimedia file
CN110134410A (en) It is cold-started customized information correlating method, device and the storage medium of user
CN104462249B (en) Webpage loading method and device
CN104768083B (en) A kind of video broadcasting method and device of chapters and sections content displaying
CN110737588A (en) automatic point burying method, device, medium and electronic equipment
CN104462247B (en) webpage loading method and device
KR101651928B1 (en) Method for real-time generation and reproducing of EPUB animation using style sheet animation and real-time generation and reproducing of EPUB animation system using thereof
Magno Mobile-first Bootstrap
Godwin-Jones New developments in web browsing and authoring
CN110908656A (en) Android user interface generation method and system
Zhang et al. Design of an AR and VR supported SCORM courseware player
Nadhani et al. FusionCharts Beginner's Guide: The Official Guide for FusionCharts Suite
Janousek et al. AdvancED Flash on Devices: Mobile Development with Flash Lite and Flash 10
Picchi et al. Pro IOS Web Design and Development: HTML5, CSS3, and JavaScript with Safari

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.