HTML5 responsive popup video
Un simple script de Jquery que coloca un video en la ventana modal. Video es Responsible.
A simple script jquery embedding a video clip in a modal window. Video es relevante.
Ejemplo/Example
--open video --Cómo usar / How to use
Se requiere la biblioteca jquery / Required librerary jquery
En el primer paso, adjuntamos los scripts js y css.
En la primera estepa, hemos añadido el script js and css.
<script src="js/videopopup.js"></script>
<link rel="stylesheet" type="text/css" href="css/videopopup.css" media="screen" />En el código HTML, por ejemplo:
In the HTML code for example:
<a href="javascript:void(0)" id="video1">-- open video --</a>
<div id="vidBox">
<div id="videCont">
<video autoplay id="v1" loop controls="controls">
<source src="video/VideoPopUpHTML5.webm" type="video/webm">
<source src="video/VideoPopUpHTML5.mp4" type="video/mp4">
</video>
</div>
</div>
Iniciando código JS
# We initiate the js code #
<script type="text/javascript">
$(function () {
$('#vidBox').VideoPopUp({
backgroundColor: "#17212a",
opener: "video1",
maxweight: "640",
idvideo: "v1"
});
});
</script>
Opciones / Opciones
backgroundColor: #000000 - color de fondo (por defecto negro) / background color (default is black)
opener: "video" - id tag html al hacer clic en la ventana con el vídeo / id tag html click which opens a window with a video clip
maxweight: 640 - ancho máximo de vídeo / máximo width video
pausevideo: false - ¿Se supone que una vez que la ventana de vídeo está cerrada, se detenga o se detenga o cuando close el video Window has parado o pause (default false - then stops)
idvideo: "" - id principal obligatorio div / required id of the first div
Bajo el guión a descargar. El script se puede utilizar tanto en privado como comercialmente.
Si pones un enlace a mi sitio web, te lo agradeceré pero no es obligatorio.
The following script for download. The script can be used both privately and commercially.
Si hubieras puesto un enlace a mi asiento, lo habría apreciado pero no es una multa.