Method and device for displaying images in web page in browser
A browser and web technology, applied in program control devices, instruments, computing, etc., can solve problems such as users being unable to view clearly or completely, small pixel size, and incomplete picture content display.
- 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, its prototype is roughly "", src="image path", the image path is generally a URL, that is, URL (Uniform Resource Locator, Universal Resource Locator), when the rendering engine of the browser reads this code, it will download the image from the image bed server corresponding to the URL for rendering; width="x" indicates the width of the image displayed on the web page , height="y" indicates the height of the picture displayed on the webpage, and the combination of width and height indicates the size of the picture element; Alt sets the text description of this picture. For ima...
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 