私はそれほどナンセンスとは言いません、私はあなたにコードを投稿するだけです。特定のコードは次のとおりです。
<!doctype html> <html lang = en xmlns = http://www.w3.org/1999/xhtml> <head> <head> <meta charset = utf-8/> <title>国境:1pxソリッド#cccccc;背景:#fffcc;マージン:50px Auto;フォントサイズ:24px;色:#ff0000;パディング:20px; } </style> <スクリプトタイプ= text/javascript> window.onload = function(){showtime(); var start = document.getElementById(start); start.onclick = function(){var path = document.getElementbyId(path).value; var time1 = document.getElementById(time1).value; var time2 = document.getElementById(time2).value; var time3 = document.getElementById(time3).value; start.value =注文グラブページの開くのを待ちます。 setInterval(function(){var date = new date(); var hour = date.gethours(); var minute = date.getMinutes(); var second = date.getSeconds(); if(hour == time1 && munter2 && second == time3){window.open(path);}}、100); }; }関数showtime(){//日付オブジェクトvar = new date(); //年、月、日、時間、分、2年目のそれぞれvar year = today.getThyear()を取り出します。 var month = Today.getMonth()+1; var day = today.getDate(); var hours = today.gethours(); var minutes = today.getMinutes(); var seconds = today.getSeconds(); //単一の数字の場合、0か月前に=月<10を追加しますか? 0+月:月; Day = Day <10? 0+日:日;時間=時間<10? 0+時間:時間;議事録=分<10? 0+分:分;秒=秒<10? 0+秒:秒; //文字列を作成しますvar str =年+年+月+月+日+日+時間+:+分+:+秒; // idのオブジェクトを取得= result var obj = document.getElementById(result); // obj.innerhtml = str;をressure = strのstrのコンテンツを<div>に書き込みます。 // window.settimeoutを遅延させる(showtime()、1000); } </script> </head> <body> <div> <h2> 1、コンピューター時間と北京時間の同期</h2> <h2> 2、アドレスへのパスアドレスとクーポンをつかむ時間を設定します</h2> <! - <h3>クーポンアドレス</h3> <入力タイプ=テキストID =パスhttps://)</h3> <! - <textarea id = path style = width:200px; height:80px;> </textarea> - > <input = url id = path style = width:auto/> <h3> />秒<h2> 3、クリックして待機してからクーポンをグラブしてクリックしてクーポンをつかむ</h2> <入力タイプ=ボタンid = start value = start/> <div id = result> </div> </div> </body> </html>要約します上記は、編集者によって導入されたDouble 11のHTML実装(クーポンをつかむためにページを開く時間を設定)です。私はそれが誰にでも役立つことを願っています。ご質問がある場合は、メッセージを残してください。編集者は、すべての人に時間内に返信します。 wulin.comのウェブサイトへのご支援ありがとうございます!