Detailed description of the invention
Embodiments herein propose a kind of new dynamically divide display area realize method, display area is divided into several subregions, for subregion configuration association operating parameter, the subregion combination with identical operation associated parameter forms position, a hole, from without amendment code, only need to change the configuration of operation associated parameter, the dynamic division of display area can be quickly realized according to actual business requirement, decrease the workload of research staff and tester, to solve problems of the prior art.
In embodiments herein, client obtains page data from service end, shows the page at display area place, and client can be App (application program) or other client softwares, it is also possible to is browser.The equipment running client can be mobile phone, panel computer, PC (PersonalComputer, PC), notebook, it is also possible to is server; The equipment of operation service end is usually server, it is possible to be a physically or logically server, it is also possible to be shared the physically or logically server of different responsibility by two or more, mutually worked in coordination with and realize the various functions of service end in the embodiment of the present application. The embodiment of the present application kind to client device, server device, and between client device and server device, the type of communication network, agreement etc. all do not limit.
In the embodiment of the present application, dynamically divide the method that realizes of display area in the flow process of service end as in figure 2 it is shown, client flow process as shown in Figure 3. Wherein, display area includes two or more subregion, and the combination of all subregions is display area. Can presetting identical subregion layout respectively in service end and client, default concrete layout can be determined according to the needs of practical application scene; Can also be obtained, by service end, the sub-zone dividing parameter being used for determining subregion layout, and in the page data of the display area place page, sub-zone dividing parameter is sent to client. Service end can obtain sub-zone dividing parameter by the parameter configuration operation of reception operation personnel, sub-zone dividing parameter can also be read in precalculated position from this locality or network, can also receiving other processes or the sub-zone dividing parameter of other network nodes transmission, embodiments herein does not limit.
Such as, the display area to rectangle, sub-zone dividing parameter can be N and M (N and M is natural number, and N more than 1 or M more than 1). Service end is after getting N and M, display area is divided into N*M sub regions, specifically, with (N-1) bar longitudinal subdivision line, display area is divided at width the part of N number of equalization, with the laterally separated line of (M-1) bar, in short transverse, display area is divided into M impartial part, then display area is divided into N*M impartial subregion by (N-1) bar longitudinal subdivision line and the laterally separated line of (M-1) bar. When N be 4, M is 3, the layout of subregion is as shown in Figure 4. Sub-zone dividing parameter N and M is carried and is sent to client in the page data of the display area place page by service end.
Referring to Fig. 2, in service end, step 210, receive the operation associated parameter of at least two subregion of display area, the operation associated parameter at least two of which adjacent subarea territory is identical.
Based on default subregion layout or the subregion layout according to the generation of sub-zone dividing parameter, service end receives the operation associated parameter of at least two subregion in each sub regions forming display area.
Operation associated parameter is that it is operated parameter required when responding by client when user is for after in client, the subregion of display area makes scheduled operation. Can determining scheduled operation, corresponding response according to the needs of practical application scene, so that it is determined that carry out operation associated parameter required during this response, embodiments herein does not limit; Such as, when user clicks certain sub regions, the webpage cheating position link belonging to this subregion will be opened, then can using the URL of this position, hole linked web pages as operation associated parameter; For another example, when user on the touchscreen certain sub regions make prearranged gesture, the bullet layer of current page shows picture and the text of correspondence, then can using the storage position of picture and content of text as operation associated parameter.
Operation associated parameter can manually be carried out by operation personnel configuring (system that configuration system is used to manually arrange the various parameter of service end) in configuration system, it is also possible to is sent to service end by the operation associated parameter of other local processes or network node.In other words, service end obtains operation associated parameter by receiving the configuration operation of operation personnel, it is also possible to receive the operation associated parameter from other local processes or network node.
In embodiments herein, in display area, at least one position, hole is combined by adjacent subarea territory, and the subregion belonging to position, same hole has identical operation associated parameter; In other words, in all subregions, at least two adjacent subarea territory has identical operation associated parameter. When user makes scheduled operation for the adjacent subarea territory with identical relevant parameter, the scheduled operation of user be could be made that identical response by client. As such, it is possible to be adopted as subregion to arrange the means of operation associated parameter, display area is dynamically divided into the position, hole of different number, difformity and area. So that rectangle display area is divided into the subregion that 3*2 size is identical, refer to Fig. 5, when this display area is only 1 position, hole, identical operation associated parameter (being A) is set for every sub regions; When this display area to be divided into 2 position, holes (operation associated parameter respectively A and B), 3 hole position (operation associated parameter respectively A, B and C), the various splitting schemes in Fig. 5 can be adopted, and be not limited to the splitting scheme shown in Fig. 5.
The relevant information of the content shown in display area can also be handed down to client by service end in page data. The content that display area shows is usually picture, and position, a hole can show that one to plurality of pictures, and different positions, hole then shows different pictures. Can hole bitmap sheet corresponding to the position of the identical subregion of operation associated parameter (i.e. position, a hole), it is combined as overall exhibiting pictures by all subregions to show one to multiple hole bitmap sheets, and in page data, the information of overall exhibiting pictures is sent to client by service end. Each can also be cheated the picture of position, i.e. an information to multiple portion shows pictures, and each portion shows picture is corresponding to which operation associated parameter, being sent to client in page data by service end, client can learn the position that this portion shows picture should be shown in which or which subregion by operation associated parameter. The picture including the position, hole of two or more subregions can also be split as the subregion exhibiting pictures corresponding to subregion, and by the information of all of subregion exhibiting pictures in page data, and often which subregion sub regions exhibiting pictures corresponds to, being sent to client by service end, each sub regions exhibiting pictures is shown in the position of corresponding subregion by client. Wherein, the information of overall exhibiting pictures can be overall exhibiting pictures itself, can also being the information (network address such as overall exhibiting pictures) needed for client obtains overall exhibiting pictures, the information of portion shows picture and the information of subregion exhibiting pictures be also such.
In service end, step 220, it is sent to page data according to the request of client, including the operation associated parameter of subregion.
In client, step 310, receiving page data from service end, including the operation associated parameter of at least two subregion of display area, the operation associated parameter at least two adjacent subarea territory is identical.
Client, when opening the page at display area place, can send request to service end. After receiving the client request to the page, page data is sent to client by service end, shows the requested page according to page data to user for client.Service end is sent in the page data of client, including the operation associated parameter of the subregion of its reception.
As it was previously stated, in the page data that service end issues, it is also possible to include sub-zone dividing parameter. The layout of subregion in display area is determined according to sub-zone dividing parameter for client. To rectangle display area, it is possible to using N and M as sub-zone dividing parameter. Display area, according to the sub-zone dividing parameter received, is divided into N*M sub regions by client. It is divided into the mode of subregion to refer to display area according to N and M described above, is not repeated.
In client, step 320, if receiving user's scheduled operation for certain sub regions, according to the operation associated parameter of described subregion, the scheduled operation of user is responded.
Client is receiving after the page data of service end, according to page data, the page including display area is shown to user. Page data is included the situation being shown in the picture relevant information of display area, for aesthetic purpose, the ratio being shown between developed width and the height of the picture of same display area there may be change, and the scheduled operation of user is to carry out for shown picture, therefore in this case, after client is according to the information acquisition picture of picture, the size of the subregion being shown on client screen can be determined, in order to accurately the scheduled operation of user is responded according to the size of picture.
Specifically, if page data includes the information of the overall exhibiting pictures being spliced according to the sub-window position that operation associated parameter is identical, the then information according to the entirety display picture received, it is determined that the size of subregion, and at the overall exhibiting pictures that display area display receives; If page data includes the information of the portion shows picture corresponding to operation associated parameter, the then information according to the portion shows picture received, determine the size with the subregion corresponding to operation associated parameter, and in the position of Dao many sub regions with identical operation associated parameter, show the portion shows picture corresponding to this operation associated parameter; If page data includes the information of the subregion exhibiting pictures corresponding to subregion, the then information according to the subregion exhibiting pictures received, determine the size of subregion corresponding to described subregion exhibiting pictures, and every sub regions exhibiting pictures is shown in the position of the subregion of correspondence.
If receiving user's scheduled operation for certain sub regions, the scheduled operation of user, according to the operation associated parameter of this subregion, is responded by client. Such as, if operation associated parameter is URL, after client receives user's clicking operation to certain sub regions, the page corresponding to the URL of this subregion is opened.
Visible, in embodiments herein, display area is divided into several subregions, by distributing the operation associated parameter of certain position, hole for some adjacent subarea territory, the position at this subregion place is distributed to this position, hole, thus realizing the dynamic division of display area. After the technical scheme of application the embodiment of the present application, only need operation personnel to change the operation associated parameter of subregion in configuration system, it is not necessary to amendment code, the dynamic division of display area can be realized, decrease research and development and the workload of test, and can quickly meet the demand of practical business at any time.
In an application example of the application, display area is the territory, advertising display of rectangle, subregion layout in client and service end this display area preset: the subregion that 6 sizes are identical, arrange with the form of 3*2, impartial for the width of this display area is divided into 3 parts, impartial for the height of this display area is divided into 2 parts (referring to Fig. 5).
Operation personnel and trade company consult to determine the subregion and price to buy, trade company to be generally more subregion or better sub-window position pay higher price, the adjacent subarea territory of a merchant purchasing forms one and cheats position. After operation personnel determines the position, hole belonging to all subregions, the hole bitmap sheet of position, each hole and the URL of position, each hole, the URL cheating position belonging to subregion is set in configuration system the operation associated parameter of this subregion, and the hole bitmap sheet of position, hole belonging to subregion and position, each hole is supplied to vision personnel. The hole bitmap sheet of position, all for display area holes, according to the sub-window position of position, each hole, is spliced into an overall exhibiting pictures, and the network address of this entirety exhibiting pictures is supplied to operation personnel, operation personnel be disposed in configuration system by vision personnel.
After service end receives the URL of each sub regions of operation personnel's input and the network address of overall exhibiting pictures, if receiving the request that the client page to this display area place is initiated, then the network address of the URL of every sub regions, overall exhibiting pictures is encapsulated in page data, is sent to client.
After client receives the page data of its requests for page, therefrom extract the URL of each sub regions of display area, and the network address of entirety exhibiting pictures, entirety exhibiting pictures is shown in display area by client, and determines the size of every sub regions according to the size of overall exhibiting pictures. When user clicks certain sub regions, and namely the clicking operation of user drops in the scope of certain sub regions, user's clicking operation is responded by client, opens the page corresponding to the URL of this subregion.
Realizing corresponding with above-mentioned flow process, embodiments herein additionally provides a kind of device that realizes dynamically dividing display area being applied in service end, and a kind of dynamically division display area being applied in client realize device. Both devices all can be realized by software, it is also possible to is realized by the mode of hardware or software and hardware combining. Implemented in software for example, as the device on logical meaning, it is that corresponding computer program instructions is read to run in internal memory and formed by the CPU (CentralProcessUnit, central processing unit) by service end or client place equipment. Say from hardware view; except the CPU shown in Fig. 6, internal memory and nonvolatile memory; the equipment realizing device place dynamically dividing display area generally also includes other hardware such as the chip for carrying out wireless signal transmitting-receiving, or for realizing other hardware such as the board of network communicating function.
Fig. 7 show the embodiment of the present application provide a kind of dynamic division display area realize device, it is applied in service end, described display area includes at least two subregion, described device includes operation associated parameters unit and page data transmitting element, wherein: operation associated parameters unit is for receiving the operation associated parameter of at least two subregion of display area, and the operation associated parameter at least two of which adjacent subarea territory is identical;Page data transmitting element is sent to page data for the request according to client, and described page data includes the operation associated parameter of the subregion received.
Optionally, described device also includes sub-zone dividing parameters unit, for obtaining sub-zone dividing parameter N and the M of display area, according to sub-zone dividing parameter, display area is divided into N*M sub regions; Wherein N and M is natural number, and N more than 1 or M more than 1; Described page data also includes: sub-zone dividing parameter N*M.
Optionally, described page data also includes: the information of the overall exhibiting pictures being spliced according to the sub-window position that operation associated parameter is identical or the information corresponding to the information of portion shows picture of operation associated parameter or subregion exhibiting pictures corresponding to subregion.
Optionally, described operation associated parameter includes: uniform resource position mark URL.
Fig. 8 show the embodiment of the present application provide a kind of dynamic division display area realize device, it is applied in client, described display area includes at least two subregion, described device includes page data and receives unit and subregion operation response unit, wherein: page data receives unit for receiving page data from service end, including the operation associated parameter of at least two subregion of display area, the operation associated parameter at least two adjacent subarea territory is identical; Subregion operation response unit for receive user for the scheduled operation of certain sub regions after, respond according to the operation associated parameter of described subregion.
Optionally, described page data also includes: sub-zone dividing parameter N*M, N and M are natural number, wherein N more than 1 or M more than 1; Described device also includes subregion and generates unit, for according to sub-zone dividing parameter, display area being divided into N*M sub regions.
Optionally, described page data also includes: the information of the overall exhibiting pictures being spliced according to the sub-window position that operation associated parameter is identical or the information corresponding to the information of portion shows picture of operation associated parameter or subregion exhibiting pictures corresponding to subregion; Described device also includes picture presentation unit, for the information according to described overall exhibiting pictures, it is determined that the size of subregion, and at the overall exhibiting pictures that display area display receives; Or the information according to described portion shows picture, it is determined that there is the size of subregion corresponding to described operation associated parameter, and show the portion shows picture corresponding to described operation associated parameter at the subregion with identical operation associated parameter; Or the information according to described subregion exhibiting pictures, it is determined that corresponding to the size of the subregion of described subregion exhibiting pictures, and subregion exhibiting pictures is shown in the subregion of correspondence.
Optionally, described operation associated parameter includes: uniform resource position mark URL; Described subregion operation response unit specifically for: after receiving user's clicking operation to certain sub regions, open the page corresponding to the URL of described subregion.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all within spirit herein and principle, any amendment of making, equivalent replacements, improvement etc., should be included within the scope that the application protects.
In a typical configuration, computing equipment includes one or more processor (CPU), input/output interface, network interface and internal memory.
Internal memory potentially includes the forms such as the volatile memory in computer-readable medium, random access memory (RAM) and/or Nonvolatile memory, such as read only memory (ROM) or flash memory (flashRAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes permanent and impermanency, removable and non-removable media can by any method or technology to realize information storage. information can be computer-readable instruction, data structure, the module of program or other data. the example of the storage medium of computer includes, but it is not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus or any other non-transmission medium, can be used for the information that storage can be accessed by a computing device. according to defining herein, computer-readable medium does not include temporary computer readable media (transitorymedia), such as data signal and the carrier wave of modulation.
It can further be stated that, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, commodity or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, commodity or equipment. When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program. Therefore, the application can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect. And, the application can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.