No diré muchas tonterías, solo te publicaré el código. El código específico es el siguiente:
<! DocType html> <html lang = en xmlns = http: //www.w3.org/1999/xhtml> <Head> <meta charset = utf-8/> <title> </title> <style type = text/css> #RESULT {width: 500px; borde: 1px sólido #ccccccc; Antecedentes: #fffccc; Margen: 50px Auto; tamaño de fuente: 24px; Color:#FF0000; relleno: 20px; } </style> <script type = text/javaScript> window.onload = function () {showtime (); var start = document.getElementById (inicio); start.OnClick = function () {var ruta = document.getElementById (ruta) .Value; var time1 = document.getElementById (Time1) .Value; var time2 = document.getElementById (Time2) .Value; var time3 = document.getElementById (Time3) .Value; start.value = espera la apertura de la página de captura de pedidos; setInterval (function () {var date = new date (); var hour = date.gethours (); var minuto = date.getMinutes (); var Second = date.getSeConds (); if (hora == Time1 && Minute == Time2 && Second == Time3) {Window.open (ruta);}}, 100); }; } función showtime () {// Crea el objeto de fecha var hoy = new Date (); // Obtenga año, mes, día, hora, minuto y segundo respectivamente var año = Today.getblyar (); var mes = Today.getMonth ()+1; var day = Today.getDate (); var soures = Today.gethours (); Var minutos = hoy.getMinutes (); var segundos = hoy.getSeconds (); // Si es un número único, agregue 0 mes antes = mes <10? 0+mes: mes; día = día <10? 0+día: día; horas = horas <10? 0+horas: horas; minutos = minutos <10? 0+minutos: minutos; segundos = segundos <10? 0+segundos: segundos; // Construye la cadena a la salida var str = año+año+mes+mes+día+día+horas+:+minutos+:+segundos; // Obtener el objeto de id = resultado var obj = document.getElementById (resultado); // Escribir el contenido de STR en <iv> con id = resultado a obj.innerhtml = str; // Delay Window.setTimeout (showtime (), 1000); } </script> </head> <body> <div> <h2> 1, sincronice el tiempo de la computadora y el tiempo de Beijing </h2> <h2> 2, establezca la dirección de ruta en la dirección y el tiempo para obtener el cupón </h2> <!-<h3> Cupón Dirección </h3> <tipo de entrada = ID de texto = ruta/>-> <h3> Dirección de gracia (tenga cuidado (no sea cuidadoso: https: //) </h3> <!-<texteArea id = raty style = width: 200px; Height: 80px;> </extarea>-> <input type = url id = staty style = width: auto/> <h3> cupón agarre tiempo </h3> <input type = text id = time1/> time <input type = time2/> min <ponte = text type = text Id /> segundos <h2> 3, haga clic para esperar y luego haga clic para tomar el cupón </h2> <input type = button id = inicio value = inicio/> <div id = resultado> </div> </div> </body> </html> ResumirLo anterior es la implementación HTML de Double 11 (establece el tiempo para abrir la página para obtener cupones) introducida por el editor. Espero que sea útil para todos. Si tiene alguna pregunta, déjame un mensaje y el editor responderá a todos a tiempo. ¡Muchas gracias por su apoyo al sitio web de Wulin.com!