Methods and systems for adjusting webpage layout
First Claim
1. A method for adjusting webpage layout, comprising:
- calculating a width for displaying an image on a webpage;
determining whether the image is inserted in a segment of text of the webpage, including checking whether a parent node of the image includes a label representing a paragraph of text;
adjusting a size of the image display based on a mobile terminal'"'"'s screen width and the width for displaying the image, if the image is inserted in the segment of text of the webpage, including;
setting a width of the image display to the mobile terminal'"'"'s screen width subtracting a fixed number of pixels, and setting a height of the image display based on the width of the image display; and
adding a label to the image display to force the image display to be left justified, while ignoring label attributes including at least one of text-align, indent, and margin.
3 Assignments
0 Petitions
Accused Products
Abstract
A method and system for adjusting webpage layout are disclosed. The method includes calculating a width for displaying an image on a webpage; determining whether the image is inserted in a segment of text of the webpage; and adjusting the size of the image display based on a mobile terminal'"'"'s screen width and the width for displaying the image, if the image is inserted in the segment of text of the webpage. The disclosed methods and systems adjust the images on a webpage based on the width of the image and the screen width of a mobile terminal. As such, an adjusted webpage can be viewed by scrolling up and down the display screen. In addition, a user'"'"'s online experience may be further improved by adjusting the images on the webpage to be left justified and aligned with the text on the page. A user does not need to scroll horizontally (e.g., from left to right) to read the webpage including the images.
20 Citations
17 Claims
-
1. A method for adjusting webpage layout, comprising:
-
calculating a width for displaying an image on a webpage; determining whether the image is inserted in a segment of text of the webpage, including checking whether a parent node of the image includes a label representing a paragraph of text; adjusting a size of the image display based on a mobile terminal'"'"'s screen width and the width for displaying the image, if the image is inserted in the segment of text of the webpage, including; setting a width of the image display to the mobile terminal'"'"'s screen width subtracting a fixed number of pixels, and setting a height of the image display based on the width of the image display; and adding a label to the image display to force the image display to be left justified, while ignoring label attributes including at least one of text-align, indent, and margin. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system for adjusting webpage layout, comprising one or more processors, memory, and one or more program units stored in the memory and to be executed by the one or more processors, the one or more program units comprising:
-
a calculation unit configured to calculate a width for displaying an image on a webpage; a first determination unit configured to determine whether the image is inserted in a segment of text of the webpage by checking whether a parent node of the image includes a label representing a paragraph of text; a size adjustment unit configured to adjust a size of the image display based on a mobile terminal'"'"'s screen width and the width for displaying the image, if the image is inserted in the segment of text of the webpage, wherein the size adjustment unit includes; a width adjustment module configured to set a width of the image display to the mobile terminal'"'"'s screen width subtracting a fixed number of pixels; and
a height adjustment module configured to set a height of the image display based on the width of the image display; anda label addition unit configured to add a label to the image display to force the image display to be left justified, while ignoring label attributes including at least one of text-align, indent, and margin. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A mobile terminal including a system for adjusting webpage layout, the system comprising one or more processors, memory, and one or more program units stored in the memory and to be executed by the one or more processors, the one or more program units comprising:
-
a webpage adjustment confirmation unit configured to determine whether an image display needs to be adjusted; a calculation unit configured to calculate a width for displaying the image on a webpage; a first determination unit configured to determine whether the image is inserted in a segment of text of the webpage by checking whether a parent node of the image includes a label representing a paragraph of text; a size adjustment unit configured to adjust a size of the image display based on a mobile terminal'"'"'s screen width and the width for displaying the image if the image is inserted in a segment of text of the webpage, wherein the size adjustment unit includes; a width adjustment module configured to set a width of the image display to the mobile terminal'"'"'s screen width subtracting a fixed number of pixels; and
a height adjustment module configured to set a height of the image display based on the width of the image display; anda label addition unit configured to add a label to the image display to force the image display to be left justified, while ignoring label attributes including at least one of text-align, indent, and margin.
-
-
17. A non-transient computer medium containing program instructions for causing a computer to perform a method for adjusting webpage layout, the method comprising:
-
calculating a width for displaying an image on a webpage; determining whether the width for displaying the image is different from a default value; determining whether the screen width of the mobile terminal has changed; determining whether the image is inserted in a segment of text of the webpage, including checking whether a parent node of the image includes a label representing a paragraph of text; adjusting a size of the image display based on a mobile terminal'"'"'s screen width and the width for displaying the image, if the image is inserted in the segment of text of the webpage, including; setting a width of the image display to the mobile terminal'"'"'s screen width subtracting a fixed number of pixels, and setting a height of the image display based on the width of the image display; and adding a label to the image display to force the image display to be left justified, while ignoring label attributes including at least one of text-align, indent, and margin.
-
Specification