[Html]
<Script language = "JavaScript">
Function fresh (){
Var time1 = document. getElementById ("timeD"). value;
For (var I = 1; I <= 5; I ++ ){
Var endtime = new Date (time1 );
Var nowtime = new Date ();
Var leftsecond = parseInt (endtime. getTime ()-nowtime. getTime ()/1000 );
D = parseInt (leftsecondd/3600/24 );
H = parseInt (leftsecond/3600) % 24 );
M = parseInt (leftsecond/60) % 60 );
S = parseInt (leftsecond % 60 );
// Document. getElementById ("times"). innerHTML =__ h + "Hour" + _ m + "Minute" + _ s + "second ";
Document. getElementById ("times" + I. toString (). innerHTML = h + "Hour" + m + "Minute" + s + "second ";
If (leftsecond <= 0 ){
A
}
}
}
Fresh ()
Var sh;
Sh = setInterval (fresh, 1000 );
</SCRIPT>
// Product countdown starts
DataSet dataset = new DataSet ();
String connStr = ConfigurationManager. ConnectionStrings ["sqlservercon"]. ConnectionString;
Using (SqlConnection conn = new SqlConnection (connStr ))
{
Conn. Open ();
Using (SqlCommand cmd = conn. CreateCommand ())
{
Cmd. CommandText = "Select * from T_buondTimeBuy ";
SqlDataAdapter adapter = new SqlDataAdapter (cmd );
Adapter. Fill (dataset );
}
}
DataTable table = dataset. Tables [0];
For (int I = 0; I <table. Rows. Count; I ++)
{
DataRow row = table. Rows [I];
Time [I] = (row ["time"]). ToString ();
}
TimeD. Value = time [1];
// Product countdown ends
<Script language = "JavaScript">
Function fresh (){
Var time1 = document. getElementById ("timeD"). value;
For (var I = 1; I <= 5; I ++ ){
Var endtime = new Date (time1 );
Var nowtime = new Date ();
Var leftsecond = parseInt (endtime. getTime ()-nowtime. getTime ()/1000 );
D = parseInt (leftsecondd/3600/24 );
H = parseInt (leftsecond/3600) % 24 );
M = parseInt (leftsecond/60) % 60 );
S = parseInt (leftsecond % 60 );
// Document. getElementById ("times"). innerHTML =__ h + "Hour" + _ m + "Minute" + _ s + "second ";
Document. getElementById ("times" + I. toString (). innerHTML = h + "Hour" + m + "Minute" + s + "second ";
If (leftsecond <= 0 ){
A
}
}
}
Fresh ()
Var sh;
Sh = setInterval (fresh, 1000 );
</SCRIPT>
// Product countdown starts
DataSet dataset = new DataSet ();
String connStr = ConfigurationManager. ConnectionStrings ["sqlservercon"]. ConnectionString;
Using (SqlConnection conn = new SqlConnection (connStr ))
{
Conn. Open ();
Using (SqlCommand cmd = conn. CreateCommand ())
{
Cmd. CommandText = "Select * from T_buondTimeBuy ";
SqlDataAdapter adapter = new SqlDataAdapter (cmd );
Adapter. Fill (dataset );
}
}
DataTable table = dataset. Tables [0];
For (int I = 0; I <table. Rows. Count; I ++)
{
DataRow row = table. Rows [I];
Time [I] = (row ["time"]). ToString ();
}
TimeD. Value = time [1];
// Product countdown ends