CN102915334B - picture display processing method and corresponding browser - Google Patents

picture display processing method and corresponding browser Download PDF

Info

Publication number
CN102915334B
CN102915334B CN201210344227.9A CN201210344227A CN102915334B CN 102915334 B CN102915334 B CN 102915334B CN 201210344227 A CN201210344227 A CN 201210344227A CN 102915334 B CN102915334 B CN 102915334B
Authority
CN
China
Prior art keywords
picture
mark zone
mark
display
setting
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
CN201210344227.9A
Other languages
Chinese (zh)
Other versions
CN102915334A (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.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Dongjing Computer Technology 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 Guangzhou Dongjing Computer Technology Co Ltd filed Critical Guangzhou Dongjing Computer Technology Co Ltd
Priority to CN201210344227.9A priority Critical patent/CN102915334B/en
Publication of CN102915334A publication Critical patent/CN102915334A/en
Application granted granted Critical
Publication of CN102915334B publication Critical patent/CN102915334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of picture display processing method and corresponding browser, the method comprises: set up the mark zone without whether Showing Picture under chart-pattern; In browsing device net page resolving, when resolving picture tag, obtain the setting of picture display mode, when without chart-pattern, further the state of mark zone is judged, if be set to the mark of display setting picture, then obtain and show and set picture accordingly; If be set to the mark of not display setting picture, then do not obtain or show and set picture accordingly.The present invention both can realize automatically showing identifying code picture without under chart-pattern, can not affect again the analyzing efficiency of webpage because identifying identifying code picture.

Description

Picture display processing method and corresponding browser
Technical field
The present invention relates to mobile communication technology field, particularly relate to a kind of picture display processing method and corresponding browser.
Background technology
From the angle of saving network flow and battery electric quantity, current most of mobile browser is all the function that user provides without chart-pattern.Without under chart-pattern, all pictures in webpage all can not show.But when there is identifying code picture in webpage, this pattern there will be following deficiency:
If 1 user opens without chart-pattern, then identifying code picture also can not show, and now has a strong impact on the further operation of user.
2, user is in order to show identifying code, has to be switched to chart-pattern from without chart-pattern, and other all picture now in webpage also will show together, and these pictures are not user wants, and consumes flow and the electricity of user.
3, when user uses identifying code picture, when continuing to open other webpage, in order to save flow, user from there being chart-pattern to be switched to without chart-pattern, adding operation, reducing Consumer's Experience again.
Summary of the invention
The features and advantages of the present invention are partly stated in the following description, or can be apparent from this description, or learn by putting into practice the present invention.
For overcoming the problem of prior art, the invention provides a kind of picture display processing method and corresponding browser, can realize automatically showing identifying code picture without under chart-pattern, user-friendly, improve Consumer's Experience.
It is as follows that the present invention solves the problems of the technologies described above adopted technical scheme:
According to an aspect of the present invention, a kind of picture display processing method is provided, comprises:
Set up the mark zone without whether display setting picture under chart-pattern;
In browsing device net page resolving, when resolving picture tag, obtain the setting of picture display mode, when picture display mode is set to without chart-pattern, further the state of mark zone is judged, if the state of mark zone is set to the mark of display setting picture, then obtains and show and set picture accordingly; If the state of mark zone is set to the mark of not display setting picture, does not then obtain or show and set picture accordingly.
According to one embodiment of present invention, described setting picture is the picture in list, and described comprising before resolving picture tag carries out form tags parsing, when being resolved to form tags, the state of mark zone is set to the mark of the picture shown in list; At the end of form tags is resolved, the state of mark zone is set to the mark of the picture do not shown in list.
According to one embodiment of present invention, mark zone is built up in the public data area of web analysis module, and described setting picture is the identifying code picture in list.
According to one embodiment of present invention, mark zone adopts the variable of Boolean type, is set to true time in mark zone, represents display setting picture; Be set to fictitious time in mark zone, represent not display setting picture.
According to one embodiment of present invention, in browsing device net page resolving, when resolving picture tag, obtaining the setting of picture display mode, when picture display mode is set to display pictorial mode, obtains and show corresponding picture.
According to another aspect of the present invention, a kind of browser is provided, comprises:
Browser arranges module, for arranging picture display mode;
Web analysis module, wherein sets up the mark zone without whether display setting picture under chart-pattern; Web analysis module is in browsing device net page resolving, when resolving picture tag, obtain the setting that browser arranges picture display mode in module, when picture display mode is set to without chart-pattern, further the state of mark zone is judged, if the state of mark zone is set to the mark of display setting picture, then obtains and show and set picture accordingly; If the state of mark zone is set to the mark do not Showed Picture, does not then obtain or show and set picture accordingly.
According to one embodiment of present invention, described setting picture is the picture in list, web analysis module comprises and carries out form tags parsing before resolving picture tag, when being resolved to form tags, the state of mark zone is set to the mark of the picture shown in list; At the end of form tags is resolved, the state of mark zone is set to the mark of the picture do not shown in list.
According to one embodiment of present invention, the described mark zone set up in web analysis module is built up in the public data area of web analysis module, and described setting picture is the identifying code picture in list.
According to one embodiment of present invention, the mark zone set up in web analysis module adopts the variable of Boolean type, is set to true time in mark zone, represents display setting picture; Be set to fictitious time in mark zone, represent not display setting picture.
According to one embodiment of present invention, web analysis module is in browsing device net page resolving, when resolving picture tag, obtain the setting that browser arranges picture display mode in module, when picture display mode is set to display pictorial mode, obtains and show corresponding picture.
As can be seen from technique scheme, the invention provides in the determination methods without whether display setting picture under chart-pattern, for providing possibility without display setting picture automatic under chart-pattern.Utilize method of the present invention, without under chart-pattern, browser can automatically according to marker recognition to the such as identifying code picture of the setting picture in webpage, and show these pictures, other picture does not then show.User without the identifying code picture seen under chart-pattern in webpage, and can see chart-pattern without the need to manual switchover, also without the need to showing non-authentication code picture, significantly enhances the Consumer's Experience without chart-pattern.The present invention is simply efficient, has both achieved and has automatically shown identifying code picture without under chart-pattern, the analyzing efficiency that can not affect webpage because needing to identify identifying code picture again.
By reading instructions, those of ordinary skill in the art will understand the characteristic sum content of these technical schemes better.
Accompanying drawing explanation
Below by with reference to accompanying drawing describe the present invention particularly in conjunction with example, advantage of the present invention and implementation will be more obvious, wherein content shown in accompanying drawing is only for explanation of the present invention, and does not form restriction of going up in all senses of the present invention, in the accompanying drawings:
Fig. 1 is that the embodiment of the present invention is without the mark setting procedure figure Showed Picture under chart-pattern;
Fig. 2 is that the embodiment of the present invention is without the tag application process flow diagram Showed Picture under chart-pattern;
Fig. 3 is embodiment of the present invention web analysis process flow diagram flow chart;
Fig. 4 is the structural relation figure of each module of embodiment of the present invention browser;
Fig. 5 a be mobile phone Taobao enrollment page in the prior art without the interface schematic diagram that can not show identifying code picture under chart-pattern;
Fig. 5 b is that mobile phone Taobao enrollment page is at the interface schematic diagram without showing identifying code picture under chart-pattern of the present invention;
Fig. 6 a be skill dragon net enrollment page in the prior art without the interface schematic diagram that can not show identifying code picture under chart-pattern;
Fig. 6 b is that skill dragon net enrollment page is at the interface schematic diagram without showing identifying code picture under chart-pattern of the present invention.
Embodiment
As shown in Figure 1 to Figure 3, for realizing the function without automatic display setting picture such as identifying code picture under chart-pattern, the analyzing efficiency not affecting webpage because of needing to identify identifying code picture again, the present invention provide firstly in the determination methods without whether display setting picture under chart-pattern, for providing possibility without display setting picture automatic under chart-pattern.
The picture display processing method that the embodiment of the present invention provides, comprising:
Set up the mark zone without whether display setting picture under chart-pattern;
In browsing device net page resolving, when resolving picture tag, obtain the setting of picture display mode, when picture display mode is set to without chart-pattern, further the state of mark zone is judged, if the state of mark zone is set to the mark of display setting picture, then obtains and show and set picture accordingly; If the state of mark zone is set to the mark of not display setting picture, does not then obtain or show and set picture accordingly.
As long as consider the picture in web form control, very large probability is identifying code picture, and therefore, the present invention, without under chart-pattern, when list picture being detected, then shows; Non-list picture does not then show.Therefore, in browsing device net page resolving, when form tags starts to resolve, the state of mark zone is set to the mark Showed Picture; At the end of form tags is resolved, the state of mark zone is set to the mark do not Showed Picture.
Preferably, mark zone can be built up in the public data area of web analysis module.Mark zone can adopt the variable of Boolean type, is set to true time in mark zone, represents display setting picture; Be set to fictitious time in mark zone, represent not display setting picture.
In addition, in browsing device net page resolving, when resolving picture tag, obtaining the setting of picture display mode, when picture display mode is set to display pictorial mode, obtains and show corresponding picture.
Introduce the concrete technical scheme of the embodiment of the present invention below more in detail:
Web form control is generally mainly used in image data, and it comprises the URL of program of input domain (as account, password, identifying code input frame etc.), submit button, processing list forms data.Because identifying code picture is generally used for submission of sheet, therefore, as long as the picture in web form control, very large probability is identifying code picture.Therefore, the present invention, without under chart-pattern, when list picture being detected, then shows; Detect that non-list picture does not then show.Adopt this thinking, although the non-authentication code picture in list also can be shown, in list, occur that the probability of non-authentication code picture is minimum, even and if occur, the size of non-authentication code picture is also very little, very little to the loss of customer flow.
In web analysis process, resolving using the document (html text flow) of html language compilation according to html grammer, generating document object tree.The object that a label correspondence one in webpage is basic, if be nested with picture tag in form tags, then can resolve picture tag in the process of resolving form tags.
The parsing of form tags belongs to a part for web analysis, is responsible for by web analysis module.In web analysis process, read web page text character one by one, and according to the opening and closing mark of label and tag name, confirm the type of the beginning that label is resolved and end and label.Can arrange a mark zone in the public data area of web analysis module, this mark zone can adopt the variable of Boolean type, identifies the need of without showing identifying code picture under chart-pattern.Be in if current without chart-pattern, then when form tags resolves beginning, be true (true) by this Boolean variable assignments, mark picture is showing without needing under chart-pattern, at the end of form tags is resolved, be false (false) by this Boolean variable assignments, mark picture is showing without not needing under chart-pattern.
Fig. 1 be the embodiment of the present invention without the mark setting procedure figure Showed Picture under chart-pattern, comprise the following steps:
S101: form tags is resolved and started;
S102: the mark state of mark zone being set to display setting picture, namely arranges and is labeled as very;
S103: form tags is resolved and terminated;
S104: the mark state of mark zone being set to not display setting picture, namely arranges and is labeled as vacation.
The parsing of picture tag is also responsible for by web analysis module, when reading html text character stream, when running into label " img " by name, starts to resolve picture tag.When resolving picture tag, being in if current without chart-pattern, then judging whether the state of above-mentioned mark zone is set to the mark of display setting picture, if so, then Showing Picture by there being the flow process of chart-pattern to obtain; Otherwise, acquisition Graphics Processing is not done to this picture.
Fig. 2 be the embodiment of the present invention without the tag application process flow diagram Showed Picture under chart-pattern, specifically describe as follows:
S201: picture tag is resolved and started;
S202: whether the state in judge mark district is set to the mark (namely marking whether to be true) Showed Picture, and if so, then performs S203, otherwise, perform S204;
S203: obtain this setting picture of display;
S204: do not obtain this setting picture of display.
Below the whole flow process of web analysis process is described in detail, as shown in Figure 3:
S301: web analysis starts;
S302: form tags is resolved and started, and the state of mark zone is set to the mark Showed Picture, is namely set to true;
S303: picture tag is resolved and started;
S304: whether show according to the facilities obtained and mark situation determination identifying code picture;
If display pictorial mode (namely having chart-pattern), then directly obtain and show corresponding picture; If without chart-pattern, then further the state of mark zone is judged, if the state of mark zone is set to the mark (being namely set to true) of display setting picture, then obtains and show corresponding picture; If the state of mark zone is set to the mark (being namely set to vacation) of not display setting picture, does not then obtain or show corresponding picture.
S305: picture tag is resolved and terminated;
S306: form tags is resolved and terminated, and the state of mark zone is set to the mark (being namely set to vacation) of not display setting picture;
S307: web analysis terminates.
The embodiment of the present invention is by setting up the mark zone without whether display setting picture under chart-pattern, when picture display mode is set to without chart-pattern, further the state of mark zone is judged, if the state of mark zone is set to the mark of display setting picture, then obtains and show and set picture accordingly; If the state of mark zone is set to the mark of not display setting picture, does not then obtain or show and set picture accordingly.This provides in the determination methods without whether display setting picture under chart-pattern, for providing possibility without display setting picture automatic under chart-pattern.Further, when form tags starts to resolve, the state of mark zone is set to the mark of display setting picture; At the end of form tags is resolved, the state of mark zone is set to the mark of not display setting picture, like this, can show these picture according to marker recognition to the identifying code picture in webpage without automatic under chart-pattern, other picture does not then show.Utilize the present invention, user can without the identifying code picture seen under chart-pattern in webpage, and see chart-pattern without the need to manual switchover, also without the need to showing non-authentication code picture, significantly enhance the Consumer's Experience without chart-pattern, both achieved and automatically shown identifying code picture without under chart-pattern, the analyzing efficiency that can not affect webpage because needing to identify identifying code picture again.
As shown in Figure 4, the embodiment of the present invention provides a kind of browser simultaneously, comprising:
Browser arranges module 10, for arranging picture display mode;
Web analysis module 20, wherein sets up the mark zone without whether display setting picture under chart-pattern in the public data area of web analysis module 20; Web analysis module 20 is in browsing device net page resolving, when resolving picture tag, obtain the setting that browser arranges picture display mode in module 10, when picture display mode is set to without chart-pattern, further the state of mark zone is judged, if the state of mark zone is set to the mark of display setting picture, then obtains and show and set picture accordingly; If the state of mark zone is set to the mark of not display setting picture, does not then obtain or show and set picture accordingly.
Described setting picture is the picture in list, web analysis module 20 is in browsing device net page resolving, comprise before picture tag is resolved and carry out form tags parsing, when being resolved to form tags, the state of mark zone is set to the mark of the picture shown in list; At the end of form tags is resolved, the state of mark zone is set to the mark of the picture do not shown in list.
Preferably, mark zone is built up in the public data area of web analysis module 20.The mark zone set up in web analysis module 20 can adopt the variable of Boolean type, is set to true time in mark zone, represents display setting picture; Be set to fictitious time in mark zone, represent not display setting picture.
Web analysis module 20 is in browsing device net page resolving, when resolving picture tag, obtain the setting that browser arranges picture display mode in module 10, when picture display mode is set to display pictorial mode, obtains and show corresponding picture.
More specifically mutual see the description in method flow between above-mentioned module, repeats no more herein.
As follows without the example showing identifying code picture under chart-pattern: Fig. 5 a be mobile phone Taobao enrollment page in the prior art without the interface schematic diagram that can not show identifying code picture under chart-pattern; Fig. 5 b is that mobile phone Taobao enrollment page is at the interface schematic diagram without showing identifying code picture under chart-pattern of the present invention; Fig. 6 a be skill dragon net enrollment page in the prior art without the interface schematic diagram that can not show identifying code picture under chart-pattern; Fig. 6 b is that skill dragon net enrollment page is at the interface schematic diagram without showing identifying code picture under chart-pattern of the present invention.
Can see, before use technical scheme of the present invention, the identifying code picture in these pages all cannot show without under chart-pattern; After using technical scheme of the present invention, without under chart-pattern, the identifying code picture in the page can normally show, and other picture does not then show.
Above with reference to the accompanying drawings of the preferred embodiments of the present invention, those skilled in the art do not depart from the scope and spirit of the present invention, and multiple flexible program can be had to realize the present invention.For example, to illustrate as the part of an embodiment or the feature that describes can be used for another embodiment to obtain another embodiment.These are only the better feasible embodiment of the present invention, not thereby limit to interest field of the present invention that the equivalence change that all utilizations instructions of the present invention and accompanying drawing content are done all is contained within interest field of the present invention.

Claims (8)

1. a picture display processing method, is characterized in that, comprising:
Set up the mark zone without whether display setting picture under chart-pattern;
In browsing device net page resolving, when resolving picture tag, obtain the setting of picture display mode, when picture display mode is set to without chart-pattern, further the state of described mark zone is judged, if the state of described mark zone is set to the mark of display setting picture, then obtains and show and set picture accordingly; If the state of described mark zone is set to the mark of not display setting picture, does not then obtain or show and set picture accordingly;
Described setting picture is the picture in list, and described comprising before resolving picture tag carries out form tags parsing, when being resolved to form tags, the state of described mark zone is set to the mark of the picture shown in list; At the end of form tags is resolved, the state of described mark zone is set to the mark of the picture do not shown in list.
2. picture display processing method according to claim 1, is characterized in that, described mark zone is built up in the public data area of web analysis module, and described setting picture is the identifying code picture in list.
3. picture display processing method according to claim 2, is characterized in that, described mark zone adopts the variable of Boolean type, is set to true time in described mark zone, represents display setting picture; Be set to fictitious time in described mark zone, represent not display setting picture.
4. picture display processing method according to claim 1, it is characterized in that, in browsing device net page resolving, when resolving picture tag, obtain the setting of picture display mode, when picture display mode is set to display pictorial mode, obtains and show corresponding picture.
5. a browser, is characterized in that, comprising:
Browser arranges module, for arranging picture display mode;
Web analysis module, wherein sets up the mark zone without whether display setting picture under chart-pattern; Described web analysis module is in browsing device net page resolving, when resolving picture tag, obtain the setting that described browser arranges picture display mode in module, when picture display mode is set to without chart-pattern, further the state of described mark zone is judged, if the state of described mark zone is set to the mark of display setting picture, then obtains and show and set picture accordingly; If the state of described mark zone is set to the mark of not display setting picture, does not then obtain or show and set picture accordingly;
Described setting picture is the picture in list, and described web analysis module comprises and carries out form tags parsing before resolving picture tag, when being resolved to form tags, the state of described mark zone is set to the mark of the picture shown in list; At the end of form tags is resolved, the state of described mark zone is set to the mark of the picture do not shown in list.
6. browser according to claim 5, is characterized in that, the described mark zone set up in described web analysis module is built up in the public data area of described web analysis module, and described setting picture is the identifying code picture in list.
7. browser according to claim 6, is characterized in that, the described mark zone set up in described web analysis module adopts the variable of Boolean type, is set to true time in described mark zone, represents display setting picture; Be set to fictitious time in described mark zone, represent not display setting picture.
8. browser according to claim 5, it is characterized in that, described web analysis module is in browsing device net page resolving, when resolving picture tag, obtain the setting that described browser arranges picture display mode in module, when picture display mode is set to display pictorial mode, obtains and show corresponding picture.
CN201210344227.9A 2012-09-17 2012-09-17 picture display processing method and corresponding browser Active CN102915334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210344227.9A CN102915334B (en) 2012-09-17 2012-09-17 picture display processing method and corresponding browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210344227.9A CN102915334B (en) 2012-09-17 2012-09-17 picture display processing method and corresponding browser

Publications (2)

Publication Number Publication Date
CN102915334A CN102915334A (en) 2013-02-06
CN102915334B true CN102915334B (en) 2015-09-16

Family

ID=47613701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210344227.9A Active CN102915334B (en) 2012-09-17 2012-09-17 picture display processing method and corresponding browser

Country Status (1)

Country Link
CN (1) CN102915334B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182430A (en) * 2013-05-28 2014-12-03 腾讯科技(深圳)有限公司 Method and device for displaying image in text message
CN105630524B (en) * 2014-10-31 2019-04-12 广州市动景计算机科技有限公司 Web page text analytic method, device and mobile terminal
CN106446123A (en) * 2016-09-19 2017-02-22 成都知道创宇信息技术有限公司 Webpage verification code element identification method
CN107894906B (en) * 2016-09-30 2021-07-02 阿里巴巴(中国)有限公司 Page picture loading method and device, terminal device and server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102054253A (en) * 2010-12-31 2011-05-11 东莞市信誉通计算机科技有限公司 Integrated commodity record querying machine based on system network
CN102650990A (en) * 2011-02-24 2012-08-29 中兴通讯股份有限公司 Terminal webpage display method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102054253A (en) * 2010-12-31 2011-05-11 东莞市信誉通计算机科技有限公司 Integrated commodity record querying machine based on system network
CN102650990A (en) * 2011-02-24 2012-08-29 中兴通讯股份有限公司 Terminal webpage display method and system

Also Published As

Publication number Publication date
CN102915334A (en) 2013-02-06

Similar Documents

Publication Publication Date Title
US11403364B2 (en) Method and terminal device for extracting web page content
CN102591954B (en) A kind of browser data load method and device
CN106708496B (en) Processing method and device for label page in graphical interface
US9811510B2 (en) Method and apparatus for sharing part of web page
CN104182430A (en) Method and device for displaying image in text message
CN101807192B (en) Webpage optical character recognition processing method used for mobile communication equipment terminal
CN102915334B (en) picture display processing method and corresponding browser
WO2018000626A1 (en) Television-based webpage browsing control method and related device
CN102722551A (en) Intelligent switching method and system for browser kernels
CN103870486A (en) Webpage type confirming method and device
CN103209203A (en) Cross-platform application providing method and client
WO2014154033A1 (en) Method and apparatus for extracting web page content
CN103631506A (en) Reading method based on terminal and corresponding terminal
CN101963992A (en) Method and browser for increasing webpage display speed
CN111310750B (en) Information processing method, device, computing equipment and medium
CN103049193A (en) Method and device for implementing webpage turning by keys
US10140265B2 (en) Apparatuses and methods for phone number processing
CN104750864A (en) Universal text checking method
CN112800372B (en) Page loading method and device and electronic equipment
US20140098031A1 (en) Device and method for extracting data on a touch screen
CN104765630B (en) Software installation method and device
CN103366150A (en) Barcode recognition method for mobile terminal and mobile terminal
CN101373403B (en) Method for automatically generating and adding icon in address book by name card recognition technique
CN102708710B (en) E-book reader and working method thereof
CN103618958A (en) Method and device for inputting text information to television

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
TR01 Transfer of patent right

Effective date of registration: 20200416

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 2, 16, 301 rooms, 510665 Yun Yun Road, Tianhe District, Guangdong, Guangzhou

Patentee before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right