摘要:
A method of implementing screen adaptation for an owner-drawn element and a corresponding apparatus are provided. In the method, at least one owner-drawn element is arranged, and a first view adapted to the initial screen is obtained. Then, determine an adaptation interface of the first interface according to a resolution of a target screen, and define a corresponding container for each owner-drawn element arranged on the first interface. Obtain at least one margin of each owner-drawn element relative to a corresponding container, and set the attribute of the at least one margin as a fixed margin or a zoomed margin. Zoom the first interface according to the size of the adaptation interface, and adjust the owner-drawn element arranged on the first interface according to the margin attributes of the owner-drawn element relative to its corresponding container, in order to obtain a second view.
摘要:
The present invention discloses a method and a server for allocating game resources, which belongs to the field of network technology. The method includes: receiving a game participation request sent by a user, the game participation request including game subzone information; when the user enters a game subzone identified by the game subzone information, assigning the user to a waiting queue that the user corresponds to in the game subzone in accordance with a predetermined condition; and when the user is successfully assigned to the waiting queue that the user corresponds to, selecting participants to play in the same group with the user from waiting queues other than the waiting queue of the user, and allocating game resources for the user and the participants to play in the same group with the user. The present technical solution makes all users who participate in the game come from different waiting queues, to some extent eliminating the possibility that game participants know each other, thereby can effectively prevent the situation of the game participants' cheating.
摘要:
A method and a client for displaying advertisements are provided, belonging to the field of Internet communications. The method includes the following process. An advertisement configuration file is downloaded. If the advertisement configuration file is a new version of advertisement configuration file, a name of an advertisement picture resource package is extracted from the advertisement configuration file, and the corresponding advertisement picture resource package is downloaded according to the name. An advertisement display location and advertisement configuration information are parsed out from the advertisement configuration file. The advertisement configuration information includes an advertisement validity period. Advertisement configuration information within the advertisement validity period is added into an advertisement alternate playing list. An advertisement is displayed at the advertisement display location on a screen of a client according to the advertisement alternate playing list and the advertisement picture resource package. The client includes a downloading module, a parsing module and a displaying module. Thus, advertisements displayed at a client may be dynamically updated.