index3.html 3.34 KB
Newer Older
Thanawit Thisanon's avatar
Thanawit Thisanon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>My Profile</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<link href="file.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<div id="wrapper">
		<div id="header">
			<h1>MY PROFILE</h1>
			<h2>
				<span>By bell</span>
			</h2>
			<ul>
				<li class="first">
					<a href="http://www.pdphoto.org/" target="_blank">Photo Gallery</a>
				</li>

			</ul>
		</div>
	</div>
	<div id="content">
		<div id="colOne">
			<h2>hello.</h2>
            <div class="w3-content w3-display-container" style="max-width:800px">
                    <img class="mySlides" src="https://f.ptcdn.info/465/018/000/1399025379-4596-o.jpg" style="width:100%">
                    <img class="mySlides" src="https://daily.rabbitstatic.com/wp-content/uploads/2017/05/feature_%E0%B9%80%E0%B8%A1%E0%B8%99%E0%B8%B9%E0%B8%82%E0%B9%89%E0%B8%B2%E0%B8%A7%E0%B8%9C%E0%B8%B1%E0%B8%94.jpg" style="width:100%">
                    <img class="mySlides" src="https://img.wongnai.com/p/1920x0/2013/07/01/43ec27eb3c544104b95e859241d20496.jpg" style="width:100%">
                    <div class="w3-center w3-container w3-section w3-large w3-text-white w3-display-bottommiddle" style="width:100%">
                      <div class="w3-left w3-hover-text-khaki" onclick="plusDivs(-1)">&#10094;</div>
                      <div class="w3-right w3-hover-text-khaki" onclick="plusDivs(1)">&#10095;</div>
                      <span class="w3-badge demo w3-border w3-transparent w3-hover-white" onclick="currentDiv(1)"></span>
                      <span class="w3-badge demo w3-border w3-transparent w3-hover-white" onclick="currentDiv(2)"></span>
                      <span class="w3-badge demo w3-border w3-transparent w3-hover-white" onclick="currentDiv(3)"></span>
                    </div>
                  </div>
                  <script>
                        var slideIndex = 1;
                        showDivs(slideIndex);
                        
                        function plusDivs(n) {
                          showDivs(slideIndex += n);
                        }
                        
                        function currentDiv(n) {
                          showDivs(slideIndex = n);
                        }
                        
                        function showDivs(n) {
                          var i;
                          var x = document.getElementsByClassName("mySlides");
                          var dots = document.getElementsByClassName("demo");
                          if (n > x.length) {slideIndex = 1}    
                          if (n < 1) {slideIndex = x.length}
                          for (i = 0; i < x.length; i++) {
                             x[i].style.display = "none";  
                          }
                          for (i = 0; i < dots.length; i++) {
                             dots[i].className = dots[i].className.replace(" w3-white", "");
                          }
                          x[slideIndex-1].style.display = "block";  
                          dots[slideIndex-1].className += " w3-white";
                        }
                        </script>

</body>

</html>