Control Displaycalendar (Obj_month.innertext-1,obj_year.innertext);
}
function Numberofdays (month,year)//Get the number of days per month to determine excepting leap year{var numdays=new Array (31,28,31,30,31,30,31,31,30,31,30,31);N=numdays[month];
Control Obj_year.innertext=parseint (num_year) +1; Number of years increased
Displaycalendar (Obj_month.innertext-1,obj_year.innertext);
}
function Plusyear ()
{
var Obj_year=document.getelementbyid ("year");
var Obj_month=document.getelementbyid (
Control
New Document function showdb ()//Display control/hidden space{var currentdate=new Date ();var cyear=currentdate.getfullyear ();var cmonth=currentdate.getmonth ();var cday=currentdate.getday ();var A=document.getelementbyid
js| Advertising 1, to determine whether the Web page is expired getTime ()
Used to implement advertising expiration.
determine if the page is expired
2. Online clock instance settimeout () function
If no effect, please refresh
Where:
Object
Date ObjectTo use the Date object, you must be a date instance:
Variable name =new Date ();
Method
Getday (), GetDate (), getHours (), getminutes (), getmonth (), getseconds (), GetTime (),
getTimezoneOffset (), getyear ()
and
Reference | objects | Array gettimezoneoffset () returns the time zone deviation value (the number of hours between Greenwich Mean time and the time zone setting of the computer where the script is run)
GetYear () return year
Parse () returns the
cookie| Beginners {
var arg = name + "=";
var alen = Arg.length;
var clen = document.cookie.length;
var i = 0;
while (I var j = i + Alen;
if (Document.cookie.substring (i, j) = arg)
Return Getcookieval (j);
i = Document.cookie.indexOf ("", I) +
cookie| Beginners
Homepagemanual redirectioncookie reset
var bvisitedtoday = false;
var lastvisit = GetCookie ("lastvisit");if (lastvisit!= null){lastvisit = 1 * lastvisit;var lasthere = new Date (lastvisit);var rightnow = new Date ();
if
cookie| Beginners
After experimenting and studying the sample program above, you will find that:
1. You are not able to read and display cookies. If you want to look at this cookie you need to specify another string variable that is the same as
Article Description: In a word, the physical and chemical properties of the proposed materialization, flattening has the advantage of flattening, only the combination of the two can make ease of use and simplicity to be better reflected.
function | date ' Date function Package Datapackage
%>
'**********************
' Purpose: Convert date to standard date string
' Input: Date
' Output: Date string, such as: 2002-12-22
'**********************
Function Getdatestr (ddate)
Dim strtmp
function |
DateDiff function
DescribeReturns the time interval between two dates.GrammarDateDiff (interval, date1, date2 [, firstdayofweek][, FirstWeekOfYear]])The syntax for the DATEDIFF function has the following parameters:
Parameter
Generate Html| News System
The general transmission of the ID value of the news system is more likely to be produced is not very complicated.But the news that we see on Sina or other portal class website is not passed by ID, but an HTML or
Function
Many functions in ASP, we should focus on learning functions: function name, function function, function return value and example.
1. Function Array ()Function: Create a number of variablesFormat: Array (list)Parameters: The list is the
Function
24. Function LCase ()
Function: Change the character of a character type to a small write character.
Format: Lcase (String)
Parameters: String is the number of string changes
Example:
Str= "This is lcase!"
Response.Write Lcase
Foreword: Now on the internet forum everywhere has, but I do not know whether you have encountered this kind of situation: in the messy discussion information to look for oneself wants the content, is a very time-consuming laborious matter, until
(3) Create qbaord.asp page:
%
Boardid=request ("Boardid") ' takes out the Kanban ID number passed over from the previous page
Set conn = Server.CreateObject ("ADODB. Connection ")
Conn. Open "Driver={microsoft accessdriver (*.mdb)};d bq=" &
Add: Beginner ASP Always for Response.Redirect This method is confused, repeatedly with uncomfortable, now I come to tell you some skills. Before you can use it, you must use the Response.buffer=true to make the ASP page work with buffers. At this
When the link to the corresponding article is clicked, enter the processing page of this article managearticle.asp:
%
Articleid=request ("ArticleID")
Boardid=request ("Boardid")
If session ("Beenthere") >boardidthen Response.Redirect
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service