Skip to main content
Participant
October 14, 2024
Question

Looping 3 times only

  • October 14, 2024
  • 2 replies
  • 155 views

Hello everyone! 

I want to ask if it's possible to loop an HTML banner 3 times on Dreamweaver. I have the index coded to loop infinite times but I want to change it to 3 times only. Is that possible? 

 

Thank you a lot! 

    This topic has been closed for replies.

    2 replies

    Community Expert
    October 15, 2024

    The banner is likely not simply HTML if you are looping. There is a loop attribute to video/audio tags, a GIF animation can loop infinitely. Likely you need some sort of script to auto rotate your banners. What may be more helpful is understanding is the goal you are trying to accomplish whether these are banners from partners that you need to control like reselling space on your website, or is this something that you do have control over the images/source?

    Nancy OShea
    Community Expert
    Community Expert
    October 14, 2024

    HTML is content.  To create an action, you need JavaScript or some other programming language.  We need more context. 

     

    For example, If you're looping an animated GIF or WebP image, you can control the number of iterations from your animation software.

     

     

    Nancy O'Shea— Product User & Community Expert