Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <a href="home.php"></a>
- <title>Untitled Document</title>
- </head>
- <div class="container">
- <h2>Freetuts.net hướng dẫn tạo Toggle ẩn/hiện nội dung</h2>
- <div id="dongho"></div>
- <script>
- var so = 5 ;
- function demnguoc(){
- so--;
- if(so != 0){
- document.getElementById("dongho").innerHTML = so;
- setTimeout(demnguoc,1000)
- }else{
- document.forms[0].submit()
- }
- }
- demnguoc();
- </script>
- <?php
- if(isset($_POST['aab'])){
- echo 'xong';
- }
- ?>
- <form action="" method="post" name="acc">
- <input type="text" value="đawdad">
- <input type="text" value="đawdad">
- <input type="text" value="đawdad">
- <input type="submit" name="aab">
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement