1. Technical Field
The present disclosure relates to a web server system, a web server and a web providing method.
2. Description of the Related Art
Displays come in a number of different sizes. In order for web pages to be consistently displayed on all display sizes, a number of web pages including a same content are sometimes provided for the different display sizes. For example, a first web site links a personal computer (PC) version for displaying on a PC, a second web site links a mobile phone version for displaying on a mobile phone.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The terminal parameter obtaining module 12 is configured to obtain parameters of a display 32 of the customer terminal 30 when the customer terminal 30 visits a web site.
The storage module 14 is configured to store web resources corresponding to web sites. The web resources includes at least one data block, a number of data included in the data block and data types corresponding to the number of data forming a web. The data types includes a widget type, a text type and a image type. In the embodiment, the web resource is a Hypertext Markup Language (HML) file.
The web configuration module 16 is configured to store a relationship between parameters of displays, web resources and web configuration properties corresponding to the parameters of displays and the web resources. The web configuration properties include a web width. The web width is a preset width occupied by the web on the display 32 corresponding to a size of the display 32 when the web is displayed on the display 32. In the embodiment, when a size of the display 32 is smaller than or equal to a preset size, the web width is the size of the display 32. When the a size of the display 32 is larger than a preset size, the web width is the preset size. e.g., if the preset size is forty inches and the customer terminal 30 is a television with a display of sixty inches, comprises the web width of forty inches. Thus, less eye movement range along the display 32 is required when viewing the web page displayed on the display 32.
The web configuration properties further include a position information of each data block on the web page, a background information of each data block, a width and a length of each data included in each data block and a size of space between data. When the web resource includes a number of data blocks, the web configuration properties further include a size of space between data blocks. The display 32 having a small size is corresponding a small space between data blocks. The display 32 having a large size is corresponding to a large space between data blocks. Thus, an arrangement of the web is reasonable.
The property determination module 18 is configured to determine the web resource corresponding to the web site and the web configuration property according to the determined web resource, the obtained parameter and the relationship.
The web loading module 20 is configured to load the determined web configuration property to the web resource to form a web page.
The web display module 22 is configured to display the web page on the display 32 of the customer terminal 30.
In another embodiment, a part of the modules of the web serving system 100 are executed in the web server 10 and other part of the modules of the web serving system 100 are executed in the customer terminal 30. For example, the storage module 14 and the web configuration module 16 are executed in the web server 10. The terminal parameter obtaining module 12, the property determination module 18, the web loading module 20 and the web display module 22 are executed in the customer terminal 30.
In block S81, the terminal parameter obtaining module 12 obtains parameters of a display 32 of the customer terminal 30 when the customer terminal 30 visits a web site.
In block S82, the property determination module 18 determines the web resource corresponding to the web site and the web configuration property according to the determined web resource, the obtained parameter and the relationship between parameters of displays, web resources and web configuration properties.
In the embodiment, the web resources are stored in the storage module 14. The web resources include at least one data block, a number of data included in the data block and data types corresponding to the number of data comprising a web page. The data types include a widget type, a text type and a image type. In the embodiment, the web resource is a Hypertext Markup Language (HML) file.
The web configuration properties include a web width. The web width is a preset width occupied by a web page on the display 32 corresponding to a size of the display 32 when the web page is displayed on the display 32. In the embodiment, when a size of the display 32 is smaller than or equal to a preset size, the web width is the size of the display 32. When the a size of the display 32 is larger than a preset size, the web width is the preset size. The web configuration properties further include a position information of each data block on the web page, a background information of each data block, a width and a length of each data included in each data block and a size of space between data. When the web resource includes a number of data blocks, the web configuration properties further include a size of space between data blocks. The display 32 having a small size is corresponding to a small space between data block. The display 32 having a large size is corresponding to a large space between data blocks. Thus, an arrangement of the web is normal.
In block S83, the web loading module 20 loads the determined web configuration property to the web resource to form the web page.
In block S84, the web display module 22 displays the web page on the display 32 of the customer terminal 30.
The web serving system 100 and the web providing method provides the web page corresponding to the display of each customer terminals 30 when any customer terminal 30 visits the same web site.
It is understood that the present disclosure can be embodied in other forms without departing from the present disclosure. Thus, the present examples and embodiments are to be considered in all respects as illustrative, and the disclosure and following claims are not to be limited to the details given herein.
Number | Date | Country | Kind |
---|---|---|---|
2013104808840 | Oct 2013 | CN | national |