Recommended: Abs Atn Cos, common mathematical functions, etc., detailed explanations [Name] Abs [Category] Mathematical Function [Prototype] Abs(number) [Parameter] Required. Number parameter is any valid numeric expression [return value] of the same number [exception/error] None [
| The following is the quoted content: bgcolor=#f7f7f7> <tr> <td style=LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word> dffadfdaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqsfdffadfdasfdffadfdasfdffadfdasfdffadfdasfdffadfdasfdffadfdasfdffadfdasfdffadfdasfdffadfdasf </td> </tr> </table> |
Here, the main method is to use the css style to control it. There is a style=TABLE-LAYOUT: fixed in the <table> tag, and the description is as follows
grammar:
table-layout : auto | fixed
parameter:
auto : The default automatic algorithm. The layout will be based on the contents of each cell. The table will not be displayed after each cell is read and calculated. Very slow
fixed : an algorithm for fixed layout. In this algorithm, the horizontal layout is based only on the width of the table, the width of the table border, the cell spacing, and the width of the column, and it has nothing to do with the content of the table. At this time, if there is no WORD-WRAP: break-word style in the <td> tag, the content in the table will only be displayed in one part. The specific description of the table is as follows:
grammar:
word-wrap : normal | break-word
parameter:
normal: Allow content to be pushed open to the specified container boundary
break-word : The content will be wrapped within the boundary. Word-break will also occur if needed
VBSCRIPT tag index
Basic operations
Number addition and string connection
- Number subtraction
* Number multiplication
/ Number division
Mod Find the remainder
/ Find the quotient
& String Concatenation
^ power
= equal
<> Not equal
>= greater than or equal to
> Greater than
<= Less than or equal to
< less than
Not non
And
Or
Xor
Cycle and decision-making
if...then if...then...
if ...then...else If... then... not
else if...
select case... Group selection criteria
end select
for ... next count loop
while...wend conditional loop (I)
do while...loop conditional loop (two)
do...loop while conditional loop (three)
do until...loop conditional loop (IV)
do...loop until conditional loop (five)
Mathematical functions
Abs Abs Abs
Sgn plus and negative sign
Convert Hex to Hex
Oct Convert to octal
Sqr Square Root
Int Take integers
Fix takes integers
Round takes integers
Log Logarithm with e as the base
Sin Sine Function
Cos cosine function
Tan tangent function
String processing functions
Len string length
Mid takes part of the string
Left Take part of the string from the beginning of the string
Right Take part of the string from the end of the string
Convert Lcase to lowercase
Ucase to capitalization
Trim Clears space characters at the beginning and end of a string
Ltrim Clears the space character at the beginning of the string
Rtrim Clears the end of string space character
Replace Replace partial characters of string
Instr determines whether it is included in another string (from the start search)
InstrRev determines whether it is included in another string (search from the end)
Space Space character of any number of characters
String Any character of any number of characters
StrReverse Inverting String
Split splits strings with a certain character
Data type conversion function
Convert Cint to Plastic
Convert Cstr to string
Clng is converted to a constant integer
Convert Cbool to Boolean function
Convert Cdate to date function
CSng Convert to Single Accuracy
CDbl to double precision
Date time function
Date Current Date
Time Now
NOw Current date time
DateAdd Add date
DateDiff Two date difference
DateSerial Date Settings
DateValue Date Settings
Year now
Month Now
Day Now
Hour Now
Minute Now Minute
Second Now in seconds
Timer Midnight distance now seconds
TimeSerial Time Setting
TimeValue The part of the time
WeekDay Week name
MonthName Month Name
Other functions
Array generates an array
Asc character ASCII code
Chr ASCII characters
Filter filter arrays
InputBox input window
Join merge elements in array
MsgBox Information Window
Lbound array lower bound
Ubound array upper bound
instruction
Const Set constant
Dim defines variables or arrays
Erase Clear array
ReDim redeclaring array
Randomize Starting Randomize
Rnd Gets a random number
ASP Objects
Session Object
IsEmpty Tests whether the Session variable exists
TimeOut Set the Session variable lifetime
Abandon Force clearing of Session variables
Application Object
IsEmpty Tests whether the Application variable exists
Lock Lock Application variables
Unlock Unlock the Lock command
Cookies object
Expires Set the lifetime of the cookies variable
Connection object
Open Open Connection to the database
Execute Open the Recordset object
Close Close Connection object
Recordset object
movefirst Move the record pointer to the first
movelast Moves the record pointer to the last
movenext Move the record pointer to the next
moveprevious Move the record pointer to the previous one
bof test is the beginning of recordset
eof test whether the end of recordset
open Open Recoreset object
close close recordset object
fields child objects that read data
files.count field number
pagesize Number of records per page
absolutepage set to a certain page
pagecount Total page count
Absoluteposition Jump directly to a record
Microsoft VBscript runtime error list (decimal representation)
error # 5 Invalid procedure call or parameter
error # 5 Invalid procedure call or parameter
error # 6 Overflow
error # 7 Insufficient memory
error # 9 Subscript crosses the boundary
error # 10 This array is of fixed length or temporarily locked
error # 11 Divided by zero
error # 13 Type mismatch
error # 14 insufficient string space
error # 17 Cannot perform the required action
error # 28 Stack Overflow
error # 35 Undefined procedure or function
error # 48 An error occurred while loading the DLL
error # 51 Internal error
error # 52 Incorrect file name or number
error # 53 File not found
error # 54 Error file mode
error # 55 The file is already open
error # 57 Device I/O Error
error # 58 The file already exists
error # 61 Disk full
error # 62 The input exceeds the end of the file
error # 67 Too many files
error # 68 Device not available
error # 70 No permissions
error # 71 Disk not ready
error # 74 Rename cannot have other drive symbols
error # 75 Path/file access error
error # 76 Path not found
error # 91 Object variable not set
error # 92 For loop not initialized
error # 94 Invalid use of Null
error # 322 Cannot create necessary temporary files
error # 424 Missing object
error # 429 ActiveX component cannot create objects
error # 430 Class does not support Automation operations
error # 432 File name or class name not found in Automation operation
error # 438 The object does not support this property or method
error # 440 Automation operation error
error # 445 The object does not support this operation
error # 446 The object does not support named parameters
error # 447 The object does not support the current locale option
error # 448 Named parameter not found
error # 449 Parameters are required
error # 450 Incorrect number of parameters or invalid parameter attribute value
error # 451 Object is not a collection
error # 453 The specified DLL function was not found
error # 455 Code resource lock error
error # 457 This key is associated with an element of the collection
error # 458 The variable uses an Automation type that is not supported in VBScript
error # 462 The remote server does not exist or is not available
error # 481 Invalid image
error # 500 Variable not defined
error # 501 Illegal assignment
error # 502 Objects cannot be safely programmed in Script
error # 503 Object cannot be initialized safely
error # 504 Objects cannot be created safely
error # 505 Invalid or ineligible quotes
error # 506 Class not defined
error # 507 An unexpected error occurred
error # 1001 Insufficient memory
error # 1002 Syntax error
error # 1003 Missing ':'
error # 1005 Missing '('
error # 1006 Missing ')'
error # 1007 Missing ']'
error # 1010 Missing identifier
error # 1011 Missing '='
error # 1012 'If' is missing
error # 1013 'To' is missing
error # 1014 'End' is missing
error # 1015 'Function' is missing
error # 1016 'Sub' is missing
error # 1017 'Then' is missing
error # 1018 'Wend' is missing
error # 1019 'Loop' is missing
error # 1020 'Next' is missing
error # 1021 'Case' is missing
error # 1022 'Select' is missing
error # 1023 Missing expression
error # 1024 Missing statement
error # 1025 Statement not ending
error # 1026 Missing integer constant
error # 1027 'While' or 'Until' is missing
error # 1028 Missing 'While' and 'Until' or statement not ending
error # 1029 'With' is missing
error # 1030 The identifier is too long
error # 1031 Invalid number
error # 1032 Invalid characters
error # 1033 Unfinished string constant
error # 1034 Comment not ended
error # 1037 Invalid use of 'Me' keyword
error # 1038 'loop' statement missing 'do'
error # 1039 Invalid 'exit' statement
error # 1040 Loop control variable 'for' is invalid
error # 1041 Name redefinition
error # 1042 Must be the first statement in the line
error # 1043 Cannot assign values to non-ByVal parameter
error # 1044 Parentheses cannot be used when calling subroutines
error # 1045 Missing text constant
error # 1046 'In' is missing
error # 1047 'Class' is missing
error # 1048 Must be defined inside a class
error # 1049 Let , Set or Get missing in the property declaration
error # 1050 'Property' is missing
error # 1051 In the specification of all attributes, the number of variables must be consistent
error # 1052 Multiple default properties/methods are not allowed in a class
error # 1053 There are no variables for initializing or terminating program in class
error # 1054 The set or let of the attribute must have at least one variable
error # 1055 Error 'Next'
error # 1056 'Default' can only be specified in 'Property' , 'Function' or 'Sub'
error # 1057 'Public' must be specified when specifying 'Default'
error # 1058 'Default' can only be specified in Property Get
error # 4096 Microsoft VBScript compiler error
error # 4097 Microsoft VBScript runtime error
error # 5016 Missing regular expression object
error # 5017 Regular Expression Syntax Error
error # 5018 Error Quantitative Words
error # 5019 ']' is missing in regular expression
error # 5020 ')' is missing in regular expression
error # 5021 Character set crosses boundary
Tree menu:
<SCRIPT language=JavaScript>
var lastObj
function expandIt(obj)
{
if(lastObj != null)
{
if(obj == lastObj)
{
if(obj.style.display == none)
{
obj.style.display = ;
}
else
{
obj.style.display = none
}
}
else
{
lastObj.style.display = none;
obj.style.display = ;
}
}
else
{
obj.style.display = ;
}
lastObj = obj
}
</SCRIPT>
<table width=100% border=0 cellpacing=0 cellpadding=0>
<%
dim id
id = request(id)
dim strsql,rs
strsql=select * from p_type where slanguage=1 and typelevel=1 order by typename
set rs=fgetrslist(strsql)
do while not rs.eof
%>
<tr>
<td height=25 class=LEFTLINKS><img width=30 height=0 align=absmiddle /><b><%if rs(isleaf)=0 then%><a href=# onClick=javascript:expandIt(kb<%=rs(id)%>);return false><%else%><a href=<%=request.ServerVariables(SCRIPT_NAME)%>?idtree=<%=rs(idtree)%> ><%end if%><%=server.HTMLEncode(right((rs(typename)&),len(rs(typename)&)-2))%></a></b></td>
</tr>
<%
IF clng(id)=clng(rs(id)) then
%>
<tr id=kb<%=rs(id)%>>
<%
else
%>
<tr id=kb<%=rs(id)%> style=display:none;>
<%
end if
%>
<td>
<table>
<%
dim rs1
strsql=select * from p_type where parentid=&rs(id)& and slanguage=1 order by typename
set rs1=fgetrslist(strsql)
do while not rs1.eof
%>
<tr><td height=20 class=LEFTLINKS>
<img width=40 height=0 align=absmiddle /><a href=<%=request.ServerVariables(SCRIPT_NAME)%>?idtree=<%=rs1(idtree)%>&id=<%=rs(id)%> ><%=server.HTMLEncode(right((rs1(typename)&),len(rs1(typename)&)-2))%></a></td></tr>
<%
rs1.movenext
loop
rs1.close
set rs1=nothing
%>
</table>
</td>
</tr>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
</table>
Share: How to learn how to reference ASP file The #include command is used to create functions, headers, footers or other elements that need to be reused on multiple pages. #include command By using the #include command, we can insert another ASP file into this text before the server executes an ASP file.