I do n’t say much nonsense, I will post code directly. The specific code is shown below:
<! Doctype html> <html lang = en xmlns = http://www.w3.org/1999/xhtml> <head> <meta charset = uTF-8/> </title> <Style Type = Text /css> #Result {width: 500px; border: 1px solid #ccccccc; background: #ffffcc; margin: 50px auto; font-siZe: 24px; #ff0000; padding: 20px ;} </style> <Script Type = Text/Javascript> Window.Onload = Function () {showtime (); Var Start = Document.GetelementByid (Start.onClick = Function () {VAR PATH = DOC ument.GetelementByid (PATH). VAR TIME1 = DOCUMENT.GetelementByid (Time1). VAR TIME2 = DOCUMENT.GetelementByid (Time2). Var Time3 = Document.GelementByid (Time3). Value; tart.value = Waiting to open the single page; setInterval (function () {var Date = new date (); var hours = date.getHours (); var minute = date.getminutes (); Var sex = date.getSeconds (); if (hour == time1 && minute == Time2 & & second == time3 ) {Window.open (PATH);}}, 100);};} Function Showtime () {// Create the date object varbleay = new date (); Second vargear = today.getfullyear (); varmedh = today.getmonth ()+1; var day = today.getdate (); var houses = today.Gethourt (); Var minutes = today. getminutes ();; VAR Seconds = TODAY.GetSeconds (); // If it is a single number, make up 0 MONTH = MONTH <10? 0+MONTH: MONTH: DAY = Day <10? 0+Day: Day; Hours = Hours <10? 0+ Hours: HourS; Minutes = Minutes <10? 0+Minutes: Minutes; Seconds = Seconds <10? 0+Seconds: Seconds; // Build a string to output string Var Str = year+Month+Day. +Day+Hours+: +minutes+:+seconds; //获取id=result的对象var obj = document.getElementById(result); //将str的内容写入到id=result的<div>中去obj.innerHTML = str; // Delay device Window.Settimeout (showtime (), 1000);} </script> </head> <body> <div> <h2> 1, synchronous computer time and Beijing time </h2> 2, settings The PATH address is the address and the time for the need to grab the voucher </h2> <!-<H3> Coupon address </h3> <input type = text id = PATH/>-> <h3> The coupon address ( Be careful not to miss http: // or https: //) </h3> <!-<textarea ID = PATH style = width: 200px; height: 80px;> </textarea>-> <input type = urll ID = Path style = width: auto /> <h3> Book -grabbing time < /h3> <input type = text id = time1 /> /> Second <h2> 3, click to wait, then click the ticket grabbing </h2> <input type = Button ID = Start Value = Start/> <div ID = result> </div> </body> </bodyy > </html> SummarizeThe above is the HTML implementation of the Double 11 grabbing (the page of the time opening the time for the time). I hope it will be helpful to everyone. If you have any questions, please leave me a message. Xiaobian will reply to everyone in time. of. Thank you very much for your support for the VEVB Wulin website!