Method and device for generating hypertext markup language (HTML) procedure code

A technology for generating program codes and information, applied in the direction of program control devices, etc., can solve problems such as the inability to respond quickly to development needs, and achieve the effect of improving development efficiency

Active Publication Date: 2014-04-23
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the existing WEB page development method is used to write HTML program codes for the above-mentioned types of product items, sometimes there wil

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for generating hypertext markup language (HTML) procedure code
  • Method and device for generating hypertext markup language (HTML) procedure code
  • Method and device for generating hypertext markup language (HTML) procedure code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0016] Embodiment 1. A method for generating HTML program codes. Combine below figure 1 - Figure 4 illustrates the method of this embodiment in detail.

[0017] figure 1 , S100. Obtain each layer included in the picture, acquire position attribute information of each layer, and convert each of the above layers into a picture format.

[0018] Specifically, the picture in this embodiment may be a picture designed using PHOTOSHOP tools (such as a PSD picture, etc.), such as a picture designed for a product holding an event, and the picture usually includes multiple layers. A specific example of a PSD image is figure 2 shown, and figure 2 The relevant information of the layers contained in the PSD picture shown is as follows: image 3 shown. Of course, the above picture can also be a picture designed by using other drawing tools (such as AUTOCAD).

[0019] In this embodiment, the interfaces provided by the PHOTOSHOP tool or other drawing tools can be used to obtain the la...

Embodiment 2

[0137] Embodiment 2, a device for generating HTML program codes. The device can be set in the page development equipment or the website server, and can also be set in the page development equipment and the website server. The device of this embodiment will be described in detail below in conjunction with Figure 5 .

[0138]The device shown in FIG. 5 mainly includes: an acquisition module 500 , a page width determination module 510 , a group division module 520 , an adjustment module 530 and a code generation module 540 .

[0139] The acquisition module 500 is connected to the page width determination module 510, the group division module 520, the adjustment module 530 and the code generation module 540 respectively. The acquisition module 500 is mainly adapted to acquire each layer included in the PHOTOSHOP-based picture, acquire position attribute information of each layer, and convert each layer into an image format. The above pictures may be pictures based on PHOTOSHOP, or pic...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for generating a hypertext markup language (HTML) procedure code. The method mainly includes: obtaining each image layer included in a picture, obtaining position attribution information of each image layer, and converting each image layer into a picture format; confirming the width of a page according to position attribution information of non-background image layers in each image layer; dividing all the non-background image layers into at least one group according to the position attribution information of the non-background image layers in all the image layers, and enabling area inclusion relations to exist among all the image layers in one group; adjusting the position attribution information of each image layer in each group according to the designed width of the picture and the width of the page; generating the HTML procedure code according to the position attribution information of each image layer and storage path information of the image layer of each picture format, and enabling each group of the image layers to correspond to one node in the HTML procedure code.

Description

technical field [0001] The invention relates to WEB page development technology, in particular to a method and device for generating HTML program codes. Background technique [0002] In the process of WEB page development, usually WEB page designers make design drafts (that is, pictures, such as pictures designed with PHOTOSHOP) according to the specific needs of product projects. After that, WEB code developers make design drafts Image cutting processing, and writing HTML program codes for multiple images formed after image cutting processing; WEB code developers will put the completed HTML program codes online (such as setting them in the corresponding website server). [0003] In the process of realizing the present invention, the inventor found that in addition to large-scale product items, there are also some small product items (such as products for holding activities, etc.) with a short survival period (such as one or two days), and this type of product items Feature...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
Inventor 李成银
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products