javascript - How to modify Shadowbox.js -


i have shadowbox script youtube video.

this code:

<html> <head>     <title>video</title>       <link rel="stylesheet" type="text/css" href="shadowbox.css"> <script type="text/javascript" src="shadowbox.js"></script> <script type="text/javascript"> shadowbox.init(); </script>  <body>  <a href="https://www.youtube.com/watch?v=moyqasrgams" rel="shadowbox;height=640;width=620">my movie</a> </body> </html> 

problem: popup appear video dont start.

modify script: i need wideo start when page load, there script able this?

go youtube, click share -> embed below video , append autoplay=1 url.

<a href="http://www.youtube.com/embed/moyqasrgams?autoplay=1" rel="shadowbox;height=640;width=620">my movie</a> 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -