CN100468306C - Web page unit dissolving device and method - Google Patents

Web page unit dissolving device and method Download PDF

Info

Publication number
CN100468306C
CN100468306C CN 200610062708 CN200610062708A CN100468306C CN 100468306 C CN100468306 C CN 100468306C CN 200610062708 CN200610062708 CN 200610062708 CN 200610062708 A CN200610062708 A CN 200610062708A CN 100468306 C CN100468306 C CN 100468306C
Authority
CN
China
Prior art keywords
page
attribute modification
modification module
page unit
timer
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
CN 200610062708
Other languages
Chinese (zh)
Other versions
CN101078966A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN 200610062708 priority Critical patent/CN100468306C/en
Publication of CN101078966A publication Critical patent/CN101078966A/en
Application granted granted Critical
Publication of CN100468306C publication Critical patent/CN100468306C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a hit-and-miss device of net page element, which is characterized by the following: comprising attribute modifying module; modifying the displaying attribute to conceal when getting the request of the page rolling; modifying the displaying attribute of the page element to display when stopping roll. This invention also discloses a hit-and-miss method of net page element. This invention is convenient, which saves computer source of the users.

Description

A kind of Web page unit dissolving device and method
Technical field
The present invention relates to webpage control device and method, particularly a kind of Web page unit dissolving device and method.
Background technology
All be provided with page units such as page tool bar on many Webpages.Described page unit is meant on the webpage relatively independently a part of, as tool bar, suspension advertisement etc., page unit generally can arbitrarily insert and show identical expression effect on a plurality of Webpages, generally swim in the edge, upper and lower, left and right at the visual position of the page, the wherein integrated the most frequently used interactive function of a website can use these functions to make things convenient for the user fast on any page of this website.Above-mentionedly floatingly be meant that on the webpage certain technological means of use makes a certain partial fixing of Webpage be presented at the assigned address of page viewing area, the parts that in the time of page flip, suspend not can with the page stir and the shift position.
General website is adopted the suspension function of dual mode implementation tool bar and other page unit usually now.A kind of mode is: adopt the active script technology, recomputate the position of page unit and page unit is moved to correct position after the page rolls.Though the tool bar that this mode is made can insert very easily on the various pages and realize suspension effect, but the position of reorientating page unit that in page flip (such as user's roll mouse roller), need not stop with script, the actual effect that causes is that page unit is beated on the page apace, user's impression is felt bad very much on the one hand, to reorientate the calculated amount that page unit carries out very big for browser on the other hand, waste a lot of computer resources of user, caused the user's computer response slack-off.Also having a kind of mode is to adopt framework technology to fix.In this manner, whole website all needs to adopt general framework design, and each page has all been reserved the position of page unit.Though this mode can be avoided the problem that the page is beated and cpu (central processing unit) takies well, all need the page of show tools bar all will be designed with frame mode but cause whole website, can't optionally the tool bar parts be added on the page, the webpage of making is very dull.
Summary of the invention
The object of the present invention is to provide a kind of Web page unit dissolving device and method, make the user when using scroll bar or mouse to stir the page, page unit is hidden.
The technical solution adopted for the present invention to solve the technical problems is: a kind of Web page unit dissolving device, comprise: the attribute modification module, it is used for when obtaining the page and roll request being revised as the display properties of page unit hiding, and judge whether the described page stops to roll, after the page stops to roll, the display properties of described page unit is revised as demonstration.
Further, a kind of Web page unit dissolving device of the present invention also comprises position computation module, and it is used for calculating the display position of described page unit on the page after the page stops to roll, and result of calculation is sent to described attribute modification module; Accordingly, described attribute modification module also is used for the position attribution according to the described page unit of output modifications of described position computation module.
As an improvement of the present invention, a kind of Web page unit dissolving device of the present invention can also comprise timer, and it is used for starting according to the instruction of described attribute modification module, and is regularly finishing the back to described attribute modification module transmission end signal; Accordingly, described attribute modification module also is used for sending the timing setting instruction to described timer when obtaining page rolling request, set the timing of described timer and start timer, whether the described page of inquiry stops to roll after receiving the end signal of described timer, roll if stopped, then the display properties with described page unit is revised as demonstration, otherwise sends the timing setting instruction to described timer once more.
The present invention also provides a kind of hit-and-miss method of net page, may further comprise the steps: (a), the display properties with page unit when the attribute modification module obtains page rolling request is revised as hiding; (b), described attribute modification module judges whether page rolling finishes, if finish, and execution in step (c); (c), described attribute modification module is revised as demonstration with the display properties of described page unit.
Further, the step of a kind of hit-and-miss method of net page of the present invention (c) comprises step: (c1), described attribute modification module sends information to position computation module; (c2), described computing module calculates the display position of page unit on the page, and result of calculation is sent to described attribute modification module; (c3), described attribute modification module is according to the position attribution of the described page unit of output modifications of described computing module, and the display properties with described page unit is revised as demonstration simultaneously.
As an improvement of the inventive method, step (b) further comprises step: (b1), described attribute modification module sends the timing setting instruction to timer, sets the timing of described timer and starts timer; (b2), described timer picks up counting, and finishes the back to described attribute modification module transmission end signal at timing; (b3), described attribute modification module judges whether the described page stops to roll, if stopped rolling, and execution in step (c) then, otherwise execution in step (b1).
As another improvement of the inventive method, in the step (c), described attribute modification module is revised as the gradual change demonstration with the display properties of described page unit.
Further, in the step (b), judge that the method whether page stops to roll can be: described attribute modification module judges whether display module is called, if think that then the page has stopped rolling, otherwise think that the page still is in rolling condition.
Beneficial effect of the present invention is: 1. adopt the active script technology, can be according to product needed, and on the existing page, add page unit easily and do not destroy original page structure; 2. process hidden page parts that roll at the page have been avoided the page unit problem of beating, and improve user's the impression of browsing.3. adopt the timer timing, have only after the page stops to roll just to begin to reorientate page unit, can not waste the user's computer resource in a large number.
Description of drawings
Fig. 1 is the structural representation of a kind of Web page unit dissolving device of the present invention.
Fig. 2 is the process flow diagram of a kind of hit-and-miss method of net page of the present invention.
Embodiment
The present invention is further elaborated with specific embodiment with reference to the accompanying drawings below.
Among the present invention, the tool bar on the Webpage and other page unit all are to adopt the active script technology to realize the suspension function.
As shown in Figure 1, a kind of Web page unit dissolving device of the present invention comprises attribute modification module 1, position computation module 2 and timer 3.
Wherein, the function of attribute modification module 1 is that the display properties of page unit when obtaining page rolling request is revised as hiding (transparency that is about to page unit is set to 100), set the timing of timer 3 simultaneously and start timer 3, when finishing, timer 3 timing judge whether the page has stopped rolling, if stop, then notify position computation module 2 to begin to calculate the position that the current page parts should show on the viewing area, and the position attribution of the above-mentioned page unit of results modification that returns according to position computation module 2, the display properties with corresponding page unit is revised as demonstration simultaneously.
The function of position computation module 2 is to reorientate the position of corresponding page unit on the viewing area after the page stops to roll, and promptly page unit is with respect to the position coordinates of the current web page page, and result of calculation is sent to attribute modification module 1.
The function of timer 3 was the timed events that start a special time according to the instruction of attribute modification module 1, as regularly one second or two seconds.
In preferred embodiment of the present invention, attribute modification module 1 is revised as the gradual change demonstration with the display properties of page unit after the user stops scroll through pages, so that the appearance of page unit is not too lofty.In other embodiments of the invention, also timer 3 can be set.In other embodiments of the invention, the function of the function of described attribute modification module 1 and position computation module 2 can be realized by a module.
As shown in Figure 2, a kind of hit-and-miss method of net page of the present invention comprises step:
S1, user use scroll bar or mouse or keyboard to roll to browse Webpage, attribute modification module 1 to obtain the page request of rolling, and are revised as the display properties of page unit hiding.
S2, attribute modification module 1 sends the timing setting instruction to timer 3, sets the timing of timer 3 and starts timer 3.
S3, timer 3 picks up counting, and finishes the back to attribute modification module 1 transmission end signal at timing.
S4, attribute modification module 1 judges whether the corresponding page stops to roll, if stopped rolling, execution in step S5 then, otherwise execution in step S2.The method whether corresponding page of above-mentioned judgement stops to roll can be: judge whether display module is called, if think that then the page has stopped rolling, otherwise think that the page still is in rolling condition.
S5, attribute modification module 1 is to position computation module 2 transmission information, and notice position computation module 2 is reorientated page unit.
S6, computing module calculates the display position of page unit on the page, and result of calculation is sent to attribute modification module 1.
S7, attribute modification module 1 is according to the position attribution of the described page unit of output modifications of described computing module, and the display properties with page unit is revised as the gradual change demonstration simultaneously.
In other embodiments of the invention, among the above-mentioned steps S5, after attribute modified module 1 learns that the page has stopped rolling, can be when notice position computation module 2 is reorientated page unit the display properties of described page unit be revised as and shows or gradual change shows, because the calculating of position computation module 2 is very fast, therefore the user can't feel the reorientation (moving) that page unit occurred in the moment that shows.In other embodiments of the invention, the function of the function of described attribute modification module 1 and position computation module 2 can be realized by a module.
Like this, when the user brought into use scroll bar or mouse or keyboard rolling to browse Webpage, the page unit on the page will stash automatically, just shows after the page rolls end.Answer this, the problem that the present invention has avoided page unit to beat in the process that the page rolls has been improved user's the impression of browsing.Whether simultaneously, owing to set timer 3, have only when timer 3 regularly finishes back attribute modification module 1 and just can detect the page and roll and finish, have only when page rolling to be through with, position computation module 2 just can be reorientated the position of page unit.Therefore, can or not cause the user's computer response slack-off owing to frequently reorientating of page unit wasted the subscriber computer resource.In addition, because the present invention adopts the active script technology to realize the suspension function of page unit, so website design person can be according to product needed, easily interpolation page unit and do not destroy original page structure on the existing page.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within the claim scope of the present invention.

Claims (8)

1, a kind of Web page unit dissolving device is characterized in that, comprising:
The attribute modification module, it is used for when obtaining the page and roll request display properties with page unit and is revised as hidingly, and judges whether the described page stops to roll, and after the page stops to roll, the display properties of described page unit is revised as demonstration.
2, a kind of Web page unit dissolving device according to claim 1, it is characterized in that: also comprise position computation module, it is used for calculating the display position of described page unit on the page after the page stops to roll, and result of calculation is sent to described attribute modification module;
Described attribute modification module also is used for the position attribution according to the described page unit of output modifications of described position computation module.
3, a kind of Web page unit dissolving device according to claim 1 and 2 is characterized in that: also comprise timer, it is used for starting according to the instruction of described attribute modification module, and is regularly finishing the back to described attribute modification module transmission end signal;
Described attribute modification module also is used for sending the timing setting instruction to described timer when obtaining page rolling request, set the timing of described timer and start timer, whether the described page of inquiry stops to roll after receiving the end signal of described timer, roll if stopped, then the display properties with described page unit is revised as demonstration, otherwise sends the timing setting instruction to described timer once more.
4, a kind of hit-and-miss method of net page is characterized in that, may further comprise the steps:
Display properties with page unit when (a), the attribute modification module obtains page rolling request is revised as hiding;
(b), described attribute modification module judges whether page rolling finishes, if finish, and execution in step (c);
(c), described attribute modification module is revised as demonstration with the display properties of described page unit.
5, a kind of hit-and-miss method of net page according to claim 4 is characterized in that, step (c) further comprises step:
(c1), described attribute modification module sends information to position computation module;
(c2), described computing module calculates the display position of page unit on the page, and result of calculation is sent to described attribute modification module;
(c3), described attribute modification module is according to the position attribution of the described page unit of output modifications of described computing module, and the display properties with described page unit is revised as demonstration simultaneously.
6, according to claim 4 or 5 described a kind of hit-and-miss method of net page, it is characterized in that step (b) further comprises step:
(b1), described attribute modification module sends the timing setting instruction to timer, sets the timing of described timer and starts timer;
(b2), described timer picks up counting, and finishes the back to described attribute modification module transmission end signal at timing;
(b3), described attribute modification module judges whether the described page stops to roll, if stopped rolling, and execution in step (c) then, otherwise execution in step (b1).
7, a kind of hit-and-miss method of net page according to claim 6 is characterized in that: in the step (c), described attribute modification module is revised as the gradual change demonstration with the display properties of described page unit.
8, a kind of hit-and-miss method of net page according to claim 6 is characterized in that, in the step (b), judges that the method whether page stops to roll is:
Described attribute modification module judges whether display module is called, if think that then the page has stopped rolling, otherwise think that the page still is in rolling condition.
CN 200610062708 2006-09-20 2006-09-20 Web page unit dissolving device and method Active CN100468306C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610062708 CN100468306C (en) 2006-09-20 2006-09-20 Web page unit dissolving device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610062708 CN100468306C (en) 2006-09-20 2006-09-20 Web page unit dissolving device and method

Publications (2)

Publication Number Publication Date
CN101078966A CN101078966A (en) 2007-11-28
CN100468306C true CN100468306C (en) 2009-03-11

Family

ID=38906458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610062708 Active CN100468306C (en) 2006-09-20 2006-09-20 Web page unit dissolving device and method

Country Status (1)

Country Link
CN (1) CN100468306C (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130227468A1 (en) * 2012-02-23 2013-08-29 Kun-Da Wu Portable device and webpage browsing method thereof
AU2012374031B2 (en) * 2012-03-20 2015-08-27 Radial, Inc. Information and action bar for a user interface
CN103019606B (en) * 2012-12-26 2015-11-25 北京百度网讯科技有限公司 The Web page management method of mobile terminal, device and mobile terminal
CN103092977A (en) * 2013-01-30 2013-05-08 广东欧珀移动通信有限公司 Web page browsing method of mobile terminal and mobile terminal
CN104238904B (en) * 2013-06-17 2019-08-06 中兴通讯股份有限公司 A kind of method and mobile terminal of display interface sliding
CN104123070B (en) * 2014-06-16 2019-01-15 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105447041A (en) * 2014-09-02 2016-03-30 阿里巴巴集团控股有限公司 Webpage processing method and device
CN105512124B (en) * 2014-09-23 2019-09-17 腾讯科技(深圳)有限公司 The method and apparatus that text editor suspends are realized in webpage
CN106547454A (en) * 2015-09-16 2017-03-29 阿里巴巴集团控股有限公司 Display packing and device
CN105677314B (en) * 2015-12-24 2019-06-21 小米科技有限责任公司 Processing method, device and the equipment of rolling event
CN106648585B (en) * 2016-09-22 2020-10-09 北京小米移动软件有限公司 Method and device for setting transparency of webpage DOM (document object model) element

Also Published As

Publication number Publication date
CN101078966A (en) 2007-11-28

Similar Documents

Publication Publication Date Title
CN100468306C (en) Web page unit dissolving device and method
CN103187041B (en) The control method of flexible display and flexible display
JP5384949B2 (en) Method and system for realizing local rolling display of tables in web pages
JP5324411B2 (en) Advertisement distribution apparatus, method and program
JP5638648B2 (en) Advertisement generation device, advertisement generation program, and terminal device
CN102663056B (en) Method and device for displaying picture elements
CN102346782A (en) Method and device for displaying pictures on browser of user terminal as required
EP2926227A1 (en) Content manipulation using swipe gesture recognition technology
JP2012248164A (en) Information processor, information processing method, information processing program, and recording medium in which information processing program is recorded
CN103870558A (en) Page rendering method and mask layer creating method
JP2012248165A (en) Information processor, information processing method, information processing program, and recording medium in which information processing program is recorded
WO2013173949A1 (en) Method and device for loading and unloading object hierarchically in three-dimensional virtual reality scene
Falk et al. E-commerce and consumer's expectations: What makes a website work
CN106843701A (en) A kind of picture rotation methods of exhibiting and device
JP2013232225A (en) Content distribution device, content distribution method, content distribution program, and program for terminal
CN103514202B (en) Method and device for achieving webpage display
JP5997328B2 (en) Program and terminal device
WO2005103948A2 (en) A method and apparatus for providing in place editing within static documents
JP2002202743A (en) Internet advertisement display method
US11348144B2 (en) Shoppable ads with query relevant offers
Yang et al. Research on human-machine interface design of smart refrigerator based on conjoint analysis
CN109299449A (en) Form processing method, device, electronic equipment and readable storage medium storing program for executing
CN109492165B (en) Network searching method and electronic equipment
JP2016201147A (en) Program, terminal device, apparatus, and distribution method
CN107015785A (en) The method and control of a kind of Website Moduleization displaying

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant