CN106533926A - Webpage information dissemination method and device - Google Patents
Webpage information dissemination method and device Download PDFInfo
- Publication number
- CN106533926A CN106533926A CN201611223009.4A CN201611223009A CN106533926A CN 106533926 A CN106533926 A CN 106533926A CN 201611223009 A CN201611223009 A CN 201611223009A CN 106533926 A CN106533926 A CN 106533926A
- Authority
- CN
- China
- Prior art keywords
- picture
- content
- view
- shared
- webpage
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/10—Multimedia information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a webpage information dissemination method and device. The method comprises the following steps of: according to a triggering instruction of a user, obtaining a content in a predetermined area in a webpage as shared information; forming the shared information into a shared picture; and sharing the shared picture. By means of the method, the content in the predetermined area in the webpage is obtained and used as the shared information according to the triggering instruction of the user at first; then, the shared information forms the shared picture; finally, the shared picture is shared; in the process, the user can perform selection in the webpage according to self requirements, so that the predetermined area is formed; when sharing is carried out, it is not just sharing of an URL address; but, the shared content is converted into the shared picture to share; the shared picture can intuitionally display shared information; the user can directly see the shared content in the picture; and thus, the user experience is improved.
Description
Technical field
The present invention relates to technical field of information processing, in particular to a kind of info web transmission method and device.
Background technology
With the continuous development of mobile network and smart mobile phone, smart mobile phone exists as a kind of important carrier of Information Communication
More and more important position is occupied in daily life.In order to realize information in different applications or in same application
Between propagation, most application software is both provided with sharing function, and user can be wanted outwards propagation by the sharing function
Information, such as network address of picture, word, Quick Response Code, webpage etc. shares into other application or identical application, with convenient
Other people acquisition.
Current Information Sharing mode is usually directly sharing for information.For example, if the information that user wants to share is
Picture format, then be also the same picture after being shared by application;If the information shared is written form, then shared
Afterwards and word.Especially, when it is on webpage that user is wanted at the information shared, then the information finally shared
It is the URL addresses of the webpage.This resulted in want the other users for checking sharing information need first use current application or
Other application, opening original web page by the URL addresses of webpage just can be with so that user can not intuitively from the aobvious of sharing information
Show the content shared is seen in presentation.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of info web transmission method and device.Can
It is picture that user is wanted Content Transformation in the webpage shared so that see that the user of sharing information can intuitively from sharing
The display of information is presented sees the content shared, and lifts customer perception degree.
In a first aspect, embodiments providing a kind of info web transmission method, the method is applied to ARIXTRA operation
In system, including:
According to the triggering command of user, the content of presumptive area on webpage is obtained as sharing information;
Sharing information composition is shared into picture;
The picture of sharing is shared.
With reference in a first aspect, embodiments provide the first possible embodiment of first aspect, wherein:Institute
The content for stating presumptive area on acquisition webpage is specifically included as sharing information:
Obtain the content of the currently active selected areas of webpage;Using the activation selected areas as the presumptive area;
Obtain the scope object corresponding to the content of the activation selected areas;
Content node object is created, and the content node object is filled using the scope object;
The content node object for being filled with the scope object is converted to into character string;
Using the character string as sharing information.
With reference in a first aspect, embodiments provide second possible embodiment of first aspect, wherein:Will
The sharing information composition is shared picture and is specifically included:
By the character string according to default typesetting pattern, content view is generated;
The content view is converted to into view picture;
The view picture is shared into picture as described.
With reference in a first aspect, embodiments provide the third possible embodiment of first aspect, wherein:Institute
Stating sharing information includes:Text and/or picture;
It is described the content view is converted to into view picture before, also include:
Obtain the true path of original image in the webpage;
Whether picture is included in judging the content view;
If it is, the relative path of the picture in the content view to be replaced with the picture correspondence being obtained ahead of time
The true path.
With reference in a first aspect, embodiments provide the 4th kind of possible embodiment of first aspect, wherein:
It is described that the content view is converted to into view picture, specifically include:
Obtain the wide and high of the content view;
Using one empty picture file of wide and high establishment of the content view that reads as the object of Target Photo;
The content of content view is plotted on Target Photo, view picture is formed.
Second aspect, the embodiment of the present invention also provide a kind of info web transmission device, and the device is used for ARIXTRA operation system
In system, including:
Sharing information acquiring unit, for the triggering command according to user, obtains the content conduct of presumptive area on webpage
Sharing information;
Share picture converting unit, for sharing information composition is shared picture;
Shares unit, for the picture of sharing is shared.
With reference to second aspect, the first possible embodiment of second aspect is embodiments provided, wherein:Institute
State sharing information acquiring unit to specifically include:
Activation selected areas content obtaining module, for obtaining the content of the currently active selected areas of webpage;The activation is selected
Middle area is used as the presumptive area;
Scope object acquisition module, for obtaining the scope object corresponding to the content of the activation selected areas;
Content node Object Creation module, for creating content node object, and using the scope object to described interior
Hold node object to be filled;
Character string modular converter, for the content node object for being filled with the scope object is converted to character
String;Using the character string as sharing information.
With reference to second aspect, second possible embodiment of second aspect is embodiments provided, wherein:Institute
State and share picture converting unit and specifically include:
Content view generation module, generates content view for by the character string according to default typesetting pattern;
View picture modular converter, for the content view is converted to view picture, and the view picture is made
Share picture for described.
With reference to second aspect, the third possible embodiment of second aspect is embodiments provided, wherein:Institute
Stating sharing information includes:Text and/or picture;
The picture converting unit of sharing also includes:
True path acquisition module, for obtaining the true path of original image in the webpage;
True path replacement module, for judging whether include picture in the content view;If it is, in will be described
The relative path for holding the picture in view replaces with the corresponding true path of the picture being obtained ahead of time.
With reference to second aspect, the 4th kind of possible embodiment of second aspect is embodiments provided, wherein:
The view picture modular converter is specifically included:
Data acquisition submodule, for obtaining the wide and high of the content view;
Picture file creates subelement, for one empty picture file of wide and high establishment of the content view to read
As the object of Target Photo;
Content view acquisition submodule, for the content of content view is plotted to Target Photo, forms view picture.
Info web transmission method and device that the embodiment of the present invention provided by the embodiment of the present invention is provided, first root
According to the triggering command of user, the content of presumptive area is obtained from webpage as sharing information, then by sharing information group composition
Picture is enjoyed, is most shared picture at last and is shared away, in this process, user can be carried out according to the needs of oneself on webpage
Select, form presumptive area, be also not only that URL addresses are shared when sharing, but sharing contents are converted into
Shared after sharing picture, that shares that picture can be by all means presents sharing information, and user can directly from picture
See the content shared, so as to improve customer perception.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by to be used attached needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to this
A little accompanying drawings obtain other related accompanying drawings.
The flow chart that Fig. 1 shows a kind of info web transmission method that the embodiment of the present invention is provided;
During Fig. 2 shows the info web transmission method provided by the embodiment of the present invention, presumptive area on webpage is obtained
Flow chart of the content as the concrete grammar of sharing information;
During Fig. 3 shows the info web transmission method provided by the embodiment of the present invention, sharing information composition shares picture
Concrete grammar flow chart;
The flow chart that Fig. 4 shows another kind of info web transmission method provided by the embodiment of the present invention;
Fig. 5 shows a kind of structural representation of info web transmission device that the embodiment of the present invention is provided;
During Fig. 6 shows the info web transmission device provided by the embodiment of the present invention, the tool of sharing information acquiring unit
Body structural representation;
During Fig. 7 shows the info web transmission device provided by the embodiment of the present invention, share the tool of picture converting unit
Body structural representation;
During Fig. 8 shows the info web transmission device provided by the embodiment of the present invention, it is single that another kind shares picture conversion
The concrete structure schematic diagram of unit;
During Fig. 9 shows the info web transmission device provided by the embodiment of the present invention, the tool of view picture modular converter
Body structural representation.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
Middle accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only
It is a part of embodiment of the invention, rather than the embodiment of whole.The present invention generally described and illustrated in accompanying drawing herein is real
The component for applying example can be arranged and be designed with a variety of configurations.Therefore, below to the present invention's that provides in the accompanying drawings
The detailed description of embodiment is not intended to limit the scope of claimed invention, but is merely representative of the selected reality of the present invention
Apply example.Based on embodiments of the invention, the institute obtained on the premise of creative work is not made by those skilled in the art
There is other embodiment, belong to the scope of protection of the invention.
At present the application software on Intelligent mobile equipment is when sharing information, is directly sharing for information, example
If such as the information shared by user, unprocessed form is picture, then what which was shared is exactly picture;Unprocessed form is word,
What which was shared is exactly word;Unprocessed form is webpage, and what which was shared is exactly the URL addresses of webpage.It is this share result in
Other users want to open certain user when wanting the info web shared, and need to open former webpage by URL addresses.This results in
, the content shared is seen in the display presentation from sharing information that user can not be by all means.Simultaneously as user may simply want to
By the partial content on webpage, rather than full content is shared with other users, but current this Information Sharing mode is
Cannot realize, based on this, a kind of info web transmission method that the application is provided, device and system, it may be possible to will use
It is picture that the Content Transformation in the webpage shared is wanted at family so that see that the user of sharing information can intuitively from sharing information
Display present and see the content shared, lift customer perception degree.Meanwhile, enable to user again and only share which want point
The information enjoyed.
For ease of understanding to the present embodiment, first to a kind of info web propagation side disclosed in the embodiment of the present invention
Method describes in detail, and the method can be used for intelligent mobile terminal, is particularly applied to the intelligent mobile using Android system
In terminal, such as in the application software installed by mobile phone, panel computer etc..Which is used for the info web shared for wanting user
Picture is converted to, and then user profile is shared.
It is shown in Figure 1, the info web transmission method provided by the embodiment of the present invention, including:
S101:According to the triggering command of user, the content of presumptive area on webpage is obtained as sharing information.
When implementing, user needs its information for wanting to share is chosen from webpage first.Usually, webpage is all
Selected function can be provided a user with, by the selected function, user can select presumptive area on webpage.The presumptive area can
To include:Word and/or picture, likewise, the presumptive area can be with only one of which, it is possibility to have multiple.In user to webpage
On content selected, and then after forming presumptive area, can triggering terminal sharing function so that terminal generates corresponding
Triggering command.Terminal is triggered according to the triggering command, obtains automatically the content of presumptive area on webpage as sharing information.
By taking Android system as an example:Android system is Webview for the control for loading webpage on interface.To be obtained
The content of presumptive area is the content in Webview, but which is selected interior in fact, Webview is not provided with acquisition
The interface of appearance, or even successively win and take the interface of its inner content and all do not have, therefore, the content of direct access presumptive area is cannot be real
Existing.But there is provided Java (programming language of Android system) and its content JS (JavaScript, one kind in Webview
High-level programming language, is performed by explaining, is a regime type, OO literal translation language) interface that interacts, because
This can obtain the content of presumptive area in webpage by JS.
In Java is by JS acquisition Webview during content, need Java data to be initiated to JS and transfer instruction, lead to
Know that JS transfers the content of presumptive area from Webview.JS be successfully deployed into from Webview presumptive area content it
Afterwards, Java is reinformed, so that Java receives the content of the presumptive area transferred by JS.
In order to realize said process, first, JS is write at Java ends obtain the successful call back function of data, for example can be by
The call back function can be named as getWebData with call back function, and the parameter of the call back function is exactly the page number that JS sections get
According to string format.Secondly, need call back function is registered to JS by Webview interfaces, so that JS can be used being somebody's turn to do
Call back function.The addJavascriptInterface methods of webview can be for example called, its parameter is exactly to add a JS
The Java end interface methods that can be called.Finally, in addition it is also necessary to realize that the interface of JS is called at Jaca ends:Due to the logic shared actually
It is that Java (Android system) ends have been adjusted, so needing Java ends first to notify that JS goes Webview to obtain the content of presumptive area.
Webview provides loadUrl methods to call JS codes, and its parameter is exactly the character string of JS codes.Further, since different peaces
In tall and erect version, the used interface functions of Java are different, therefore consider adaptation issues, and in android more than 4.4, this connects
Mouth is replaced by evaluateJavascript, so needing by performing Build.VERSION.SDK_INT>=
Build.VERSION_CODES.KITKAT judging the version of android more than 4.4, more than when use
EvaluateJavascript, otherwise uses loadUrl methods.
In addition, it should be noted that the above-mentioned method for realizing obtaining the content of presumptive area on webpage in Android system
An only example, in other systems, or when Android system change its correlation function for being used when
Wait, then if above-mentioned Webview provides other interface functions, then same Ei calls JS using other interface even functions
Code, specifically can specifically be set according to actual situation, and here is not limited.
Specifically, it is shown in Figure 2, the embodiment of the present invention provide it is a kind of obtain webpage on presumptive area content as point
The concrete grammar of information is enjoyed, including:
S201:Obtain the content of the currently active selected areas of webpage;Using the activation selected areas as the presumptive area.
S202:Obtain the scope object corresponding to the content of the activation selected areas.
S203:Content node object is created, and the content node object is filled using the scope object.
S204:The content node object for being filled with the scope object is converted to into character string;And by the character
String is used as sharing information.
When implementing, the content in webpage is directly obtained selected content when being selected.
Still by taking Android system as an example, it is desirable to which the content for obtaining presumptive area in webpage will obtain webpage first
Selection objects, Selection objects represent the currently active selected areas, i.e., highlighted text block, and/or user in document
Can perform other elements of some operations.The typical use of Selection objects is the input as user, so as to system identification
User is being processed to which part of document, or is exported to user as the result of a certain operation, is obtained here
Selection to as if in order to subsequently obtain the content that user is chosen on webpage, web exploitation in Selection objects
Can be obtained by using the window.getSelection () function of JS codes, it is contemplated that ARIXTRA different editions
The realization of Webview may be different, in order to keep compatibility, here can be by window.document.getSelection
Call, which method can get the currently active content chosen of webpage, which function just used.
Due to being only the content for obtaining the currently active selected areas of webpage in above process, and in fact, system is
The currently active content chosen of institute cannot be used to generate picture, accordingly, it would be desirable to obtain activate corresponding to the content chosen
Scope object.The scope object is actually HTML code corresponding with the content of the currently active selected areas.
By taking Android system as an example, it is possible to use call its method getRangeAt (0) to obtain after obtaining Selection objects
Its scope object is taken, scope object is named as into range here.After getting the scope object of content, need to create one
Html node objects are used for preserving content, for example, div tag, div can be used to represent document content label, mark is created in JS
Signing can be using window.document.createElement (' div') method, and its parameter is exactly tag name, will be created
Label be named as content.
After obtaining context object, its inner content can be replicated portion and be filled in content, for follow-up
Java layers use, content is called its appendChild method for its addition content, range object references its
CloneContents methods replicate its content.Meanwhile, and because content is a label object, need its turn
Changing character string into could facilitate java layers to use, and can directly invoke its innerHTML member here and be returned in its character string
Hold.
The content of presumptive area on webpage is obtained in that by said method.It should be noted that in different terminal systems
In system, as the aspects such as system architecture, constructed function, web displaying there are many differences, therefore there are other to obtain net
The method of the content of presumptive area on page, can specifically be set according to actual situation.
S102:The sharing information is shared into picture according to composition.
When implementing, due to having obtained the content of presumptive area as sharing information, subsequently can be by
Sharing information composition shares picture.
Specifically, shown in Figure 3, the embodiment of the present invention also provides a kind of constitute sharing information and shares the concrete of picture
Method, the method include:
S301:By the character string according to default typesetting pattern, content view is generated;
When implementing, as the content node object for being filled with the scope object is turned by above-mentioned S204
It is changed to character string so that Java can be called to the character string.And the content included by the character string is sharing information
HTML code, therefore, it can the customization operations of pattern are carried out for sharing information, i.e., using a new Webview, will share
The corresponding HTML code of information, is converted into corresponding view, shows what is chosen, or talk about that user wants to share share letter
Breath, the sharing information are displayed in a WEB page, while the typesetting pattern of setting can also will be needed, to institute in WEB page
The content of display carries out typesetting or enters edlin, such as, in Android system, the pattern of webpage is typically carried out by css files
Performance, it is possible to oneself define a set of css and be placed in assets to change the pattern of new Webview, so as to change follow-up life
The pattern of picture is produced, thus can be stored under assets Resource TOCs with files such as self-defined pattern css and be read out, most throughout one's life
Into content view, the content view is a new webpage actually, contain that user wants to share in the web page share in
Hold.
It should be noted that sharing information is possible in the typesetting pattern and its typesetting pattern in former webpage of content view
Can be different.
S302:The content view is converted to into view picture, and the view picture is shared into picture as described.
Specifically include when content view is converted to view picture:
Obtain the wide and high of the new content view for creating.
Using one empty picture file of wide and high establishment of the content view that reads as the object of Target Photo.
The content of content view is plotted on Target Photo, view picture is formed.
Still by taking Android system as an example:Its getWidth () is directly invoked, getHeight () method obtains Webview's
It is wide and high.An empty bitmap (bitmap text is created by calling Android system to provide Bitmap.createBitmap methods again
Part) object as Target Photo object.But as the view of ARIXTRA can only draw on canvas object, it is impossible to will directly regard
Picture on bitmap objects, therefore, so needing to first pass through bitmap creates a Canvas object, bitmap its structure the most
The parameter of method is made, then calls the draw method of webview, parameter to transmit Canvas objects, this just paints Webview contents
Make on bitmap.
S103:The picture of sharing is shared.
The info web transmission method provided by the embodiment of the present invention, first the triggering command according to user, obtains from webpage
The content of presumptive area is taken as sharing information, sharing information composition is shared into picture then, is most shared picture at last and is shared
Go, in this process, user can be selected according to the needs of oneself on webpage, form presumptive area, what is shared
When be also not only that URL addresses are shared, but sharing contents are converted into share shared after picture, share picture
Can be by all means sharing information is presented, user directly can see the content shared from picture, so as to improve visitor
Experience at family.
Shown in Figure 4, the embodiment of the present invention also provides another info web transmission method, in above-mentioned several enforcements
Example on the basis of, it is described the content view is converted to into view picture before, also include:
S401:Obtain the true path of original image in the webpage;
S402:Whether picture is included in judging the content view;
S403:If it is, the relative path of the picture in the content view to be replaced with the figure being obtained ahead of time
The corresponding true path of piece.
When implementing, as the picture included in former webpage may be used as a part for sharing contents
Chosen by user, and this part picture HTML in show that picture path is probably with relative path, when generating in view
After appearance, be the equal of by by first having access to path locally, it is therefore desirable to the path of the part picture is reduced into into which true
Real path address.
By taking Android system as an example, when needing to obtain the true path of original image in webpage, original is first listened to
The onLoadResource methods of Webview, onLoadResource methods are the readjustments that webview loads resource, here
The resource of relative path all can be generated absolute path (i.e. true path), so the list of a character string is defined here, will
All paths with .jpg ..png and .gif save.
In replacing new webview, picture relative path is absolute path, can rewrite Webview status monitorings here
ShouldInterceptRequest methods, this callback method can intercept all requests with hyperlink in webview, institute
To add the logic that url judges in adjusting back in shouldInterceptRequest, judge whether photo current url preserves character
Sub- content in tandem table because relative path is the subset of absolute path certainly, such as relative path be "/abc.jpg " its
Absolute path is " http://www.abc.com/abc.jpg ", it is only necessary to judge whether absolute path just includes relative path
OK, the contains methods of java character string String classes can be called here to judge, when once be to judge that relative path is
The subset of absolute path, just covers relative path with absolute path.
Further embodiment of this invention also provides a kind of info web transmission device, shown in Figure 5, embodiment of the present invention institute
The info web transmission device of offer includes:
Sharing information acquiring unit, for the triggering command according to user, obtains the content conduct of presumptive area on webpage
Sharing information;
Share picture converting unit, for sharing information composition is shared picture;
Shares unit, for the picture of sharing is shared.
In the present embodiment, sharing information acquiring unit, share concrete function and the friendship of picture converting unit and shares unit
Mutually mode, can be found in the record of the corresponding embodiments of Fig. 1, will not be described here.
The info web transmission device provided by the embodiment of the present invention, first using sharing information acquiring unit, according to user
Triggering command, the content of presumptive area is obtained from webpage as sharing information, then using sharing picture converting unit
Sharing information composition is shared into picture, finally will be shared picture using shares unit and be shared away, in this process, Yong Huke
Selected on webpage with the needs according to oneself, formed presumptive area, be also not only to URL addresses when sharing
Share, but sharing contents are converted into share shared after picture, share that picture can be by all means by sharing information is in
Reveal and, user directly can see the content shared from picture, so as to improve customer perception.
Further embodiment of this invention additionally provides a kind of concrete structure of sharing information acquiring unit, shown in Figure 6, point
Enjoy information acquisition unit to specifically include:
Activation selected areas content obtaining module, for obtaining the content of the currently active selected areas of webpage;The activation is selected
Middle area is used as the presumptive area;
Scope object acquisition module, for obtaining the scope object corresponding to the content of the activation selected areas;
Content node Object Creation module, for creating content node object, and using the scope object to described interior
Hold node object to be filled;
Character string modular converter, for the content node object for being filled with the scope object is converted to character
String;Using the character string as sharing information.
In the present embodiment, activation selected areas content obtaining module, scope object acquisition module, content node Object Creation mould
The concrete function and interactive mode of block and character string modular converter, can be found in the record of the corresponding embodiments of Fig. 2, and here is no longer gone to live in the household of one's in-laws on getting married
State.
Further embodiment of this invention additionally provides a kind of concrete structure for sharing picture converting unit, shown in Figure 7, point
Enjoy picture converting unit to specifically include:
Content view generation module, generates content view for by the character string according to default typesetting pattern;
View picture modular converter, for the content view is converted to view picture, and the view picture is made
Share picture for described.
In the present embodiment, the concrete function and interactive mode of content view generation module and view picture modular converter can
Referring to the record of the corresponding embodiments of Fig. 3, will not be described here.
Further embodiment of this invention additionally provides the concrete structure that another kind shares picture converting unit, shown in Figure 8,
Sharing picture converting unit also includes:
True path acquisition module, for obtaining the true path of original image in the webpage;
True path replacement module, for judging whether include picture in the content view;If it is, in will be described
The relative path for holding the picture in view replaces with the corresponding true path of the picture being obtained ahead of time.
In the present embodiment, the concrete function and interactive mode of true path acquisition module and true path replacement module can
Referring to the record of the corresponding embodiments of Fig. 4, will not be described here.
Further embodiment of this invention additionally provides a kind of concrete structure of view picture modular converter, shown in Figure 9, depending on
Figure picture modular converter is specifically included:
Data acquisition submodule, for obtaining the wide and high of the content view;
Picture file creates subelement, for one empty picture file of wide and high establishment of the content view to read
As the object of Target Photo;
Content view acquisition submodule, for the content of content view is plotted to Target Photo, forms view picture.
In the present embodiment, data acquisition submodule, picture file create the tool of subelement and content view acquisition submodule
Body function and interactive mode, can be found in the record of the corresponding embodiments of Fig. 3, will not be described here.
Info web transmission device method and the computer program of device that the embodiment of the present invention is provided, including
The computer-readable recording medium of program code is stored, the instruction that described program code includes can be used to perform previous methods reality
The method described in example is applied, is implemented and be can be found in embodiment of the method, be will not be described here.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description
With the specific work process of device, the corresponding process in preceding method embodiment is may be referred to, be will not be described here.
If the function is realized using in the form of SFU software functional unit and as independent production marketing or when using, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
Claims (10)
1. a kind of info web transmission method, the method are applied in Android operation system, it is characterised in that included:
According to the triggering command of user, the content of presumptive area on webpage is obtained as sharing information;
Sharing information composition is shared into picture;
The picture of sharing is shared.
2. method according to claim 1, it is characterised in that the content of presumptive area is used as sharing on the acquisition webpage
Information is specifically included:
Obtain the content of the currently active selected areas of webpage;Using the activation selected areas as the presumptive area;
Obtain the scope object corresponding to the content of the activation selected areas;
Content node object is created, and the content node object is filled using the scope object;
The content node object for being filled with the scope object is converted to into character string;
Using the character string as sharing information.
3. method according to claim 2, it is characterised in that sharing information composition is shared into picture and is specifically included:
By the character string according to default typesetting pattern, content view is generated;
The content view is converted to into view picture;
The view picture is shared into picture as described.
4. method according to claim 3, it is characterised in that the sharing information includes:Text and/or picture;
It is described the content view is converted to into view picture before, also include:
Obtain the true path of original image in the webpage;
Whether picture is included in judging the content view;
If it is, the relative path of the picture in the content view to be replaced with the corresponding institute of the picture being obtained ahead of time
State true path.
5. the method according to claim 3 or 4, it is characterised in that described that the content view is converted to into view picture,
Specifically include:
Obtain the wide and high of the content view;
Using one empty picture file of wide and high establishment of the content view that reads as the object of Target Photo;
The content of content view is plotted on Target Photo, view picture is formed.
6. a kind of info web transmission device, the device are applied in Android operation system, it is characterised in that included:
Sharing information acquiring unit, for the triggering command according to user, obtains the content of presumptive area on webpage as sharing
Information;
Share picture converting unit, for sharing information composition is shared picture;
Shares unit, for the picture of sharing is shared.
7. device according to claim 6, it is characterised in that the sharing information acquiring unit is specifically included:
Activation selected areas content obtaining module, for obtaining the content of the currently active selected areas of webpage;By the activation selected areas
As the presumptive area;
Scope object acquisition module, for obtaining the scope object corresponding to the content of the activation selected areas;
Content node Object Creation module, for creating content node object, and using the scope object to the content section
Point object is filled;
Character string modular converter, for the content node object for being filled with the scope object is converted to character string;Will
The character string is used as sharing information.
8. device according to claim 7, it is characterised in that the picture converting unit of sharing is specifically included:
Content view generation module, generates content view for by the character string according to default typesetting pattern;
View picture modular converter, for the content view is converted to view picture, and using the view picture as institute
State and share picture.
9. device according to claim 8, it is characterised in that the sharing information includes:Text and/or picture;
The picture converting unit of sharing also includes:
True path acquisition module, for obtaining the true path of original image in the webpage;
True path replacement module, for judging whether include picture in the content view;If it is, the content is regarded
The relative path of the picture in figure replaces with the corresponding true path of the picture being obtained ahead of time.
10. device according to claim 8 or claim 9, it is characterised in that the view picture modular converter is specifically included:
Data acquisition submodule, for obtaining the wide and high of the content view;
Picture file creates subelement, for using the content view that reads it is wide and high create an empty picture file as
The object of Target Photo;
Content view acquisition submodule, for the content of content view is plotted to Target Photo, forms view picture.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611223009.4A CN106533926B (en) | 2016-12-27 | 2016-12-27 | Webpage information spreading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611223009.4A CN106533926B (en) | 2016-12-27 | 2016-12-27 | Webpage information spreading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106533926A true CN106533926A (en) | 2017-03-22 |
CN106533926B CN106533926B (en) | 2020-06-12 |
Family
ID=58338413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611223009.4A Active CN106533926B (en) | 2016-12-27 | 2016-12-27 | Webpage information spreading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106533926B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108268662A (en) * | 2018-02-09 | 2018-07-10 | 平安科技(深圳)有限公司 | Social graph generation method, electronic device and storage medium based on the H5 pages |
CN108322384A (en) * | 2018-01-09 | 2018-07-24 | 论客科技(广州)有限公司 | Mail sharing method, apparatus and system based on instant messaging |
CN108920518A (en) * | 2018-06-04 | 2018-11-30 | 上海东方报业有限公司 | Data creation method and equipment |
CN109145239A (en) * | 2018-07-31 | 2019-01-04 | 深圳点猫科技有限公司 | A kind of multi-platform screenshot sharing method and electronic equipment based on subject game |
CN109525652A (en) * | 2018-10-31 | 2019-03-26 | 北京小米移动软件有限公司 | Information sharing method, device, equipment and storage medium |
WO2020258479A1 (en) * | 2019-06-26 | 2020-12-30 | 网宿科技股份有限公司 | Webpage frame acquisition method, server and storage medium |
CN112162687A (en) * | 2020-10-22 | 2021-01-01 | 腾讯科技(深圳)有限公司 | Picture generation method and device, storage medium and electronic equipment |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102982144A (en) * | 2012-11-22 | 2013-03-20 | 东莞宇龙通信科技有限公司 | Method and system for sharing webpage information |
CN103731467A (en) * | 2013-09-26 | 2014-04-16 | 西安酷派软件科技有限公司 | Webpage information sharing method and communication terminal |
CN104035753A (en) * | 2013-03-04 | 2014-09-10 | 优视科技有限公司 | Double-WebView customized page display method and system |
CN104035929A (en) * | 2013-03-04 | 2014-09-10 | 腾讯科技(深圳)有限公司 | Webpage screenshot method and device |
CN104077323A (en) * | 2013-03-29 | 2014-10-01 | 中国移动通信集团公司 | Method and device for converting web page content to multimedia messages |
CN104333531A (en) * | 2013-07-22 | 2015-02-04 | 腾讯科技(深圳)有限公司 | Network resource sharing and obtaining method, device, terminal |
CN104461283A (en) * | 2014-11-18 | 2015-03-25 | 小米科技有限责任公司 | Network view screen shooting method and device and electronic device |
CN104991930A (en) * | 2015-07-01 | 2015-10-21 | 安一恒通(北京)科技有限公司 | Webpage information sharing method and apparatus |
CN105653178A (en) * | 2015-05-28 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Information sharing method and apparatus |
CN105760540A (en) * | 2016-03-15 | 2016-07-13 | 广州阿里巴巴文学信息技术有限公司 | Method and equipment for processing webpage and electronic equipment |
CN106815316A (en) * | 2016-12-23 | 2017-06-09 | 北京奇虎科技有限公司 | Method, device and mobile terminal that content of pages is shared |
-
2016
- 2016-12-27 CN CN201611223009.4A patent/CN106533926B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102982144A (en) * | 2012-11-22 | 2013-03-20 | 东莞宇龙通信科技有限公司 | Method and system for sharing webpage information |
CN104035753A (en) * | 2013-03-04 | 2014-09-10 | 优视科技有限公司 | Double-WebView customized page display method and system |
CN104035929A (en) * | 2013-03-04 | 2014-09-10 | 腾讯科技(深圳)有限公司 | Webpage screenshot method and device |
CN104077323A (en) * | 2013-03-29 | 2014-10-01 | 中国移动通信集团公司 | Method and device for converting web page content to multimedia messages |
CN104333531A (en) * | 2013-07-22 | 2015-02-04 | 腾讯科技(深圳)有限公司 | Network resource sharing and obtaining method, device, terminal |
CN103731467A (en) * | 2013-09-26 | 2014-04-16 | 西安酷派软件科技有限公司 | Webpage information sharing method and communication terminal |
CN104461283A (en) * | 2014-11-18 | 2015-03-25 | 小米科技有限责任公司 | Network view screen shooting method and device and electronic device |
CN105653178A (en) * | 2015-05-28 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Information sharing method and apparatus |
CN104991930A (en) * | 2015-07-01 | 2015-10-21 | 安一恒通(北京)科技有限公司 | Webpage information sharing method and apparatus |
CN105760540A (en) * | 2016-03-15 | 2016-07-13 | 广州阿里巴巴文学信息技术有限公司 | Method and equipment for processing webpage and electronic equipment |
CN106815316A (en) * | 2016-12-23 | 2017-06-09 | 北京奇虎科技有限公司 | Method, device and mobile terminal that content of pages is shared |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108322384A (en) * | 2018-01-09 | 2018-07-24 | 论客科技(广州)有限公司 | Mail sharing method, apparatus and system based on instant messaging |
CN108268662A (en) * | 2018-02-09 | 2018-07-10 | 平安科技(深圳)有限公司 | Social graph generation method, electronic device and storage medium based on the H5 pages |
CN108268662B (en) * | 2018-02-09 | 2020-11-10 | 平安科技(深圳)有限公司 | Social graph generation method based on H5 page, electronic device and storage medium |
CN108920518A (en) * | 2018-06-04 | 2018-11-30 | 上海东方报业有限公司 | Data creation method and equipment |
CN108920518B (en) * | 2018-06-04 | 2022-04-01 | 上海东方报业有限公司 | Data generation method and equipment |
CN109145239A (en) * | 2018-07-31 | 2019-01-04 | 深圳点猫科技有限公司 | A kind of multi-platform screenshot sharing method and electronic equipment based on subject game |
CN109525652A (en) * | 2018-10-31 | 2019-03-26 | 北京小米移动软件有限公司 | Information sharing method, device, equipment and storage medium |
CN109525652B (en) * | 2018-10-31 | 2021-07-23 | 北京小米移动软件有限公司 | Information sharing method, device, equipment and storage medium |
US11122109B2 (en) | 2018-10-31 | 2021-09-14 | Beijing Xiaomi Mobile Software Co., Ltd. | Method for sharing information, electronic device and non-transitory storage medium |
WO2020258479A1 (en) * | 2019-06-26 | 2020-12-30 | 网宿科技股份有限公司 | Webpage frame acquisition method, server and storage medium |
CN112162687A (en) * | 2020-10-22 | 2021-01-01 | 腾讯科技(深圳)有限公司 | Picture generation method and device, storage medium and electronic equipment |
CN112162687B (en) * | 2020-10-22 | 2022-07-29 | 腾讯科技(深圳)有限公司 | Picture generation method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106533926B (en) | 2020-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106533926A (en) | Webpage information dissemination method and device | |
EP3816823A1 (en) | Webpage rendering method, device, electronic apparatus and storage medium | |
US10740114B2 (en) | Component invoking method and apparatus, and component data processing method and apparatus | |
EP3522034B1 (en) | Third party application communication api | |
US20120159310A1 (en) | Method for converting mobile web application into native application and apparatus using the same | |
US10033835B2 (en) | System, method, and device for remotely operating a server | |
KR101025949B1 (en) | Fine-grained control of z-order elements in a xml presentation | |
CN105117234B (en) | A kind of web control combination method | |
CN110708235B (en) | Message generation method and device, storage medium and computer equipment | |
CN112068911B (en) | Electronic form generation method, device, system, equipment and medium | |
EP1199643A1 (en) | Method and apparatus for providing data adapted to a user environment | |
CN109871210A (en) | Web page element amending method, device, equipment and storage medium | |
WO2013109858A1 (en) | Design canvas | |
CN105593810A (en) | Application-to-application launch windowing | |
CN108345683A (en) | Webpage display process, device, terminal and storage medium | |
CN113722630B (en) | Method and equipment for presenting resource data in web page based on client rendering | |
CN114862470A (en) | Advertisement resource adaptation method and device, computer equipment and storage medium | |
CN114528510A (en) | Webpage data processing method and device, electronic equipment and medium | |
CN114281463A (en) | Form interface format configuration and interface display method, equipment and medium | |
KR101728786B1 (en) | Component-based dynamic image display system and method using the svg file format | |
CN113254830A (en) | Webpage configuration method and device, electronic equipment and storage medium | |
CN105630149A (en) | Techniques for providing a user interface incorporating sign language | |
CN112068828A (en) | Title control generation method, device, system, equipment and medium | |
KR101987183B1 (en) | Apparatus, method and server for app development supporting front-end development using app development utility | |
CN113961279A (en) | Page rendering method, device, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |