CN1776690A - 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
- CN1776690A CN1776690A CN 200510134375 CN200510134375A CN1776690A CN 1776690 A CN1776690 A CN 1776690A CN 200510134375 CN200510134375 CN 200510134375 CN 200510134375 A CN200510134375 A CN 200510134375A CN 1776690 A CN1776690 A CN 1776690A
- Authority
- CN
- China
- Prior art keywords
- sequence number
- moved
- arrangement
- elements
- 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.)
- Granted
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The method can carry out layout at any position for content displayed on web page so as to relieve programmers from lots of modifying operation. Based on that content displayed on wap page is as independent realization of element, the method includes following processes: considering content displayed on wap page as a element, and setting unique number of identifier for each element; setting up sequence number of arrangement according to longitudinal sequence between elements; setting up position of transverse sequence between elements; saving the setting s to database; fetching out each element from database to carry out display in sequence according to sequence number of arrangement; initial value of element sequence number of arrangement is identical to unique number of identifier 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 ofly realize it is characterized in that method to page display content typesetting, comprise following processing based on the wap website:
Wap Website page content displayed as an element, for being provided with unique identification, each element is numbered;
The arrangement sequence number that vertically sorts between element is set;
The position of laterally sorting between element is set;
Above-mentioned setting is saved in database;
From database, take out each element, arrange sequence number, carry out order and show according to it;
The initial value of described arrangement of elements sequence number is identical with the unique identification of each element numbering.
The described position of laterally sorting between element that is provided with comprises: left, center, right, line feed.
According to each arrangement of elements sequence number,, adjust the sequencing between element with the tabular form series arrangement:
At first, the element that selection is moved writes down its element sequence number;
Secondly, select an element as the benchmark element, write down its element 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, and to arrange sequence number be benchmark arrangement of elements sequence number be moved the number of elements sum to revise it; The order traversal is moved element, and revising its arrangement sequence number is benchmark arrangement of elements sequence number and the current counting sum that is moved element;
At last, according to the arrangement of elements sequence number element is sorted and show.
The element that is moved of described selection is one or more.
Whether modification is moved element and enters a new line:
If do not enter a new line, then being moved element is benchmark with previous element, is arranged in its right-hand member;
If enter a new line, then be arranged in the lower end of previous element;
Revise the left, center, right of each element position, determine the position of element on the present level direction.
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, and the inventive method is that wap page content displayed is usually handled as a unit, 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: by being provided with of element property decorative picture, subject information are saved in the database, for each element is provided with a uniquely identified numbering, the initial value of arrangement of elements sequence number is identical with the unique identification of each element numbering.
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
Revise vertically ordering:
If want to adjust the sequencing between element, at first, the element (one or more) that selection is moved writes down its element unique identification numbering; Secondly, selects an element as benchmark element (must have and can only be one), write down its element unique identification and number, the element that is moved will move to after the benchmark element by following step; Once more, order travels through all elements behind the benchmark element, and to arrange sequence number be benchmark arrangement of elements sequence number be moved the number of elements sum to revise it.The order traversal is moved element, and revising its arrangement sequence number is benchmark arrangement of elements sequence number and the current counting sum that is moved element.At last, according to arrangement of elements sequence number order, take out element and demonstration in turn.
Revise laterally ordering:
Modification is moved the whether line feed attribute of element.If do not enter a new line, then being moved element is benchmark with previous element, is arranged in its right-hand member.If enter a new line, then be arranged in the lower end of previous element.Revise the left, center, right attribute of each element, determine the position of element on the present level direction.
Claims (5)
1, a kind ofly realize it is characterized in that method to page display content typesetting, comprise following processing based on the wap website:
Wap Website page content displayed as an element, for being provided with unique identification, each element is numbered;
The arrangement sequence number that vertically sorts between element is set;
The position of laterally sorting between element is set;
Above-mentioned setting is saved in database;
From database, take out each element, arrange sequence number, carry out order and show according to it;
The initial value of described arrangement of elements sequence number is identical with the unique identification of each element numbering.
2, the method based on wap website realization page display content typesetting as claimed in claim 1 is characterized in that:
The described position of laterally sorting between element that is provided with comprises: left, center, right, line feed.
3, the method based on wap website realization page display content typesetting as claimed in claim 1 or 2 is characterized in that:
According to each arrangement of elements sequence number,, adjust the sequencing between element with the tabular form series arrangement:
At first, the element that selection is moved writes down its element sequence number;
Secondly, select an element as the benchmark element, write down its element 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, and to arrange sequence number be benchmark arrangement of elements sequence number be moved the number of elements sum to revise it; The order traversal is moved element, and revising its arrangement sequence number is benchmark arrangement of elements sequence number and the current counting sum that is moved element;
At last, according to the arrangement of elements sequence number element is sorted and show.
4, the method based on wap website realization page display content typesetting as claimed in claim 3 is characterized in that:
The element that is moved of described selection is one or more.
5, the method based on wap website realization page display content typesetting as claimed in claim 1 or 2 is characterized in that:
Whether modification is moved element and enters a new line:
If do not enter a new line, then being moved element is benchmark with previous element, is arranged in its right-hand member;
If enter a new line, then be arranged in the lower end of previous element;
Revise the left, center, right of each element position, determine the position of element on the present level direction.
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 true CN1776690A (en) | 2006-05-24 |
CN100394429C 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) |
Cited By (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 |
CN113206922A (en) * | 2020-01-30 | 2021-08-03 | 夏普株式会社 | System and image forming system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07210360A (en) * | 1994-01-24 | 1995-08-11 | Hitachi Ltd | Command selection system |
EP0996307A4 (en) * | 1998-05-13 | 2006-08-16 | Matsushita Electric Ind Co Ltd | Network control 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
Cited By (5)
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 |
CN113206922A (en) * | 2020-01-30 | 2021-08-03 | 夏普株式会社 | System and image forming system |
US11861140B2 (en) | 2020-01-30 | 2024-01-02 | Sharp Kabushiki Kaisha | System and image forming system |
Also Published As
Publication number | Publication date |
---|---|
CN100394429C (en) | 2008-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1276340C (en) | Multi-window displaying appts, and multi-window management method | |
CN86105001A (en) | The display control method of multi-window system | |
CN1294721A (en) | Method of searching multimedia data | |
CN1845054A (en) | System and method for dynamically zooming and rearranging display items | |
CN1776690A (en) | Method for realizing page display content typesetting based on wap web site | |
CN101061472A (en) | Method for providing font service on service page and system for executing the method | |
CN102314434A (en) | Method for combined display of page background pictures and device | |
CN105761106A (en) | Object ordering method based on user setting and device thereof | |
CN1869980A (en) | Device and method for page smart configuration | |
CN101840418A (en) | User word library synchronous update method, update server and input method system | |
CN1811759A (en) | Method for building information increment index | |
CN1851713A (en) | Multi-image-text based image search and display method | |
CN106648356A (en) | Trotting horse lamp effect achieving device and method based on Android platform | |
CN1273906C (en) | Method for inputting characters in portable apparatus and portable apparatus using this method | |
CN1719447A (en) | Board pattern designing method of integrated designing element in printed circuit board and its device | |
CN107438194A (en) | A kind of intelligent television UI object rendering methods and intelligent television | |
CN1818975A (en) | Color animation character and utilization | |
CN1369862A (en) | Method and system for creating animation | |
KR100457428B1 (en) | Web sitre constructing and administration method | |
CN1991725A (en) | Edit system and method for function menu operation interface | |
CN1869889A (en) | Method of positive and negative sequence permutation language mixing input in electronic equipment | |
CN1269065C (en) | Data Processing terminal, and method and program for transfering such terminal to expected mark | |
WO2008043236A1 (en) | Method for automatically dividing web page area | |
CN1303552C (en) | Netpage viewing method | |
CN100345164C (en) | Method for synthesizing dynamic virtual images |
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 |