Summary of the invention
Technical matters to be solved by this invention is to provide a kind of micro image display packing and device of web page tag, so that user fast and effeciently can identify the content in browser in multiple web page tag, improves operating efficiency.
In order to solve the problem, the invention discloses a kind of micro image display packing of web page tag, comprising:
Mouse-over reaches the schedule time in current web page label place, triggers display web page label micro image window;
Obtain the page screenshot of web page tag in browser, generate its web page tag micro image;
Described web page tag micro image is carried in described web page tag micro image window.
Preferably, described triggering display web page label micro image window comprises:
Obtain the coordinate position of browsing device net page label;
According to the coordinate position of described web page tag, offset downward the coordinate position generating pop-up window;
According to the coordinate position of above-mentioned generation, generate pop-up window based on browser main window as web page tag micro image window.
Preferably, the page screenshot of web page tag in described acquisition browser, generates its web page tag micro image and comprises:
Obtain and generate corresponding web page tag micro image with the page screenshot of current at least one web page tag choosing web page tag adjacent;
Describedly described web page tag micro image is carried in described web page tag micro image window and comprises:
Described at least one adjacent web page tag micro image is carried in described web page tag micro image window.
Preferably, the page screenshot of web page tag in described acquisition browser, generates its web page tag micro image and comprises further:
Obtain the current page screenshot generating web page label micro image choosing web page tag;
Describedly described web page tag micro image is carried in described web page tag micro image window and comprises further:
Be carried in described web page tag micro image window by the described current web page tag micro image of web page tag of choosing, the described current micro image of web page tag of choosing is selected in web page tag micro image window.
Preferably, also comprise:
The schedule time is reached, the web page tag micro image synchronous change in described web page tag micro image window when mouse slides and hovers between at least one web page tag described.
Preferably, also comprise:
When at least one web page tag micro image described in mouse is in web page tag micro image window is slided, the web page tag page of the web page tag micro image of the current correspondence of synchronous preview mouse in browser window.
Preferably, also comprise:
When mouse moves away the viewing area of web page tag micro image window, described web page tag micro image close, described browser window recovers the page of the current web page tag chosen of display.
Preferably, also comprise in described web page tag micro image window: the X button corresponding with described web page tag micro image;
Described method also comprises:
When user clicks described X button, the web page tag micro image of correspondence removed from described web page tag micro image window, the page of the web page tag that described web page tag micro image is corresponding is closed in a browser.
Preferably, also comprise in described web page tag micro image window: corresponding with web page tag micro image
Collection button and/or
Save button and/or
Add the navigation button and/or
Broadcast button and/or
Download button;
Described method also comprises:
When user clicks described button, corresponding collection is performed to the page of web page tag corresponding to described web page tag micro image and/or preserves and/or add navigation and/or play and/or down operation.
Preferably, also comprise:
If the web page tag micro image in described web page tag micro image window exceeds predetermined quantity, in described web page tag micro image window, generate left and right scroll button, with web page tag micro image in web page tag micro image window described in roll display.
Preferably, the page screenshot of web page tag in described acquisition browser, the step generating its web page tag micro image comprises:
The page screenshot of browser labels page is got according to OleDraw function;
The ID of web page tag in browser is set, and generates the list of described web page tag ID;
Size according to described web page tag ID list and web page tag micro image window determines the size of described webpage capture, generating web page label micro image;
It is described that by described web page tag micro image, the step be carried in described web page tag micro image window comprises:
According to the position of mouse, obtain the ID of current web page label corresponding to mouse;
According to the size of the described web page tag micro image determined and the ID of described current web page label, load the micro image of current web page label with highlighting, and load the non-web page tag chosen in described web page tag micro image window according to the list of described web page tag ID.
Preferably, also comprise:
Timer is set, according to web page tag micro image described in described timer timing acquisition, and upgrades display web page label micro image window and wherein corresponding web page tag micro image.
For solving the problem, the invention also discloses a kind of micro image display device of web page tag, comprising:
Web page tag micro image window display module, reaches the schedule time for mouse-over in current web page label place, triggers display web page label micro image window;
Web page tag micro image acquisition module, for obtaining the page screenshot of web page tag in browser, generates its web page tag micro image;
Web page tag micro image load-on module, for being carried in described web page tag micro image in described web page tag micro image window.
Preferably, described label micro image window display module comprises:
Coordinate acquiring unit, for obtaining the coordinate position of browsing device net page label; According to the coordinate position of described web page tag, offset downward the coordinate position generating pop-up window;
Window display unit, according to the coordinate position of above-mentioned generation, generates pop-up window based on browser main window as web page tag micro image window.
Preferably, described web page tag micro image acquisition module also comprises:
First acquiring unit, generates corresponding web page tag micro image for obtaining with the page screenshot of current at least one web page tag choosing web page tag adjacent;
Described web page tag micro image load-on module also comprises:
First loading unit, for being carried in described at least one adjacent web page tag micro image in described web page tag micro image window.
Preferably, described web page tag micro image acquisition module comprises further:
Second acquisition unit, for obtaining the current page screenshot generating web page label micro image choosing web page tag;
Described web page tag micro image load-on module comprises further:
Second loading unit, for being carried in described web page tag micro image window by the described current web page tag micro image of web page tag of choosing, the described current micro image of web page tag of choosing is selected in web page tag micro image window.
Preferably, also comprise:
Micro image synchronization module, for reaching the schedule time, the web page tag micro image synchronous change in described web page tag micro image window when mouse slides and hovers between at least one web page tag described.
Preferably, also comprise:
Synchronous preview module, for when at least one web page tag micro image described in mouse is in web page tag micro image window is slided, the web page tag page of the web page tag micro image of the current correspondence of synchronous preview mouse in browser window.
Preferably, also comprise:
Micro image closing module, for leaving the viewing area of web page tag micro image window when mouse, described web page tag micro image close, described browser window recovers the page of the current web page tag chosen of display.
Preferably, also comprise in described web page tag micro image window: the X button corresponding with described web page tag micro image;
Described device also comprises:
Micro image removes module, and for when user clicks described X button, the web page tag micro image of correspondence removed from described web page tag micro image window, the page of the web page tag that described web page tag micro image is corresponding is closed in a browser.
Preferably, also comprise in described web page tag micro image window corresponding with web page tag micro image
Collection button and/or
Save button and/or
Add the navigation button and/or
Broadcast button and/or
Download button;
Described device also comprises:
Button commands processing module, for when user clicks described button, performs corresponding collection to the page of web page tag corresponding to described web page tag micro image and/or preserves and/or add navigation and/or play and/or down operation.
Preferably, also comprise:
Scroll button generation module, for exceeding predetermined quantity when the web page tag micro image in described web page tag micro image window, left and right scroll button is generated, with web page tag micro image in web page tag micro image window described in roll display in described web page tag micro image window.
Preferably, described web page tag micro image acquisition module comprises further:
3rd acquiring unit, for getting the page screenshot of browser labels page according to OleDraw function; The ID of web page tag in browser is set, and generates the list of described web page tag ID; Size according to described web page tag ID list and web page tag micro image window determines the size of described webpage capture, generating web page label micro image;
Described web page tag micro image load-on module comprises further:
3rd loading unit, for the position according to mouse, obtains the ID of current web page label corresponding to mouse; According to the size of the described web page tag micro image determined and the ID of described current web page label, load the micro image of current web page label with highlighting, and load the non-web page tag chosen in described web page tag micro image window according to the list of described web page tag ID.
Preferably, also comprise:
Update module, for according to preset timer timing acquisition described in web page tag micro image, and upgrade display web page label micro image window and wherein correspondence web page tag micro image.
Compared with prior art, the present invention includes following advantage:
When considering that user opens multiple web page tag accessed web page based on existing browser simultaneously, because the website information similarity between webpage is very high, therefore, even if also easily obscured by prompting display network address in web page tag micro image window, the content fast and effeciently identified in web page tag is difficult to.For the problems referred to above, the present invention proposes: when user's mouse-over reaches the schedule time in current web page label place, triggers display web page label micro image window; By obtaining the page screenshot generating web page label micro image of web page tag, and described web page tag micro image is carried in described web page tag micro image window, because described web page tag micro image is exactly the complete of the web page tag page or part mapping, it is only the change of displaying ratio size, therefore, the content of the web page tag page that user can be known rapidly, intuitively by web page tag micro image, effectively improves recognition efficiency.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
With reference to Fig. 2, show the schematic flow sheet of the micro image display packing embodiment 1 of a kind of web page tag provided by the invention, the method for the present embodiment comprises the following steps:
Step 101, mouse-over reaches the schedule time in current web page label place, triggers display web page label micro image window.
Wherein, judge whether mouse reaches the schedule time in the hovering of current web page label place and specifically comprise:
The operating system of such as window class distributes mouse event can to the message processing function of window.Mouse moving each time in web page tag, web page tag can obtain the notice of mouse moving event, thus can judge the web page tag id at current mouse place.When mouse moves in a new web page tag, a timer is set, the schedule time being spaced apart mouse-over of timer.If when timer does not arrive the schedule time, mouse has moved in new web page tag, just resets timer.If mouse is also in same web page tag after a predetermined time, just think that mouse-over reaches predetermined time in same web page tag, at this moment just can trigger display web page label micro image window.
Described web page tag micro image window is a pop-up window, such as, can be the pop-up window with ws_popup style.The position of described web page tag micro image window display can be the optional position in browser window, only otherwise affect user operation, such as, can be below mouse, the left side of browser window, right side or bottom side etc.
In another preferred embodiment of the present invention, described triggering display web page label micro image window comprises:
Obtain the coordinate position of browsing device net page label; According to the coordinate position of described web page tag, offset downward the coordinate position generating pop-up window; According to the coordinate position of above-mentioned generation, generate pop-up window based on browser main window as web page tag micro image window.
Select at the lower-left deviation post of web page tag with the mode generating web page label micro image window of pop-up window, web page tag micro image window and web page tag and mouse can be made like this to keep relatively-stationary position, be convenient to user and check web page tag micro image window fast, namely the viewing area at web page tag title place can not be blocked, also can not produce any impact to user operation web page tag, user can be made to obtain best operating experience.
Step 102, obtains the page screenshot of web page tag in browser, generates its web page tag micro image.
The page screenshot that the interface provided by operating system, browser or third party's program obtains web page tag assigned address in browser generates micro image.
For microsoft operation system, IE kernel supports graphic interface:
OleDraw(IUnknown*pUnk,DWORDdwAspect,HDChdcDraw,LPCRECTlprcBounds)
Wherein, the implication of each parameter is as follows:
The com interface that pUnk:IE kernel provides: IHTMLDocument2;
DwAspect: the type of drafting;
HdcDraw: the device context handle receiving drawing result;
LprcBounds: specify the page rectangular area coordinate that will draw.
The page screenshot of web page tag in described acquisition browser, the process generating its web page tag micro image specifically comprises: to the browser comprising multiple web page tag page, each web page tag page provides com interface, by being delivered to inside interface OleDraw by the com interface of the page, the page screenshot of the web page tag page at assigned address just can be got; Then the ID of web page tag in browser is set, and generates the list of described web page tag ID; Size according to described web page tag ID list and web page tag micro image window determines the size of described webpage capture, generating web page label micro image.
Step 103, is carried in described web page tag micro image in described web page tag micro image window.
Specifically comprise: according to the position of mouse, obtain the ID of current web page label corresponding to mouse; According to the size of the described web page tag micro image determined and the ID of described current web page label, load the micro image of current web page label with highlighting, and load the non-web page tag chosen in described web page tag micro image window according to the list of described web page tag ID.
The message processing function of web page tag micro image window monitors process drawing message wm_paint, after receiving this message, web page tag micro image is plotted in web page tag micro image window object dc by the GDI function of call operation system.
Further, the heading message of web page tag can be plotted in web page tag micro image window, by while the title of display web page label and page screenshot to improve user further to the recognition effect of web page tag content.
With reference to Fig. 3, show the schematic flow sheet of a kind of browsing device net page tag displaying method embodiment 2 provided by the invention, the method for the present embodiment comprises the following steps:
Step 301, when mouse-over reaches the schedule time in current web page label place, according to the coordinate position of browsing device net page label, offsets downward the pop-up window that generates based on browser main window as the micro image window of web page tag.
Step 302, obtains and generates corresponding web page tag micro image with the page screenshot of current at least one web page tag choosing web page tag adjacent.
Namely may be the different web pages belonging to same website with the current web page tag choosing web page tag adjacent, also may be the different web pages from different web sites.
Step 303, is carried in described at least one adjacent web page tag micro image in described web page tag micro image window.
Wherein, step 302,303 can comprise further: obtain the current page screenshot generating web page label micro image choosing web page tag; Be carried in described web page tag micro image window by the described current web page tag micro image of web page tag of choosing, the described current micro image of web page tag of choosing is selected in web page tag micro image window.
User is when using web page tag to browse webpage, often open multiple web page tag simultaneously and browse different webpages, operate for the convenience of the user, after triggering demonstrates web page tag micro image window, the current page screenshot generating web page label micro image of web page tag and adjacent multiple web page tag of choosing is carried in web page tag micro image window.
Such as, with current web page tag of choosing for benchmark, by each 2 web page tag adjacent for left and right, the web page tag micro image loaded and displayed of totally 5 continuous web page tag is in web page tag micro image window, and this process specifically comprises:
First, a unique web page tag id is bound to each web page tag; According to mouse position, obtain the web page tag id below mouse.Browser safeguards a web page tag id list according to the tandem of web page tag, according to this part of list, can inquire about 5 adjacent web page tag id.
Secondly, because each web page tag page associates with a web page tag id, therefore by each web page tag id, corresponding web page tag page data can be obtained.Similar with the flow process of single web page tag display micro image, obtain the position of micro image according to web page tag position, in web page tag micro image window, then load the content of micro image according to web page tag title and web page tag page screenshot.Wherein, the micro image that the current web page tag chosen is corresponding in label micro image window is also selected state.
In another preferred embodiment of the present invention, described method comprises further: reach the schedule time, the web page tag micro image synchronous change in described web page tag micro image window when mouse slides and hovers between at least one web page tag described.
Be convenient to user to allow the micro image in web page tag micro image window and identify to have optimal display result, we need to control the quantity of the web page tag micro image loaded in window and size.As mentioned above, selecting to comprise the current micro image of continuous 5 web page tag of web page tag of choosing is carried in micro image window, so, when the quantity of web page tag in browser is more than 5, along with mouse slides in web page tag, in web page tag micro image window, micro image also does synchronous change, is always best to control the quantity of micro image, size and display effect.Certainly, when implementing of the present invention, the number of the web page tag micro image shown in web page tag micro image window can be decided in its sole discretion by those skilled in the art, and the present invention is not restricted this, as long as meet the object that user easily identifies web page tag content.
In another preferred embodiment of the present invention, described method comprises further: when at least one web page tag micro image described in mouse is in web page tag micro image window is slided, the web page tag page of the web page tag micro image of the current correspondence of synchronous preview mouse in browser window.
Current micro image in browser window in synchronous preview web page tag micro image window, is convenient to the content that user checks current micro image more intuitively, further increases the recognition efficiency to web page tag.
In another preferred embodiment of the present invention, described method comprises further: when mouse moves away the viewing area of web page tag micro image window, described web page tag micro image close, described browser window recovers the page of the current web page tag chosen of display.
Specifically: when mouse leaves the viewing area of web page tag micro image or web page tag micro image window, window events process function can receive WM_MOUSELEAVE message, at this moment according to the current window choosing the web page tag id of the web page tag page to find the corresponding web page tag page, the api:SetWindowPos of calling system, is arranged by parameter SWP_SHOWWINDOW and recovers the current web page tag page window chosen of display.When certain label page of mark hidden by needs, call same api, Transfer Parameters SWP_HIDEWINDOW hidden page window.
Wherein, in browser window, the process of preview display web page labels page is exactly the overall sectional drawing by obtaining the web page tag page, and this overall sectional drawing drafting is presented in browser window.Because preview in browser window shows the content of the complete page of web page tag, therefore, user directly can carry out preview and identification to the content of web page tag accordingly.
Step 304, X button corresponding to described web page tag micro image is comprised at described web page tag micro image window, when user clicks described X button, the web page tag micro image of correspondence removed from described web page tag micro image window, the page of the web page tag that described web page tag micro image is corresponding is closed in a browser.
User is by web page tag micro image window, ' closedown ' button is clicked to close web page tag corresponding in web page tag micro image and browser window while checking web page tag micro image, and need not turn back in browser window web page tag is operated, simplify operating process, improve the convenience of user operation.Further, described X button also ' closes same group ' button, for cutting out a certain class/mono-group micro image and corresponding browser label in micro image window.
In another preferred embodiment of the present invention, also comprise in described web page tag micro image window: the collection button corresponding with web page tag micro image and/or save button and/or add the navigation button and/or broadcast button and/or download button;
Described method also comprises: when user clicks described button, performs corresponding collection and/or preserve and/or add navigation and/or play and/or down operation the page of web page tag corresponding to described web page tag micro image.
In another preferred embodiment of the present invention, described method also comprises: if the web page tag micro image in described web page tag micro image window exceeds predetermined quantity, left and right scroll button is generated, with web page tag micro image in web page tag micro image window described in roll display in described web page tag micro image window.
In micro image window, best displaying ratio and effect is had in order to allow web page tag micro image, be convenient to user check, we have preset the display number of label micro image, when needing the web page tag micro image of display to exceed this predetermined number, the micro image being shown as predetermined number is still controlled in micro image window, but left and right scroll button can be shown, with other web page tag micro image in web page tag micro image window described in roll display simultaneously.
Step 305, arranges timer, according to web page tag micro image described in described timer timing acquisition, and upgrades display web page label micro image window and wherein corresponding web page tag micro image.
This step is optional step, the content of micro image can be kept synchronized update at any time with the content of corresponding web page tag by periodic refreshing web page tag micro image, improves the accuracy that user identifies.
Above the display packing of a kind of web page tag micro image provided by the present invention is described, referring to the content of said method embodiment, device of the present invention is described:
With reference to Fig. 4, Fig. 4 shows the structural representation of the treating apparatus of a kind of favorites data of the present invention, described device comprises: web page tag micro image window display module 410, reaches the schedule time for mouse-over in current web page label place, triggers display web page label micro image window;
Web page tag micro image acquisition module 420, for obtaining the page screenshot of web page tag in browser, generates its web page tag micro image;
Web page tag micro image load-on module 430, for being carried in described web page tag micro image in described web page tag micro image window.
Preferably, described label micro image window display module 410 comprises:
Coordinate acquiring unit 411, for obtaining the coordinate position of browsing device net page label; According to the coordinate position of described web page tag, offset downward the coordinate position generating pop-up window;
Window display unit 412, according to the coordinate position of above-mentioned generation, generates pop-up window based on browser main window as web page tag micro image window.
Preferably, described web page tag micro image acquisition module 420 also comprises:
First acquiring unit 421, generates corresponding web page tag micro image for obtaining with the page screenshot of current at least one web page tag choosing web page tag adjacent;
Described web page tag micro image load-on module 430 also comprises:
First loading unit 431, for being carried in described at least one adjacent web page tag micro image in described web page tag micro image window.
Preferably, described web page tag micro image acquisition module 420 comprises further:
Second acquisition unit 422, for obtaining the current page screenshot generating web page label micro image choosing web page tag;
Described web page tag micro image load-on module 430 comprises further:
Second loading unit 432, for being carried in described web page tag micro image window by the described current web page tag micro image of web page tag of choosing, the described current micro image of web page tag of choosing is selected in web page tag micro image window.
Preferably, described device also comprises:
Micro image synchronization module 440, for reaching the schedule time, the web page tag micro image synchronous change in described web page tag micro image window when mouse slides and hovers between at least one web page tag described.
Preferably, described device also comprises:
Synchronous preview module 450, for when at least one web page tag micro image described in mouse is in web page tag micro image window is slided, the web page tag page of the web page tag micro image of the current correspondence of synchronous preview mouse in browser window.
Preferably, described device also comprises:
Micro image closing module 460, for leaving the viewing area of web page tag micro image window when mouse, described web page tag micro image close, described browser window recovers the page of the current web page tag chosen of display.
Preferably, also comprise in described web page tag micro image window: the X button corresponding with described web page tag micro image;
Described device also comprises:
Micro image removes module 470, and for when user clicks described X button, the web page tag micro image of correspondence removed from described web page tag micro image window, the page of the web page tag that described web page tag micro image is corresponding is closed in a browser.
Preferably, also comprise in described web page tag micro image window corresponding with web page tag micro image
Collection button and/or
Save button and/or
Add the navigation button and/or
Broadcast button and/or
Download button;
Described device also comprises:
Button commands processing module 480, for when user clicks described button, performs corresponding collection to the page of web page tag corresponding to described web page tag micro image and/or preserves and/or add navigation and/or play and/or down operation.
Preferably, described device also comprises:
Scroll button generation module 490, for exceeding predetermined quantity when the web page tag micro image in described web page tag micro image window, left and right scroll button is generated, with web page tag micro image in web page tag micro image window described in roll display in described web page tag micro image window.
Preferably, described web page tag micro image acquisition module 420 comprises further:
3rd acquiring unit 423, for getting the page screenshot of browser labels page according to OleDraw function; The ID of web page tag in browser is set, and generates the list of described web page tag ID; Size according to described web page tag ID list and web page tag micro image window determines the size of described webpage capture, generating web page label micro image;
Described web page tag micro image load-on module 430 comprises further:
3rd loading unit 433, for the position according to mouse, obtains the ID of current web page label corresponding to mouse; According to the size of the described web page tag micro image determined and the ID of described current web page label, load the micro image of current web page label with highlighting, and load the non-web page tag chosen in described web page tag micro image window according to the list of described web page tag ID.
Preferably, described device also comprises:
Update module 510, for according to preset timer timing acquisition described in web page tag micro image, and upgrade display web page label micro image window and wherein correspondence web page tag micro image.
Method and apparatus in the invention described above embodiment is applicable in various network or client environment, such as can be implemented in the computer equipment of such as PC device and so on, or can be implemented in other portable electric appts such as such as mobile phone, mobile communication equipment, personal digital assistant (PDA) or non-portable electronic equipment.Therefore those skilled in the art want it is clear that; protection scope of the present invention is not limited to the web page tag micro image window function on PC in running browser, is only that the label micro image window function that have employed in embodiments of the present invention on PC in running browser is described for the succinct and convenient of description.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For system and/or device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.
And "and/or" above represents and both contained herein " with " relation, also contains the relation of "or", wherein: if option A and option b be " with " relation, then represent in certain embodiment can comprise option A and option b simultaneously; If option A and option b are the relations of "or", then represent in certain embodiment and can comprise option A separately, or comprise option b separately.
Above to micro image display packing and the device of a kind of web page tag provided by the present invention, be described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.