Web content intercepting components V1.0

zhaozj2021-02-16  89

Transfer from Blueidea Name: Meng Xiaoyang Email: Webmaster # gznets.comTitle: Web Content Intercept Component from: http://www.oesun.com/blog/blogview.asp?logid=263 Download Components and Test Source Codes: Click to download technology points : You can intercept the fixed string, or you can take a page to take a page. Installation method: After downloading the above file package, after decompression, double-click REG.BAT to register the component. Then put it inside Test1.asp, Test2.asp, Test3.asp Copy to your IIS virtual directory below. Then browse through the browser (specific IIS configuration, etc.) The following is described below: getURL (URL) method This method It is the content that returns a web page. The parameter is only one. Let's take a look at the example Test1.asp: <% DIM TEST, URLSET TEST = Server.createObject ("gznets.echars") URL = "http://www.gznets .com / error.html "Response.write test.geturl (URL) SET TEST = Nothing%> The above example will return http://www.gznets.com/error.html Page content management method Manage method has three ways In the calling manage method, you must pass a series of parameters. Method: Returns the content between the flag 1 and the flag 2, and includes the flag 1 and the flag 2 itself. For example, return

The content between>, including the flag
parameters: inputstr into the intercepted string (the string can be returned by the page content) INPUTTAG1 Input Sign 1 INPUTTAG2 Incoming Sign 2 InputType Incomputory 0 OutputStr Output The last intercepted string

Example Test2.asp: <% DIM TEST, STRSET TEST = Server.createObject ("gznets.echars") str = "This is the

Test Test Test Test "Test.InputStr = strTest.Inputtag1 =" "Test.Inputstr = strTest.inputtag1 = "" set test = not%> mode two function: return logo 1 The content between the flag 2, but does not include the flag 1 and the flag 2 itself. For example, return the content between
, but does not include the flag
parameters:

InputStr is incorporated into the intercepted string (the string can be returned by the web page that is just returned) INPUTTAG1 incoming flag 2 INPUTTAG2 Input Sign 2 INPUTTYPE Introduction Section 1 (Note that the incoming method here must be changed 1) OutputStr Output The last intercepted string example can modify Test2.asp yourself, change the InputType inside to 1 to see the effect ~~~: Way three function: It is difficult to understand this function. We will explain it through some examples. , For example, string str = "This is the

" Because "" is only one (of course, other unique logo), then find "", "<" before "". Then set the tail mark. We can find "", then find ">" ">" in "". This first and tail position is determined. Parameters: InputStr is incorporated into the intercepted string (the string can be returned by the web page) INPUTTAG1 The incoming mark 1, for example, "" INPUTPOS1 is sent to the right search or to the left search. There are two values: indicate the right - indicate the reference sign of the left INPUTTAG1TAG to the flag 1. Just want to Right to the left search. For example, "<" INPUTNUM1 passed the right of the right or left side of the search flag 1 InputTag1 Tag INPUTTAG2 Input, for example, "" INPUTPOS2 is searching to right. Search to the left. There are two values: indicate the right - indicate the reference flag of the left INPUTTAG2TAG passage flag 1. That is to search to the left search. For example, ">" inputnum2 incompagination sign 2 The first or left side of the first INPUTTAG2TAG INPUTTYPE Input Section 2 (Note that the incoming method here must be changed to 21) OutputStr output last intercepted string example Test3.asp: Purpose: We will remove blue ideals (WWW .boeidea.com) About Site | Advertising Services | Contact Webmaster | Copyright Privacy | Link | Contribution Hotline | Site Map "Content <% Dim Test, Urlset Test = Server.createObject (" gznets.echars ") URL = "http://www.blueidea.com /index.asp"test.inputStr=test.geturl (URL) Test.inputTAG1= "About site" Test.inputnum1 = 1 "indicates that only one test.inputpos1 =" - "is to search to the left search Test.inputTag1Tag = " Because I am very small, this article and this component are very rushed, it is definitely in short or imperfect, I hope all netizens pointed. Very thank you

转载请注明原文地址:https://www.9cbs.com/read-12909.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.040, SQL: 9
Test Test Test TABLE> Test", we can find "