21 Replies Latest reply on Jan 7, 2016 9:50 PM by adeletsang

    I want to make a opening video, and redirect to another page after the video ends, how to do?  Any widget or code can make it?

    adeletsang

      I want to make a opening video, and redirect to another page after the video ends, how to do?  Any widget or code can make it?

       

      Can do it in muse and I tried to use dreamweaver as below code:

       

      <!doctype html>

      <html>

      <head>

      </head>

      <body>

       

        <style>

      #video_background {

      position: fixed;

      bottom: 0px;

      right: 0px;

      min-width: 100%;

      min-height: 100%;

      width: auto;

      height: auto;

      z-index: -1000;

      overflow: hidden;

      }

       

       

      </style>

      <video id="video_background" preload="auto" autoplay none muted>

        <source src="opening.webm" type="video/webm">

        <source src="opening.mp4" type="video/mp4">

        This browser does not support video

      </video>

      <script type="text/javascript">

          document.getElementById('video_background').addEventListener('ended',function(){

           window.location.href = 'http://www.xxxx.com';

      },false);

      </script>

       

       

      </body>

      </html>