Method and device for displaying pictures in webpage in browser
A browser and picture technology, applied in program control devices, instruments, user interface execution and other directions, can solve the problems of small pixel size, incomplete display of picture content, and users unable to view clearly or completely.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0087] refer to figure 1 , which shows a schematic flowchart of a method for displaying pictures in a web page in a browser according to the present invention, which may specifically include:
[0088] Step 110, monitoring the mouse hover event on the picture element in the web page;
[0089] In practical applications, image elements in HTML documents are generally image tags Define the image element, whose prototype is roughly " ", src="image path", the image path is generally a website address, that is, URL (Universal Resource Locator), when the browser's rendering engine reads this code, it will download it from the image bed server corresponding to the URL The image is rendered; width="x" indicates the width of the image displayed on the webpage, height="y" indicates the height of the image displayed on the webpage, and the combination of width and height indicates the size of the image element; Alt setting is correct This picture text description. For the picture elem...
Embodiment 2
[0124] refer to figure 2 , which shows a schematic flowchart of a method for displaying pictures in a web page in a browser according to the present invention, which may specifically include:
[0125] Step 210, for the URL corresponding to the current webpage document, match the URL according to the URL matching rules constructed with regular expressions and / or the preset URL list; judge that the webpage document has pictures according to the matching result element's specific page;
[0126] Because the picture elements of many webpages do not possess substantive meaning, just pictures such as advertisements, brief introductions, for these webpages, if also start the follow-up steps of the present invention, can increase the resource that browser takes, in order to avoid this kind of situation, the present invention will The webpages opened by the browser are screened, and only the qualified webpages execute the follow-up process of the present invention.
[0127] The embod...
Embodiment 3
[0165] refer to image 3 , which shows a schematic flowchart of a method for displaying pictures in a web page in a browser according to the present invention, which may specifically include:
[0166] Step 310, according to the main website website matching rules constructed with regular expressions, judge whether the website is the website of the predetermined main website; if the website is the website of the predetermined main website, then enter step 312;
[0167] Step 312, judge whether the web page corresponding to the web address is a specific web page with image elements in the site according to the URL matching rules in the site constructed with regular expressions; if the web page corresponding to the URL is a specific web page with image elements in the site; Then enter step 314;
[0168] Step 314, filter the picture element belonging to one or more of the picture element of the advertisement node, the picture element of the navigation bar node, and the picture ele...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


