Abstract:
This invention provides a skin replacement method for a webpage content area displayed in a mobile terminal browser, including: parsing each element of webpage content received, determining whether a self-defined extension property exists in an element for indicating skin style information of the element. The self-defined extension property is predefined by a browser client and provided for a web server, and a value of the self-defined extension property represents index information of the skin style information of the element in a skin style library of the browser client; when the self-defined extension property exists, based on the index information, searching the skin style information corresponding to the index information in the skin style library; and rendering the element based on found skin style information. This method can directly and seamlessly integrate skin effect of the browser client into the webpage content displayed in the browser, providing better use experience.
Abstract:
The present disclosure provides a method, a browser client, and a server for reading web page information by speech. The browser client is installed with a text to speech (TTS) engine. The method includes: sending, by a browser client, a page access request to a server, where the page access request includes a page address and TTS identity information; receiving, by the browser client, response data returned by the server, where the response data includes a TTS standard version number determined by the server according to the TTS identity information, and TTS page data corresponding to the page address; and reading, by the browser client, the TTS page data by speech according to the TTS standard version number by using a TTS engine. In the present disclosure, page information is read by speech by using the TTS engine installed on the browser client. When it is inconvenient for a user to browse a page with eyes, and for users whose eyes have physical problems, the read page information can be listened by using a sense of hearing. Therefore, a convenient hearing-based manner is provided to users to browse a page.
Abstract:
A network article comment processing method and apparatus, a user terminal device, a server, and a non-transitory machine-readable storage medium provided in the present disclosure belong to the technical field of communication. The method includes: obtaining, by a client in a process of displaying a current article, a location where user specified content in the article is located with respect to all the pages occupied by the article; obtaining comment content posted by the user for the user specified content; and sending the comment content and the location at which the user specified content corresponding to the comment content is located with respect to all the pages occupied by the article to a server. In the present disclosure, the user does not need to post or view the comment content at the bottom of the article, the comment content may be displayed at a location at which the user specified content corresponding to the comment content is located with respect to all the pages occupied by the article, and the article and the comment are closely related, which facilitates reading.
Abstract:
A method for reducing memory usage of a browser in a portable terminal device is disclosed. The method comprises mapping an anonymous memory, allocated by an operating system of the portable terminal device, into a process space of a browser; and removing the mapped anonymous memory from the process space of the browser, after an operation of the browser using the anonymous memory is completed.
Abstract:
The present invention provides a webpage pre-reading method, apparatus and a smart terminal device. The webpage pre-reading method includes: acquiring information of one or more users accessing multiple webpages within a first period of time; determining click paths through each of which a second webpage is clicked and entered from a first webpage and the number of clicks thereof; determining a first confidence value of each click path; generating a first pre-reading list including the click paths based on the first confidence values; and querying for a click path of a currently browsed webpage from the first pre-reading list so as to pre-read data of a corresponding target webpage to be browsed.
Abstract:
Provided are a method and an apparatus for implementing communication from a web page to a client. The method includes: a browser establishing a communication connection with a port when accessing a web page, where the port is a port predefined to communicate with the web page; and sending link information carrying parameters specified by a preset communication protocol to the port, so that the client accesses a client page corresponding to the link information, where the parameters include fields in a service requirement and client page information. A client can be directly called from a web page of a portal web site, so as to guide a user to complete a required service to a designated page, thereby being convenient for the user to operate.
Abstract:
A method for software update management is described. The method comprises: comparing sub-files of a plurality of variants of a software program to generate difference information including a list of uncommon sub-files among the plurality of variants; generating one or more increment files based on the difference information and files of a target version of the software program; and transmitting the one or more increment files to a device, wherein the transmission enables the device to merge the one or more increment files with files of one of the plurality of variants to generate files of the target version of the software program.
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.
Abstract:
The disclosure provides a method for executing extended JavaScript (JS) by using an extended JS interface. The method comprises the following steps: inquiring an extension program whether to execute the extended JS at a predetermined occasion when a webpage is loaded, wherein the extension program is loaded when a browser is started up; the browser assembles the extended JS interface according to an open application programming interface (API) when determining that the extended JS is needed to be executed; executing the extended JS by using the extended JS interface. According to the disclosure, browsing mode and layout mode of a browser can be changed dynamically according to the requirement for webpage contents in the form of extension programs, accordingly browsing experience of users is improved.
Abstract:
Methods and apparatus for compressing webpage text are provided. According to a webpage-opening request of a mobile terminal browser, a current language environment of the terminal is obtained. According to the language environment, a character container corresponding to the language environment is initialized. Requested webpage data are received. The received webpage data are parsed. The webpage data are merged and stored using the corresponding character container. During the initializing of the corresponding character container according to the language environment, it is determined whether the language environment belongs to Latin languages. When the language environment belongs to Latin languages, the character container is initialized to store utf-8 encoded data. Otherwise, the character container is initialized to store utf-16 encoded data. The present disclosure can intelligently determine a storage method according to the language environment, optimize and adapt stored content, and effectively reduce the browser memory occupied by the webpage data.