javascript - Slider for video (ASP.NET) -
i have ajax call - end displaying videos
<script> $('#display').click(function () { var vacancyid = $("#vacancy").val(); var model = { vacancyid: vacancyid }; $.ajax({ url: '@url.action("links", "questions")', contenttype: 'application/json; charset=utf-8', data: json.stringify(model), type: 'post', datatype: 'json', processdata: false, success: function (data) { var question2 = data; (var = 0; <= question2.length - 1; i++) { var videohtml = '<video width="320" height="240" style="margin-left: 130px;margin-top: 20px;" controls>'; videohtml += '<source src="' + document.location.origin + "/uploads/" + question2[i].linkes + ".webm" + '" type="video/webm">'; videohtml += '</video>'; $(".videolist").append(videohtml); } } });
});
now display via list in div
`<div class="videolist" style="width:50%;overflow-y: scroll;float:right;background:white;height:100%"> </div>`
i need display via slider
how can this?
Comments
Post a Comment