# US 2025/0094683 A1 · Method, apparatus, storage medium, and electronic device for content presenting

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0094683 A1
- Document ID: US20250094683A1
- Status: Published application
- Kind: A1
- Application number: 18/729,495
- Filed: 2023-01-12
- Published: 2025-03-20
- Earliest claimed: 2022-01-20
- Assignees: Beijing Youzhuju Network Technology Co., Ltd.
- Applicants: Beijing Youzhuju Network Technology Co., Ltd.
- Inventors: Sheng Jiang
- Web page: https://patentgrep.com/patent/US20250094683A1

## CPC

- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 9/451: Execution arrangements for user interfaces
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The disclosure relates to a method, apparatus, storage medium, and electronic device for content presenting. The method includes: in response to a triggering operation for a content box within a first page, determining a first display parameter of the content box within the first page, a position parameter of the first page within a second page, and a second display parameter of the second page. Herein, the first page is embedded into the second page through an iframe label for presenting; determining a position offset of the content box relative to the second page based on the first display parameter, the second display parameter, and the position parameter, the position offset being for controlling the content box to be presented within the second page in a centered manner; and presenting, based on the position offset, the content box within the second page in a centered manner.

## Claims

### Claim 1

A method of content presenting, wherein the method comprises:
in response to a triggering operation for a content box within a first page, determining a first display parameter of the content box within the first page, a position parameter of the first page within a second page, and a second display parameter of the second page, the first page being embedded into the second page through an iframe label for presenting;
determining a position offset of the content box relative to the second page based on the first display parameter, the second display parameter, and the position parameter, the position offset being for controlling the content box to be presented within the second page in a centered manner; and
presenting, based on the position offset, the content box within the second page in a centered manner.

### Claim 2 (depends on 1)

The method of claim 1, wherein the method further comprises:
if the content box is presented within the second page in a centered manner based on the position offset, presenting a background mask on an upper layer of the second page, the background mask being for covering a page display area corresponding to the second page.

### Claim 3 (depends on 1)

The method of claim 1, wherein the content box comprises:
a modal box for receiving a user interactive operation on a page or a message box for notifying a user with a message in the page.

### Claim 4 (depends on 1)

The method of claim 1, wherein the position parameter of the first page within the second page being recorded in page source code of the second page, and wherein in response to a triggering operation for a content box within the first page, determining a position parameter of the first page within the second page comprises:
in response to a triggering operation for the content box within the first page, sending a notification event to the second page, the notification event being for triggering the second page to return the position parameter of the first page within the second page recorded in the page source code; and
receiving the position parameter of the first page within the second page returned by the second page.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining a first display parameter of the content box within the first page comprises:
invoking a target content box in a content box component library based on content box identification information comprised in the triggering operation, wherein a plurality of content boxes are predetermined in the content box component library, and each content box in the content box component library has a predetermined display parameter for controlling a corresponding content box to be presented in a centered manner within a page where the content box is triggered; and
determining the predetermined display parameter of the target content box as the first display parameter.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining a first display parameter of the content box within the first page, a position parameter of the first page on a second page and a second display parameter of the second page comprises:
determining a first width offset of the content box relative to the first page, a first height offset of the content box relative to the first page, a width of the content box, and a height of the content box as the first display parameter of the content box within the first page; determining a second width offset of the first page relative to the second page, and a second height offset of the first page relative to the second page as the position parameter of the first page within the second page; and determining a width of the second page and a height of the second page as the second display parameter.

### Claim 7 (depends on 6)

The method of claim 6, wherein determining a position offset of the content box relative to the second page based on the first display parameter, the second display parameter, and the position parameter of the first page within the second page comprises:
subtracting the first width offset, the second width offset, and a half of the width of the content box from a half of the width of the second page, to obtain a target width offset of the content box relative to the second page, wherein a positive or negative sign of the target width offset characterizes a width offset direction of the content box relative to the second page;
subtracting the first height offset, the second height offset, and a half of the height of the content box from a half of the height of the second page, to obtain a target height offset of the content box relative to the second page, wherein a positive or negative sign of the target height offset characterizes a height offset direction of the content box relative to the second page; and
determining the target width offset and the target height offset as position offsets of the content box relative to the second page.

### Claim 8

(canceled)

### Claim 9

A non-transitory computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processing device, implements the acts comprising:
in response to a triggering operation for a content box within a first page, determining a first display parameter of the content box within the first page, a position parameter of the first page within a second page, and a second display parameter of the second page, the first page being embedded into the second page through an iframe label for presenting;
determining a position offset of the content box relative to the second page based on the first display parameter, the second display parameter, and the position parameter, the position offset being for controlling the content box to be presented within the second page in a centered manner; and
presenting, based on the position offset, the content box within the second page in a centered manner.

### Claim 10

