Responsive YouTube vidéo Gallery
Un script simple permettant d'installer des fims depuis YouTube sous la forme d'une fenêtre déplacée. Il remplit les conditions l'échelle de réponse.
A simple script to embed YouTube videos in a format sliding window. Meets the conditions responsive scaling.
Exemple/Example
Vidéos du canal PrestaExpert.
Comment utiliser / How to use
Besoin d'une bibliothèque jquery / Required Library jquery
La première étape est de joindre le script js et css.
In the first step, we attach the script js and css.
<script src="jq.video.slider.js"></script>
<link rel="stylesheet" type="text/css" href="jq.video.slider.css" media="screen" />Dans le code HTML, par exemple:
In the HTML code for example:
<div id="myVideoSlide">
<div class="videoitem"><iframe width="560" height="315" src="https://www.youtube.com/embed/3KTm3b0vI-Q" title="PrestaShop Product Video Module | Filmy w galerii produktów | Video Gallery Pro" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe><div class="desc_vs">PrestaShop Product Video Module | Filmy w galerii produktów | Video Gallery Pro</div></div>
<div class="videoitem"><iframe width="560" height="315" src="https://www.youtube.com/embed/9zaITkr36O0" title="Moduł wideo do galerii produktu PrestaShop – Cool Video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe><div class="desc_vs">Moduł wideo do galerii produktu PrestaShop – Cool Video</div></div>
<div class="videoitem"><iframe width="560" height="315" src="https://www.youtube.com/embed/x4DJYFnWVC4" title="Cool News – Professional News System for PrestaShop 1.7, 8.x, 9.x" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe><div class="desc_vs">Cool News – Professional News System for PrestaShop 1.7, 8.x, 9.x</div></div>
<div class="videoitem"><iframe width="560" height="315" src="https://www.youtube.com/embed/GD_CD4jpABE" title="PrestaExpert.pl - Tworzenie Sklepów PrestaShop na Miarę Twoich Potrzeb." frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe><div class="desc_vs">PrestaExpert.pl - Tworzenie Sklepów PrestaShop na Miarę Twoich Potrzeb.</div></div>
</div>On commence par le code js.
Nous avons initié le code
<script type="text/javascript">
$(function () {
$('#myVideoSlide').videoOslide();
});
</script>En dessous du script à télécharger. Le script peut être utilisé à la fois en privé et sur le plan commercial.
Si tu mets un lien vers mon site, je te serais reconnaissant mais ce n'est pas obligatoire.
The following script for download. The script can be used both privately and commercially.
If you put somewhere a lien to my site I would appleciate but it is not mandatory.