1
Hello good tie everyone would like that code to make sequence after a 1 video automatically go to the second someone can help me `
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.MenuBox {
-moz-border-radius:30px;
-webkit-border-radius:30px;
border-radius:30px;
border: #solid 10px #000;
background-color: rgba(255,255,255,0.5);
width:fixed;
height:auto;
margin: 0 auto;
padding:10px;
}
.MenuBox:before,
.MenuBox:after {
content: "";
display: table;
}
.MenuBox:after {
clear: both;
}
#videoarea {
float: left;
width:630px;
height:350px;
}
#playlist {
float: left;
}
#playlist li{
cursor:pointer;
}
#playlist li:hover{
color:blue;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$("#playlist li").on("click", function() {
$("#videoarea").attr({
"src": $(this).attr("movieurl"),
"poster": "",
"autoplay": "autoplay"
})
})
$("#videoarea").attr({
"src": $("#playlist li").eq(0).attr("movieurl"),
"poster": $("#playlist li").eq(0).attr("moviesposter")
})
})
</script>
</head>
<body>
<div class="MenuBox">
<video id="videoarea" controls="controls" poster="" autoplay="true" src=""></video>
<ul id="playlist">
<li movieurl="1.mp4">SnK</li>
<li movieurl="2.mp4">Titanic Titanic Titanic Titanic Titanic Titanic </li>
</ul>
</div>
</body>
</html>