hello,
i had found what i was seeking in one of your tutorials (Loading a Random HTML Page Inline
however, for any number of reasons, it simply will not work for me.
what i need is either
(1) able to show random video (.mp4) clips from my own domain as html background movie (like background picture)
OR
(2) load a random html file (that contain one .mp4 video file each) into a defined
each vid-xx.html file contains: (vid-xx.html and myvid-xx.html have XX for numbers 01, 02, … etc.)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>video</title>
<link href="alicss.css" rel="stylesheet" type="text/css" />
</head>
<body style="height:100%">
<video autoplay loop poster="images/vidimg.jpg" id="backvid">
<source src="images/myvid-xx.mp4" type="video/mp4">
</video>
</body>
</html>
CSS file:
/* CSS Document */
@charset "utf-8";
video#backvid {
position: fixed; right: 0; bottom: 0;
min-width: 100%; min-height: 100%;
width: auto; height: auto; z-index: -1000;
background: url(images/vidimg.jpg) no-repeat;
background-size: cover;
}
body,td,th {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background: transparent;
background-color: transparent;
}
#contentArea {
background-color: transparent;
background:url(images/meh-c.png) no-repeat right bottom;
height: 100vh;
width: 100%;
}
#cf {
position:relative;
height:150px;
width:200px;
margin:0 auto;
}
#cf img {
position: absolute;
left: 0;
-webkit-transition: opacity .50s ease-in-out;
-moz-transition: opacity .50s ease-in-out;
-o-transition: opacity .50s ease-in-out;
transition: opacity .50s ease-in-out;
}
#cf img.top:hover {
opacity:0;
}
#retro1_image {
margin: 0 auto;
width: 210px;
height: 200px;
transition: background-image .5s ease-in-out;
background-image: url(images/retrolink-1a.png);
}
#retro1_image:hover {
background-image: url(images/retrolink-1b.png);
}
#retro2_image {
margin: 0 auto;
width: 210px;
height: 200px;
transition: background-image .5s ease-in-out;
background-image: url(images/retrolink-2a.png);
}
#retro2_image:hover {
background-image: url(images/retrolink-2b.png);
}
#retro3_image {
margin: 0 auto;
width: 210px;
height: 200px;
transition: background-image .5s ease-in-out;
background-image: url(images/retrolink-3a.png);
}
#retro3_image:hover {
background-image: url(images/retrolink-3b.png);
}
#retro4_image {
margin: 0 auto;
width: 210px;
height: 200px;
transition: background-image .5s ease-in-out;
background-image: url(images/retrolink-4a.png);
}
#retro4_image:hover {
background-image: url(images/retrolink-4b.png);
}.aliselvi_box {
background-color: transparent;
}
the index.html file goes like:
<html>
<head>
<title>..:: aliselvi.com ::..</title>
<link href="alicss.css" rel="stylesheet" type="text/css" />
</head>
<script src="inline.js" type="text/javascript"></script>
<body onload="loadExternalHTMLPage()" style="height:100%">
<div id="contentArea">
<!-- this table contains some transparent hover buttons that land on top of the background video, nothing all that fancy -->
<table width="860" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">
<div id="retro1_image" class="shadow">
<a href="#"><img src="images/dot.png" width="210" height="200" /></a>
</div>
</td>
<td><img src="images/dot.png" width="20" height="150" /></td>
<td valign="bottom">
<div id="retro2_image" class="shadow">
<a href="#"><img src="images/dot.png" width="210" height="200" />
</div>
</td>
<td><img src="images/dot.png" width="20" height="150" /></td>
<td valign="bottom">
<div id="retro3_image" class="shadow">
<a href="#"><img src="images/dot.png" width="210" height="200" />
</div>
</td>
<td><img src="images/dot.png" width="20" height="150" /></td>
<td valign="bottom">
<div id="retro4_image" class="shadow">
<a href="#"><img src="images/dot.png" width="210" height="200" />
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
thats about it… the images and video (.mp4) files are all under “/image”.
would be happy if this worked out.