<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Multiple images in a banner in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/multiple-images-in-a-banner/m-p/3158173#M1174178</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/771054"&gt;@Kushagraa&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I am pasting a code for your reference. You can add images as per your need by storing them in "db_image" table and providing name in "img src" .&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta name="viewport" content="width=device-width, initial-scale=1"&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;* {box-sizing: border-box}&lt;BR /&gt;body {font-family: Verdana, sans-serif; margin:0}&lt;BR /&gt;.mySlides {display: none}&lt;BR /&gt;img {vertical-align: middle;}&lt;/P&gt;&lt;P&gt;/* Slideshow container */&lt;BR /&gt;.slideshow-container {&lt;BR /&gt;max-width: 1000px;&lt;BR /&gt;position: relative;&lt;BR /&gt;margin: auto;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Next &amp;amp; previous buttons */&lt;BR /&gt;.prev, .next {&lt;BR /&gt;cursor: pointer;&lt;BR /&gt;position: absolute;&lt;BR /&gt;top: 50%;&lt;BR /&gt;width: auto;&lt;BR /&gt;padding: 16px;&lt;BR /&gt;margin-top: -22px;&lt;BR /&gt;color: white;&lt;BR /&gt;font-weight: bold;&lt;BR /&gt;font-size: 18px;&lt;BR /&gt;transition: 0.6s ease;&lt;BR /&gt;border-radius: 0 3px 3px 0;&lt;BR /&gt;user-select: none;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Position the "next button" to the right */&lt;BR /&gt;.next {&lt;BR /&gt;right: 0;&lt;BR /&gt;border-radius: 3px 0 0 3px;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* On hover, add a black background color with a little bit see-through */&lt;BR /&gt;.prev:hover, .next:hover {&lt;BR /&gt;background-color: rgba(0,0,0,0.8);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Caption text */&lt;BR /&gt;.text {&lt;BR /&gt;color: #f2f2f2;&lt;BR /&gt;font-size: 15px;&lt;BR /&gt;padding: 8px 12px;&lt;BR /&gt;position: absolute;&lt;BR /&gt;bottom: 8px;&lt;BR /&gt;width: 100%;&lt;BR /&gt;text-align: center;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Number text (1/3 etc) */&lt;BR /&gt;.numbertext {&lt;BR /&gt;color: #f2f2f2;&lt;BR /&gt;font-size: 12px;&lt;BR /&gt;padding: 8px 12px;&lt;BR /&gt;position: absolute;&lt;BR /&gt;top: 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* The dots/bullets/indicators */&lt;BR /&gt;.dot {&lt;BR /&gt;cursor: pointer;&lt;BR /&gt;height: 15px;&lt;BR /&gt;width: 15px;&lt;BR /&gt;margin: 0 2px;&lt;BR /&gt;background-color: #bbb;&lt;BR /&gt;border-radius: 50%;&lt;BR /&gt;display: inline-block;&lt;BR /&gt;transition: background-color 0.6s ease;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.active, .dot:hover {&lt;BR /&gt;background-color: #717171;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Fading animation */&lt;BR /&gt;.fade {&lt;BR /&gt;animation-name: fade;&lt;BR /&gt;animation-duration: 1.5s;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;@keyframes fade {&lt;BR /&gt;from {opacity: .4}&lt;BR /&gt;to {opacity: 1}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* On smaller screens, decrease text size */&lt;BR /&gt;@media only screen and (max-width: 300px) {&lt;BR /&gt;.prev, .next,.text {font-size: 11px}&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="slideshow-container"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="mySlides fade"&amp;gt;&lt;BR /&gt;&amp;lt;div class="numbertext"&amp;gt;1 / 3&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;img src="img_nature_wide.jpg" style="width:100%"&amp;gt;&lt;BR /&gt;&amp;lt;div class="text"&amp;gt;Caption Text&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="mySlides fade"&amp;gt;&lt;BR /&gt;&amp;lt;div class="numbertext"&amp;gt;2 / 3&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;img src="img_snow_wide.jpg" style="width:100%"&amp;gt;&lt;BR /&gt;&amp;lt;div class="text"&amp;gt;Caption Two&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="mySlides fade"&amp;gt;&lt;BR /&gt;&amp;lt;div class="numbertext"&amp;gt;3 / 3&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;img src="img_mountains_wide.jpg" style="width:100%"&amp;gt;&lt;BR /&gt;&amp;lt;div class="text"&amp;gt;Caption Three&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a class="prev" onclick="plusSlides(-1)"&amp;gt;❮&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;a class="next" onclick="plusSlides(1)"&amp;gt;❯&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div style="text-align:center"&amp;gt;&lt;BR /&gt;&amp;lt;span class="dot" onclick="currentSlide(1)"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;span class="dot" onclick="currentSlide(2)"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;span class="dot" onclick="currentSlide(3)"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;let slideIndex = 1;&lt;BR /&gt;showSlides(slideIndex);&lt;/P&gt;&lt;P&gt;function plusSlides(n) {&lt;BR /&gt;showSlides(slideIndex += n);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function currentSlide(n) {&lt;BR /&gt;showSlides(slideIndex = n);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function showSlides(n) {&lt;BR /&gt;let i;&lt;BR /&gt;let slides = document.getElementsByClassName("mySlides");&lt;BR /&gt;let dots = document.getElementsByClassName("dot");&lt;BR /&gt;if (n &amp;gt; slides.length) {slideIndex = 1}&lt;BR /&gt;if (n &amp;lt; 1) {slideIndex = slides.length}&lt;BR /&gt;for (i = 0; i &amp;lt; slides.length; i++) {&lt;BR /&gt;slides[i].style.display = "none";&lt;BR /&gt;}&lt;BR /&gt;for (i = 0; i &amp;lt; dots.length; i++) {&lt;BR /&gt;dots[i].className = dots[i].className.replace(" active", "");&lt;BR /&gt;}&lt;BR /&gt;slides[slideIndex-1].style.display = "block";&lt;BR /&gt;dots[slideIndex-1].className += " active";&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my answer was helpful, please mark it correct .In case of any issue please reply.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2025 07:37:54 GMT</pubDate>
    <dc:creator>Community Alums</dc:creator>
    <dc:date>2025-01-24T07:37:54Z</dc:date>
    <item>
      <title>Multiple images in a banner</title>
      <link>https://www.servicenow.com/community/developer-forum/multiple-images-in-a-banner/m-p/3158163#M1174172</link>
      <description>&lt;P&gt;&lt;STRONG&gt;How can I make a banner where I can show multiple images which can be scrolled ?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I achieve this ?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 07:30:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/multiple-images-in-a-banner/m-p/3158163#M1174172</guid>
      <dc:creator>Kushagraa</dc:creator>
      <dc:date>2025-01-24T07:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple images in a banner</title>
      <link>https://www.servicenow.com/community/developer-forum/multiple-images-in-a-banner/m-p/3158173#M1174178</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/771054"&gt;@Kushagraa&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I am pasting a code for your reference. You can add images as per your need by storing them in "db_image" table and providing name in "img src" .&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta name="viewport" content="width=device-width, initial-scale=1"&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;* {box-sizing: border-box}&lt;BR /&gt;body {font-family: Verdana, sans-serif; margin:0}&lt;BR /&gt;.mySlides {display: none}&lt;BR /&gt;img {vertical-align: middle;}&lt;/P&gt;&lt;P&gt;/* Slideshow container */&lt;BR /&gt;.slideshow-container {&lt;BR /&gt;max-width: 1000px;&lt;BR /&gt;position: relative;&lt;BR /&gt;margin: auto;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Next &amp;amp; previous buttons */&lt;BR /&gt;.prev, .next {&lt;BR /&gt;cursor: pointer;&lt;BR /&gt;position: absolute;&lt;BR /&gt;top: 50%;&lt;BR /&gt;width: auto;&lt;BR /&gt;padding: 16px;&lt;BR /&gt;margin-top: -22px;&lt;BR /&gt;color: white;&lt;BR /&gt;font-weight: bold;&lt;BR /&gt;font-size: 18px;&lt;BR /&gt;transition: 0.6s ease;&lt;BR /&gt;border-radius: 0 3px 3px 0;&lt;BR /&gt;user-select: none;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Position the "next button" to the right */&lt;BR /&gt;.next {&lt;BR /&gt;right: 0;&lt;BR /&gt;border-radius: 3px 0 0 3px;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* On hover, add a black background color with a little bit see-through */&lt;BR /&gt;.prev:hover, .next:hover {&lt;BR /&gt;background-color: rgba(0,0,0,0.8);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Caption text */&lt;BR /&gt;.text {&lt;BR /&gt;color: #f2f2f2;&lt;BR /&gt;font-size: 15px;&lt;BR /&gt;padding: 8px 12px;&lt;BR /&gt;position: absolute;&lt;BR /&gt;bottom: 8px;&lt;BR /&gt;width: 100%;&lt;BR /&gt;text-align: center;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Number text (1/3 etc) */&lt;BR /&gt;.numbertext {&lt;BR /&gt;color: #f2f2f2;&lt;BR /&gt;font-size: 12px;&lt;BR /&gt;padding: 8px 12px;&lt;BR /&gt;position: absolute;&lt;BR /&gt;top: 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* The dots/bullets/indicators */&lt;BR /&gt;.dot {&lt;BR /&gt;cursor: pointer;&lt;BR /&gt;height: 15px;&lt;BR /&gt;width: 15px;&lt;BR /&gt;margin: 0 2px;&lt;BR /&gt;background-color: #bbb;&lt;BR /&gt;border-radius: 50%;&lt;BR /&gt;display: inline-block;&lt;BR /&gt;transition: background-color 0.6s ease;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.active, .dot:hover {&lt;BR /&gt;background-color: #717171;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Fading animation */&lt;BR /&gt;.fade {&lt;BR /&gt;animation-name: fade;&lt;BR /&gt;animation-duration: 1.5s;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;@keyframes fade {&lt;BR /&gt;from {opacity: .4}&lt;BR /&gt;to {opacity: 1}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* On smaller screens, decrease text size */&lt;BR /&gt;@media only screen and (max-width: 300px) {&lt;BR /&gt;.prev, .next,.text {font-size: 11px}&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="slideshow-container"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="mySlides fade"&amp;gt;&lt;BR /&gt;&amp;lt;div class="numbertext"&amp;gt;1 / 3&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;img src="img_nature_wide.jpg" style="width:100%"&amp;gt;&lt;BR /&gt;&amp;lt;div class="text"&amp;gt;Caption Text&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="mySlides fade"&amp;gt;&lt;BR /&gt;&amp;lt;div class="numbertext"&amp;gt;2 / 3&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;img src="img_snow_wide.jpg" style="width:100%"&amp;gt;&lt;BR /&gt;&amp;lt;div class="text"&amp;gt;Caption Two&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="mySlides fade"&amp;gt;&lt;BR /&gt;&amp;lt;div class="numbertext"&amp;gt;3 / 3&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;img src="img_mountains_wide.jpg" style="width:100%"&amp;gt;&lt;BR /&gt;&amp;lt;div class="text"&amp;gt;Caption Three&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a class="prev" onclick="plusSlides(-1)"&amp;gt;❮&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;a class="next" onclick="plusSlides(1)"&amp;gt;❯&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div style="text-align:center"&amp;gt;&lt;BR /&gt;&amp;lt;span class="dot" onclick="currentSlide(1)"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;span class="dot" onclick="currentSlide(2)"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;span class="dot" onclick="currentSlide(3)"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;let slideIndex = 1;&lt;BR /&gt;showSlides(slideIndex);&lt;/P&gt;&lt;P&gt;function plusSlides(n) {&lt;BR /&gt;showSlides(slideIndex += n);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function currentSlide(n) {&lt;BR /&gt;showSlides(slideIndex = n);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function showSlides(n) {&lt;BR /&gt;let i;&lt;BR /&gt;let slides = document.getElementsByClassName("mySlides");&lt;BR /&gt;let dots = document.getElementsByClassName("dot");&lt;BR /&gt;if (n &amp;gt; slides.length) {slideIndex = 1}&lt;BR /&gt;if (n &amp;lt; 1) {slideIndex = slides.length}&lt;BR /&gt;for (i = 0; i &amp;lt; slides.length; i++) {&lt;BR /&gt;slides[i].style.display = "none";&lt;BR /&gt;}&lt;BR /&gt;for (i = 0; i &amp;lt; dots.length; i++) {&lt;BR /&gt;dots[i].className = dots[i].className.replace(" active", "");&lt;BR /&gt;}&lt;BR /&gt;slides[slideIndex-1].style.display = "block";&lt;BR /&gt;dots[slideIndex-1].className += " active";&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my answer was helpful, please mark it correct .In case of any issue please reply.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 07:37:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/multiple-images-in-a-banner/m-p/3158173#M1174178</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2025-01-24T07:37:54Z</dc:date>
    </item>
  </channel>
</rss>