An electronic device, comprising:
a storage device having a computer program stored thereon; and
a processing device for executing the computer program in the storage device to implement the acts comprising:
in response to a triggering operation for a content box within a first page, determining a first display parameter of the content box within the first page, a position parameter of the first page within a second page, and a second display parameter of the second page, the first page being embedded into the second page through an iframe label for presenting;
determining a position offset of the content box relative to the second page based on the first display parameter, the second display parameter, and the position parameter, the position offset being for controlling the content box to be presented within the second page in a centered manner; and
presenting, based on the position offset, the content box within the second page in a centered manner.

### Claim 11 (depends on 10)

The device of claim 10, wherein the acts further comprise:
if the content box is presented within the second page in a centered manner based on the position offset, presenting a background mask on an upper layer of the second page, the background mask being for covering a page display area corresponding to the second page.

### Claim 12 (depends on 10)

The device of claim 10, wherein the content box comprises: a modal box for receiving a user interactive operation on a page or a message box for notifying a user with a message in the page.

### Claim 13 (depends on 10)

The device of claim 10, wherein the position parameter of the first page within the second page being recorded in page source code of the second page, and wherein in response to a triggering operation for a content box within the first page, determining a position parameter of the first page within the second page comprises:
in response to a triggering operation for the content box within the first page, sending a notification event to the second page, the notification event being for triggering the second page to return the position parameter of the first page within the second page recorded in the page source code; and
receiving the position parameter of the first page within the second page returned by the second page.

### Claim 14 (depends on 10)

The device of claim 10, wherein determining a first display parameter of the content box within the first page comprises:
invoking a target content box in a content box component library based on content box identification information comprised in the triggering operation, wherein a plurality of content boxes are predetermined in the content box component library, and each content box in the content box component library has a predetermined display parameter for controlling a corresponding content box to be presented in a centered manner within a page where the content box is triggered; and
determining the predetermined display parameter of the target content box as the first display parameter.

### Claim 15 (depends on 10)

The device of claim 10, wherein determining a first display parameter of the content box within the first page, a position parameter of the first page on a second page and a second display parameter of the second page comprises:
determining a first width offset of the content box relative to the first page, a first height offset of the content box relative to the first page, a width of the content box, and a height of the content box as the first display parameter of the content box within the first page;
determining a second width offset of the first page relative to the second page, and a second height offset of the first page relative to the second page as the position parameter of the first page within the second page; and determining a width of the second page and a height of the second page as the second display parameter.

### Claim 16 (depends on 15)

The device of claim 15, wherein determining a position offset of the content box relative to the second page based on the first display parameter, the second display parameter, and the position parameter of the first page within the second page comprises:
subtracting the first width offset, the second width offset, and a half of the width of the content box from a half of the width of the second page, to obtain a target width offset of the content box relative to the second page, wherein a positive or negative sign of the target width offset characterizes a width offset direction of the content box relative to the second page;
subtracting the first height offset, the second height offset, and a half of the height of the content box from a half of the height of the second page, to obtain a target height offset of the content box relative to the second page, wherein a positive or negative sign of the target height offset characterizes a height offset direction of the content box relative to the second page; and
determining the target width offset and the target height offset as position offsets of the content box relative to the second page.

### Claim 17 (depends on 9)

The medium of claim 9, wherein the acts further comprise:
if the content box is presented within the second page in a centered manner based on the position offset, presenting a background mask on an upper layer of the second page, the background mask being for covering a page display area corresponding to the second page.

### Claim 18 (depends on 9)

The medium of claim 9, wherein the content box comprises: a modal box for receiving a user interactive operation on a page or a message box for notifying a user with a message in the page.

### Claim 19 (depends on 9)

The medium of claim 9, wherein the position parameter of the first page within the second page being recorded in page source code of the second page, and wherein in response to a triggering operation for a content box within the first page, determining a position parameter of the first page within the second page comprises:
in response to a triggering operation for the content box within the first page, sending a notification event to the second page, the notification event being for triggering the second page to return the position parameter of the first page within the second page recorded in the page source code; and
receiving the position parameter of the first page within the second page returned by the second page.

### Claim 20 (depends on 9)

The medium of claim 9, wherein determining a first display parameter of the content box within the first page comprises:
invoking a target content box in a content box component library based on content box identification information comprised in the triggering operation, wherein a plurality of content boxes are predetermined in the content box component library, and each content box in the content box component library has a predetermined display parameter for controlling a corresponding content box to be presented in a centered manner within a page where the content box is triggered; and
determining the predetermined display parameter of the target content box as the first display parameter.

### Claim 21 (depends on 9)

The medium of claim 9, wherein determining a first display parameter of the content box within the first page, a position parameter of the first page on a second page and a second display parameter of the second page comprises:
determining a first width offset of the content box relative to the first page, a first height offset of the content box relative to the first page, a width of the content box, and a height of the content box as the first display parameter of the content box within the first page; determining a second width offset of the first page relative to the second page, and a second height offset of the first page relative to the second page as the position parameter of the first page within the second page; and determining a width of the second page and a height of the second page as the second display parameter.
