w3schools.comकैसे करें st musicallस्लाइड शो / हिंडोलातत्वों के माध्यम से चक्र करने के लिए एक स्लाइड शो का उपयोग किया जाता है:1/4कैप्शन टेक्स्ट एक स्लाइड शो बनाएँचरण 1) HTML जोड़ें:उदाहरण1 / 3Caption Text2 / 3Caption Two3 / 3Caption Three❮❯चरण 2) सीएसएस जोड़ें:अगले और पिछले बटन को स्टाइल करें, कैप्शन टेक्स्ट और डॉट्स:उदाहरण*{box-sizing:border-box}.slideshow-container{max-width:1000px;position:relative;margin:auto;}.mySlides{display:none;}.prev, .next{cursor:pointer;position:absolute;top:50%;width:auto;margin-top:-22px;padding:16px;color:white;font-weight:bold;font-size:18px;transition:0.6s ease;border-radius:0 3px 3px 0;user-select:none;}.next{right:0;border-radius:3px 0 0 3px;}.prev:hover, .next:hover{background-color:rgba(0,0,0,0.8);}.text{color:#f2f2f2;font-size:15px;padding:8px 12px;position:absolute;bottom:8px;width:100%;text-align:center;}.numbertext{color:#f2f2f2;font-size:12px;padding:8px 12px;position:absolute;top:0;}.dot{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color 0.6s ease;}.active, .dot:hover{background-color:#717171;}.fade{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s;}@-webkit-keyframes fade{from{opacity:.4} to{opacity:1}}@keyframes fade{from{opacity:.4} to{opacity:1}}चरण 3) जावास्क्रिप्ट जोड़ें:उदाहरणvar slideIndex = 1;showSlides(slideIndex);// Next/previous controlsfunction plusSlides(n){showSlides(slideIndex += n);}// Thumbnail image controlsfunction currentSlide(n){showSlides(slideIndex = n);}function showSlides(n){var i;var slides = document.getElementsByClassName("mySlides");var dots = document.getElementsByClassName("dot");if (n > slides.length){slideIndex = 1} if (n < 1){slideIndex = slides.length}for (i = 0;i < slides.length;i++){slides[i].style.display = "none";}for (i = 0;i < dots.length;i++){dots[i].className = dots[i].className.replace(" active", "");}slides[slideIndex-1].style.display = "block";dots[slideIndex-1].className += " active";}स्वचालित स्लाइड शोस्वचालित स्लाइड शो प्रदर्शित करने के लिए, निम्नलिखित कोड का उपयोग करें:उदाहरणvar slideIndex = 0;showSlides();function showSlides(){var i;var slides = document.getElementsByClassName("mySlides");for (i = 0;i < slides.length;i++){slides[i].style.display = "none";}slideIndex++;if (slideIndex > slides.length){slideIndex = 1} slides[slideIndex-1].style.display = "block";setTimeout(showSlides, 2000);// Change image every 2 seconds}मल्टीपल स्लाइडशोउदाहरणvar slideIndex = [1,1];var slideId = ["mySlides1", "mySlides2"] showSlides(1, 0);showSlides(1, 1);function plusSlides(n, no){showSlides(slideIndex[no] += n, no);}function showSlides(n, no){var i;var x = document.getElementsByClassName(slideId[no]);if (n > x.length){slideIndex[no] = 1} if (n < 1){slideIndex[no] = x.length}for (i = 0;i < x.length;i++){x[i].style.display = "none";}x[slideIndex[no]-1].style.display = "block";}युक्ति:यह भी देखें कि हाउ टू - स्लाइड शो गैलरी और हाउ टू - लाइटबॉक्स ।रंग चयनकर्ता रंग चयनकर्ताकैसेTabsDropdownsAccordionsSide NavigationTop NavigationModal BoxesProgress BarsParallaxLogin FormHTML IncludesGoogle MapsRange SlidersTooltipsSlideshowFilter ListSort ListSHARE CERTIFICATESHTMLCSSJavaScriptSQLPythonPHPjQueryBootstrapXML Top TutorialsHTML TutorialCSS TutorialJavaScript TutorialHow To TutorialSQL TutorialPython TutorialW3.CSS TutorialBootstrap TutorialPHP TutorialjQuery TutorialJava TutorialC++ TutorialTop ReferencesHTML ReferenceCSS ReferenceJavaScript ReferenceSQL ReferencePython ReferenceW3.CSS ReferenceBootstrap ReferencePHP ReferenceHTML ColorsjQuery ReferenceJava ReferenceAngular ReferenceTop ExamplesHTML ExamplesCSS ExamplesJavaScript ExamplesHow To ExamplesSQL ExamplesPython ExamplesW3.CSS ExamplesBootstrap ExamplesPHP ExamplesjQuery ExamplesJava ExamplesXML ExamplesWeb CertificatesHTML CertificateCSS CertificateJavaScript CertificateSQL CertificatePython CertificatejQuery CertificatePHP CertificateBootstrap CertificateXML Certificateडब्लूतीन विद्यालय सीखने, परीक्षण करने तथा प्रशिक्षण के लिए उपयुक्त हैं। पढ़ने और बुनियादी समझ को बेहतर बनाने के लिए उदाहरणों को सरल बनाया जा सकता है। त्रुटियों से बचने के लिए ट्यूटोरियल, संदर्भ और उदाहरणों की लगातार समीक्षा की जाती है, लेकिन हम सभी सामग्री की पूर्ण शुद्धता का वारंट नहीं कर सकते। इस साइट का उपयोग करते समय, आप हमारे उपयोग , कुकी और गोपनीयता नीति को पढ़ने और स्वीकार करने के लिए सहमत हैं । Refsnes Data द्वारा कॉपीराइट 1999-2020 । सभी अधिकार सुरक्षित। W3.CSS द्वारा संचालित । W3Schools.com