<!DOCTYPE html><html><title>Automatic Slider Using Javascript</title><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"><style> .mySlides {display:none;} </style><body><h2 class="w3-center">Automatic Slideshow</h2> <div class="w3-content w3-section" style="max-width:500px"> <img class="mySlides" src="C:\Users\csuser\Desktop\ssss\images\download.jpg"style="width:100%"> <img class="mySlides" src="C:\Users\csuser\Desktop\ssss\images\images.jpg"style="width:100%"> <img class="mySlides" src="C:\Users\csuser\Desktop\ssss\images\shanghai.jpg"style="width:100%"> </div> <script> var myIndex = 0; carousel(); function carousel() { var i; var x = document.getElementsByClassName("mySlides"); for (i = 0; i < x.length; i++) { x[i].style.display = "none"; } myIndex++; if (myIndex > x.length) {myIndex = 1} x[myIndex-1].style.display = "block"; setTimeout(carousel, 2000); // Change image every 2 seconds } </script> </body> </html>
Result:
PHPJavaScript is a great place to learn about coding in PHP, JavaScript, MySQL and also you will get to know the best coding techniques, unknown features in these domains. PHPJavascript helps it's users to learn web designing and development in the best and simple way.
Showing posts with label Automatic Slider Using Javascript. Show all posts
Showing posts with label Automatic Slider Using Javascript. Show all posts
Automatic Image Slider Using Javascript
Subscribe to:
Posts (Atom)
Labels
php
(35)
javascript
(31)
phpjavascript
(30)
jquery
(23)
html
(20)
mysql
(14)
database
(9)
codeigniter
(4)
json
(4)
bar chart
(2)
calendar
(2)
column chart
(2)
framework
(2)
google maps
(2)
query
(2)
tables
(2)
url
(2)
dropdown
(1)
Popular Posts
-
The code that every web developer looking for. Validating a form in all possible ways. A simple and effective code is here. Here we are v...
-
Pinba Pinba is an open source MySQL storage engine that acts as a statistics server for PHP. It uses the data received to analyze the...
-
< html > < head > < link href= "//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel= ...
