How to make a div randomly update after page refresh?

  • 0
    Hello, I am interested in the question. But, he is a "beggar" so to speak, since I do not want to delve into JS.
    The bottom line is that on some thematic video sites (movie) there are divs in the footer with a picture that changes after the page is refreshed. What function does this happen?
    JavaScript Anonymous, Jan 8, 2019

  • 2 Answers
  • 0
    setInterval (), possibly plus AJAX
    Mila Atkinson

  • 0
    You are probably talking about banner ads. In most cases, these banners are a small site that is crammed into an iframe - this is the kind of thing that allows you to display one site inside another.



    https://yandex.ru/search/? text = examples% 20using ...
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!