Here we show a simple example of a Video Scroller in JavaScript. Here we use images to be scrolled using jQuery fadeIn() and fadeOut() functions and the video will be shown in a PopUp window like this:
The popup window will be shown in the middle of the screen.
Step 1
First, we will use some images:
Then we will write the code:
Step 2
Now we create various HTML pages to show the window in the PopUp Window (in this article, I will discuss only one HTML page coding); see:
TeriMeri.html
- <html>
- <head>
- </head>
- <body>
- <table cellpadding="0" cellspacing="0">
- <tr>
- <td>
- <iframe id="i1" width="560" height="300px" src="http://www.youtube.com/embed/QqgJkkVaWk8"
- frameborder="0" allowfullscreen></iframe>
- </td>
- </tr>
- </table>
- </body>
- </html>
Here we will use the <iframe> tag to show the video and set the source of the video here. So when we run this page the output will be: