CN100394429C - Method for realizing page display content typesetting based on wap web site - Google Patents
Method for realizing page display content typesetting based on wap web site Download PDFInfo
- Publication number
- CN100394429C CN100394429C CNB2005101343758A CN200510134375A CN100394429C CN 100394429 C CN100394429 C CN 100394429C CN B2005101343758 A CNB2005101343758 A CN B2005101343758A CN 200510134375 A CN200510134375 A CN 200510134375A CN 100394429 C CN100394429 C CN 100394429C
- Authority
- CN
- China
- Prior art keywords
- moved
- elements
- arrangement
- sequence number
- benchmark
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to a method for typesetting a wap website page, which can be used for typesetting contents displayed on the web page into optional positions to extricate a programmer from a large amount of modification work, more specifically a wap website based method for typesetting page displayed contents. The present invention is realized on the basis that the contents displayed on the wap page are used as independent elements. The method specifically comprises the following process: each content displayed on the wap website page is used as one element, and a unique identity number is set for each element; arrangement sequence numbers of longitudinal sequence among the elements are set; the positions of transversal sequence among the elements are set; the settings are save to a database; all the elements are taken out from the database and sequentially displayed according to the arrangement sequence numbers of the elements. The initial value of each arrangement sequence number of each element is identical to the unique identity number of each element.
Description
Technical field
The present invention relates to the composition method of website, specifically is a kind of based on the wap website, realizes the method for setting type between the shown content of the page.
Background technology
Along with the continuous development of internet, people are increasing to the demand of online whenever and wherever possible, as long as have a mobile phone with wap function, can surf the Net at any time.(wireless application protocol) is wireless communication protocol by the wap agreement, can realize being connected of mobile phone terminal and internet.
Because the restriction of mobile phone screen size and amount of capacity by the mobile phone access internet site time, two aspect problems occur through regular meeting:
1, the space of a whole page of website is excessive, and it is undesired to show on mobile phone screen.
2, web site contents is abundant, and capacity is excessive, causes transmission speed slow.
For addressing this problem, the wap website for handset customization produces specially.The wap website is aimed at the mobile phone characteristic, uses the website of wap language compilation, its apparent size as shown in Figure 1 because the mobile phone screen size is limited, so the wap Website page compares with the page of internet, the page displayed content is relatively more dull.
Original wap website shows with written form mostly, in order to enrich the wap website, can mix corresponding picture to literal, and be presented at corresponding position.
Existing implementation method is: by the programmer according to demand, and update routine, the display position of change picture.This implementation method is brought very big workload to the programmer, and very dumb, can't be flexibly, the display position of change picture at any time.
The Website page of internet also provides the method for setting type:
1, content of pages is divided into different zones, sets each regional content displayed type, Show Picture and show topics, but can not sort between each concrete picture or the theme that each is concrete.
2, concrete page masterplate is set, content displayed is nested in the masterplate.This processing mode underaction because masterplate is limited, if the demand that proposes does not have page masterplate to satisfy, also will redesign masterplate.
Summary of the invention
The present invention relates to a kind of method of setting type, can allow the programmer from a large amount of modifications, free carrying out the composing of optional position between the content shown on the webpage at the wap Website page.Specifically be a kind of, realize the method for setting type between the page display content based on the wap website.
Design of the present invention is: with the content of pages of show on the wap page interrelated or the connection that is independent of each other all as independently element processing.
The present invention specifically is achieved in that
A kind of based on the method for wap website realization to page display content typesetting, comprise following processing:
The content of pages of show on the wap page interrelated or the connection that is independent of each other all as element independently, for being provided with unique component identification, each element is numbered;
The arrangement of elements sequence number that vertically sorts between element is set, the initial value of described arrangement of elements sequence number is identical with the component identification of each element numbering, the position attribution that laterally sorts between element is set, comprises left, center, right and line feed, above-mentioned setting is saved in the database;
The detailed process of revising vertical sorting position between element is as follows:
At first, the element that selection is moved writes down its component identification numbering;
Secondly, select an element as the benchmark element, write down its component identification numbering, the element that is moved will be moved to after the benchmark element;
Once more, order travels through all elements behind the benchmark element, the arrangement of elements sequence number of each element in the described all elements is revised as the arrangement of elements sequence number of current this element itself and the total quantity sum of the element that is moved, the element that order traversal is moved is revised as the arrangement of elements sequence number of the element that is moved the arrangement of elements sequence number and the serial number sum of the current element that is moved in the element that all is moved of benchmark element;
At last, take out element and demonstration according to the arrangement of elements numeric order;
The detailed process of revising horizontal sorting position between element is as follows:
At first revise the line feed attribute be moved element, if with this attribute modification for not entering a new line, then being moved element is benchmark with previous element, is arranged in the right-hand member of its previous element.If this attribute modification is line feed, then being moved element is benchmark with previous element, is arranged in the lower end of its previous element;
Next revises the left, center, right attribute of each element, determines the position of element on the present level direction with this.
The selected element that is moved is one or more.
Effect of the present invention is: by the content in the page is usually handled as unit independently, page composing is spun off from loaded down with trivial details code revision work, this popular easy-to-use form can allow amateur webpage development personnel use arbitrarily, particularly can directly be finished by the user.
Description of drawings
What Fig. 1 provided is the page structure of wap website;
What Fig. 2 (1)-(2) provided is the process flow diagram of the method for the invention.
Embodiment
Wap website with download pictures is an example, and the wap Website page structure of using the method for the invention is elaborated.The homepage of website as shown in Figure 1,
The page structure of Wap website comprises in Fig. 1 from top to bottom:
1, decorative picture: be used on the page, decorating the homepage picture.
2, theme: the title of download pictures, show with the hyperlink form.Click, can see the picture of download.
3, column:, can concentrate order to show, as a column similar theme for clear.
The present invention is exactly to set type between decorative picture and theme, column, the inventive method is that the content of pages of the interrelated or connection that is independent of each other that just shows on the wap page is all usually handled as unit independently, below provides the detailed process that decorative picture, theme are usually handled as a unit.2 (1)-(2) the method for the invention is described as follows in conjunction with the accompanying drawings:
The involved element property that sorts comprises: whether arrangement sequence number order (being used for the vertical ordering between element), unique identification are numbered the position attribution (left, center, right) on (ID), the horizontal direction and are entered a new line (these two are used for horizontal ordering).
The method of the invention comprises the steps: the setting of element property, the demonstration of element, the moving of element.The specific implementation step is as follows:
1, the setting of element property
Initialization: decorative picture, subject information are saved in the database by being provided with of element property, for each element is provided with a uniquely identified numbering, the arrangement of elements sequence number that vertically sorts between element is set, the initial value of described arrangement of elements sequence number is identical with the component identification of each element numbering, the position attribution that laterally sorts between element is set, comprise left, center, right and line feed, above-mentioned setting is saved in the database.
2, the demonstration of element
From database, take out each element, arrange sequence number, carry out order and show according to it.
3, element moves
The detailed process of revising vertical sorting position between element is as follows:
If want to revise the vertical order between element, at first, the element (one or more) that selection is moved writes down its component identification numbering; Secondly, select an element as benchmark element (must have and can only be one), the element that is moved will be moved to after the benchmark element, the component identification numbering of record benchmark element, once more, order travels through all elements behind the benchmark element, the arrangement of elements sequence number of each element in the described all elements is revised as the arrangement of elements sequence number of current this element itself and the total quantity sum of the element that is moved, the element that order traversal is moved is revised as the arrangement of elements sequence number of the element that is moved the arrangement of elements sequence number and the serial number sum of the current element that is moved in the element that all is moved of benchmark element; At last, according to the arrangement of elements sequence number, take out element and demonstration in turn.
The detailed process of revising horizontal sorting position between element is as follows:
At first revise the line feed attribute be moved element, if with this attribute modification for not entering a new line, then being moved element is benchmark with previous element, is arranged in the right-hand member of its previous element.If this attribute modification is line feed, then being moved element is benchmark with previous element, is arranged in the lower end of its previous element.
Next revises the left, center, right attribute of each element, determines the position of element on the present level direction with this.
Claims (2)
1. realize it is characterized in that method to page display content typesetting based on the wap website for one kind, comprise following processing:
The content of pages of show on the wap page interrelated or the connection that is independent of each other all as element independently, for being provided with unique component identification, each element is numbered;
The arrangement of elements sequence number that vertically sorts between element is set, and the initial value of described arrangement of elements sequence number is identical with the component identification of each element numbering, and the position attribution that laterally sorts between element is set, and comprises left, center, right and line feed,
Above-mentioned setting is saved in the database;
The detailed process of revising vertical sorting position between element is as follows:
At first, the element that selection is moved writes down its component identification numbering;
Secondly, select an element as the benchmark element, write down its component identification numbering, the element that is moved will be moved to after the benchmark element;
Once more, order travels through all elements behind the benchmark element, the arrangement of elements sequence number of each element in the described all elements is revised as the arrangement of elements sequence number of current this element itself and the total quantity sum of the element that is moved, the element that order traversal is moved is revised as the arrangement of elements sequence number of the element that is moved the arrangement of elements sequence number and the serial number sum of the current element that is moved in the element that all is moved of benchmark element;
At last, take out element and demonstration according to the arrangement of elements numeric order;
The detailed process of revising horizontal sorting position between element is as follows:
At first revise the line feed attribute be moved element, if with this attribute modification for not entering a new line, then being moved element is benchmark with previous element, is arranged in the right-hand member of its previous element.If this attribute modification is line feed, then being moved element is benchmark with previous element, is arranged in the lower end of its previous element;
Next revises the left, center, right attribute of each element, determines the position of element on the present level direction with this.
2. as claimed in claim 1 based on the method for wap website realization to page display content typesetting, it is characterized in that:
The selected element that is moved is one or more.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101343758A CN100394429C (en) | 2005-12-16 | 2005-12-16 | Method for realizing page display content typesetting based on wap web site |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101343758A CN100394429C (en) | 2005-12-16 | 2005-12-16 | Method for realizing page display content typesetting based on wap web site |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1776690A CN1776690A (en) | 2006-05-24 |
CN100394429C true CN100394429C (en) | 2008-06-11 |
Family
ID=36766182
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005101343758A Active CN100394429C (en) | 2005-12-16 | 2005-12-16 | Method for realizing page display content typesetting based on wap web site |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100394429C (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104156370A (en) * | 2013-05-15 | 2014-11-19 | 湖北金像无人航空科技服务有限公司 | Method for changing floors in Internet forum |
CN104346402A (en) * | 2013-08-08 | 2015-02-11 | 湖北金像无人航空科技服务有限公司 | Method for calling cut-in reply in network forum |
CN104346400A (en) * | 2013-08-08 | 2015-02-11 | 湖北金像无人航空科技服务有限公司 | Method for moving released reply in network forum |
JP7333761B2 (en) * | 2020-01-30 | 2023-08-25 | シャープ株式会社 | system and image forming system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07210360A (en) * | 1994-01-24 | 1995-08-11 | Hitachi Ltd | Command selection system |
CN1269116A (en) * | 1998-05-13 | 2000-10-04 | 松下电器产业株式会社 | Network cotnrol system, controller, and device |
US6326946B1 (en) * | 1998-09-17 | 2001-12-04 | Xerox Corporation | Operator icons for information collages |
-
2005
- 2005-12-16 CN CNB2005101343758A patent/CN100394429C/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07210360A (en) * | 1994-01-24 | 1995-08-11 | Hitachi Ltd | Command selection system |
CN1269116A (en) * | 1998-05-13 | 2000-10-04 | 松下电器产业株式会社 | Network cotnrol system, controller, and device |
US6326946B1 (en) * | 1998-09-17 | 2001-12-04 | Xerox Corporation | Operator icons for information collages |
Also Published As
Publication number | Publication date |
---|---|
CN1776690A (en) | 2006-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109032738B (en) | Multimedia playing control method, device, terminal and storage medium | |
CN100541480C (en) | The system that is used to provide the font service method on the service page and is used to carry out this method | |
CN101847269B (en) | Multi-layer cartoon rendering system and method | |
CN101997909B (en) | The method of control widget and the equipment using this method are provided | |
KR101994933B1 (en) | Apparatus, method and computer program for providing Web Browser | |
CN105468377A (en) | Method and system for generating page of mobile terminal | |
CN105867734A (en) | Method and device for displaying resource entry on mobile equipment and mobile equipment | |
CN103020237B (en) | A kind of webpage update method and device | |
CN100394429C (en) | Method for realizing page display content typesetting based on wap web site | |
CN109828811B (en) | Card object display method and device | |
CN104571877A (en) | Display processing method and device for pages | |
CN102622195B (en) | Information browsing method | |
CN109241474A (en) | Offer, displaying, dissemination method, server and the client of page info | |
JP2003330856A (en) | Browser system and control method | |
CN101930456A (en) | Method and system for establishing aggregated LinkUGC by using browser | |
CN110020356A (en) | A kind of code generating method of page module, apparatus and system | |
CN102096581A (en) | Method and device for generating widget | |
CN106354355A (en) | User interface layout method, device and system | |
CN107786882A (en) | A kind of Webpage display process, device and set top box | |
CN105786522A (en) | WEB (World Wide Web) front-end universal component unit based on Node. js platform | |
CN110333853A (en) | Application method, device, equipment and the readable storage medium storing program for executing of active card | |
CN105159673A (en) | Method and device for setting control style | |
CN106575303A (en) | Method and device of displaying webpage | |
CN108319576A (en) | A kind of method and device generating picture materials | |
CN102436369A (en) | Method and device for displaying data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |