This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Upload the css and js files to the server. | |
2. Add the link to the css file in the head of your html page. | |
- Example: | |
<link rel="stylesheet" href="css/main.css"> | |
3. Add the link to the js file in the head of your html page or within the body tag. | |
- Example: | |
<link rel="stylesheet" href="js/main.js"> | |
4. Add the following block of code to your html page and update the image path to your image. | |
<div class="rotator"> | |
<figure class="show"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($_SERVER['REQUEST_METHOD'] == 'POST') { | |
setcookie('name', $_POST['name'], time() + 60 * 60 * 24 * 2); | |
setcookie('form', 'none', time() + 60 * 60 * 24 * 2); | |
setcookie('message', 'block', time() + 60 * 60 * 24 * 2); | |
header("Location: index.php"); | |
} | |
$message = isset($_COOKIE['message']) ? $_COOKIE['message'] : 'none'; | |
$form = isset($_COOKIE['form']) ? $_COOKIE['form'] : 'block'; | |
$name = isset($_COOKIE['name']) ? ucfirst($_COOKIE['name']) : ''; |
NewerOlder