Hi guys, i have a question a build a html5 video 3 divs on horizontal, with mouseover.
If you can see if you move the mouse to the right or left appears diferent videos, i want to do the same process but when i fullscreen a video, i can do the same process, moving video to video with mouveover.
Where is my code:
<!doctype html>
<!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
<!--[if IE 7]> <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8]> <html class="ie8 oldie"> <![endif]-->
<!--[if gt IE 8]><!--><html class=""><!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Video_proba</title>
<link href="script/boilerplate.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="elastic.css" type="text/css">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="script/display.js"></script>
<style type="text/css">
<!--
html{background-color: #000;}
body{
background-color: #000;
}
#video1 {
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
z-index:2;
visibility: hidden;
}
#video2 {
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
z-index:1;
overflow: visible;
visibility: visible;
}
#video3 {
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
z-index:3;
visibility: hidden;
}
#left {
position: absolute;
left: 2px;
top: -1px;
width: 5%;
height: 100%;
z-index: 30;
visibility: visible;
background-image: url(bg.gif);
background-repeat: no-repeat;
}
#right {
position: absolute;
left: 95%;
top: 1px;
width: 8%;
height: 100%;
z-index: 20;
visibility: visible;
background-image: url(bg.gif);
background-repeat: repeat;
}
#center_vd {
position: absolute;
left: 45%;
top: 0;
height: 100%;
z-index: 50;
width: 10%;
visibility: visible;
background-image: url(bg.gif);
background-repeat: repeat;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
with (document) if (getElementById && ((obj=getElementById(args))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible'v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body >
<div id="left" onMouseOver="MM_showHideLayers('video1','','show','video2','','hide','video3','','hide')">
</div>
<div id="right" onMouseOver="MM_showHideLayers('video1','','hide','video2','','hide','video3','','show')">
</div>
<div id="center_vd" onMouseOver="MM_showHideLayers('video1','','hide','video2','','show','video3','','hide')">
</div>
<div class="gridContainer clearfix">
<div id="LayoutDiv1">
<div id="video1">
<video loop autoplay align="center" controls muted width="100%" height="100%">
<source src="2.mp4" type='video/mp4'>
<source src="2.ogg" type="video/ogg">
<source src="2.webm" type="video/webm">
<p>Infelizmente Seu Navegador Não suporta Vídeos na Tecnologia HTML5</p>
</video></div>
<!---->
<div id="video2">
<video loop autoplay align="center" controls width="100%" height="100%">
<source src="1.mp4" type='video/mp4'>
<source src="1.ogg" type="video/ogg">
<source src="1.webm" type="video/webm">
<p>Infelizmente Seu Navegador Não suporta Vídeos na Tecnologia HTML5</p>
</video></div>
<!---->
<div id="video3">
<video loop autoplay align="center" controls muted width="100%" height="100%">
<source src="3.mp4" type='video/mp4'>
<source src="3.ogg" type="video/ogg">
<source src="3.webm" type="video/webm">
<p>Infelizmente Seu Navegador Não suporta Vídeos na Tecnologia HTML5</p>
</video></div>
<!---->
</div>
</div>
</body>
</html>
If you can see if you move the mouse to the right or left appears diferent videos, i want to do the same process but when i fullscreen a video, i can do the same process, moving video to video with mouveover.
Where is my code:
<!doctype html>
<!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
<!--[if IE 7]> <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8]> <html class="ie8 oldie"> <![endif]-->
<!--[if gt IE 8]><!--><html class=""><!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Video_proba</title>
<link href="script/boilerplate.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="elastic.css" type="text/css">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="script/display.js"></script>
<style type="text/css">
<!--
html{background-color: #000;}
body{
background-color: #000;
}
#video1 {
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
z-index:2;
visibility: hidden;
}
#video2 {
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
z-index:1;
overflow: visible;
visibility: visible;
}
#video3 {
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
z-index:3;
visibility: hidden;
}
#left {
position: absolute;
left: 2px;
top: -1px;
width: 5%;
height: 100%;
z-index: 30;
visibility: visible;
background-image: url(bg.gif);
background-repeat: no-repeat;
}
#right {
position: absolute;
left: 95%;
top: 1px;
width: 8%;
height: 100%;
z-index: 20;
visibility: visible;
background-image: url(bg.gif);
background-repeat: repeat;
}
#center_vd {
position: absolute;
left: 45%;
top: 0;
height: 100%;
z-index: 50;
width: 10%;
visibility: visible;
background-image: url(bg.gif);
background-repeat: repeat;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
with (document) if (getElementById && ((obj=getElementById(args))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible'v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body >
<div id="left" onMouseOver="MM_showHideLayers('video1','','show','video2','','hide','video3','','hide')">
</div>
<div id="right" onMouseOver="MM_showHideLayers('video1','','hide','video2','','hide','video3','','show')">
</div>
<div id="center_vd" onMouseOver="MM_showHideLayers('video1','','hide','video2','','show','video3','','hide')">
</div>
<div class="gridContainer clearfix">
<div id="LayoutDiv1">
<div id="video1">
<video loop autoplay align="center" controls muted width="100%" height="100%">
<source src="2.mp4" type='video/mp4'>
<source src="2.ogg" type="video/ogg">
<source src="2.webm" type="video/webm">
<p>Infelizmente Seu Navegador Não suporta Vídeos na Tecnologia HTML5</p>
</video></div>
<!---->
<div id="video2">
<video loop autoplay align="center" controls width="100%" height="100%">
<source src="1.mp4" type='video/mp4'>
<source src="1.ogg" type="video/ogg">
<source src="1.webm" type="video/webm">
<p>Infelizmente Seu Navegador Não suporta Vídeos na Tecnologia HTML5</p>
</video></div>
<!---->
<div id="video3">
<video loop autoplay align="center" controls muted width="100%" height="100%">
<source src="3.mp4" type='video/mp4'>
<source src="3.ogg" type="video/ogg">
<source src="3.webm" type="video/webm">
<p>Infelizmente Seu Navegador Não suporta Vídeos na Tecnologia HTML5</p>
</video></div>
<!---->
</div>
</div>
</body>
</html>