Skip to content

Instantly share code, notes, and snippets.

@degnonkm
Last active April 27, 2017 00:23
Show Gist options
  • Save degnonkm/ebd23b6bfa840fc971b334f65f2d460e to your computer and use it in GitHub Desktop.
Save degnonkm/ebd23b6bfa840fc971b334f65f2d460e to your computer and use it in GitHub Desktop.
phamhomepage
license: mit
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<body>
<h2 class="w3-center"; style="font-family: Arial"; "font-color: red">PHAMERATOR</h2>
<div class="w3-content w3-display-container">
<img class="mySlides" src="https://scontent.xx.fbcdn.net/v/t1.0-9/17799248_1437010912986312_1784653687192383326_n.jpg?oh=b0e5ffa4a2e720b6cee885c7f615e34a&oe=59581E74" style="width:100%">
<img class="mySlides" src="https://scontent-iad3-1.xx.fbcdn.net/v/t31.0-8/18155919_1465917186762351_2343057971965252270_o.jpg?oh=104324995f3c314fab7a47391426e648&oe=59C029F3" style="width:100%">
<img class="mySlides" src="https://scontent.xx.fbcdn.net/v/t1.0-9/17796140_1437021159651954_498241527486966878_n.jpg?oh=7bbfa7148a80018b5f0804697288f119&oe=599B0380" style="width:100%">
<img class="mySlides" src="https://scontent-iad3-1.xx.fbcdn.net/v/t31.0-8/18155921_1465917166762353_6194381754328055557_o.jpg?oh=4df993ccd3282fce6ffe04bc89030a4f&oe=5989168F" style="width:100%">
<img class="mySlides" src="https://scontent-iad3-1.xx.fbcdn.net/v/t31.0-8/18121270_1465917170095686_2189613919129435078_o.jpg?oh=e41af8e66be8fdc3b1a542c97d0ae092&oe=59899861" style="width:100%">
<img class="mySlides" src="https://scontent-iad3-1.xx.fbcdn.net/v/t31.0-8/18192631_1465922766761793_1603570651013198600_o.jpg?oh=df1fd102da416bef8ae90e4d99e8cade&oe=59951A9D" style="width:100%">
<button class="w3-button w3-black w3-display-left" onclick="plusDivs(-1)">&#10094;</button>
<button class="w3-button w3-black w3-display-right" onclick="plusDivs(1)">&#10095;</button>
</div>
<script>
var slideIndex = 1;
showDivs(slideIndex);
function plusDivs(n) {
showDivs(slideIndex += n);
}
function showDivs(n) {
var i;
var x = document.getElementsByClassName("mySlides");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length}
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex-1].style.display = "block";
}
</script>
</body>
</html>
Built with [blockbuilder.org](http://blockbuilder.org)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment