<!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=iso-8859-1" />
<title>List Image</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<link href='//fonts.googleapis.com/css?family=Oxygen:400,700,300' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
<style type="text/css">
li a{color:#fafafa;background:#333;padding:0px;display:block;text-decoration:none;}
a:link {
background-color: rgba(rgb(0, 10, 1)); /* Green */
padding: 0px 0px;
cursor: pointer;
font-size: 14px;
margin: 0px 0px
}
a:hover {
background-color: #333333;}
li{
list-style-type: none;
}
.style1 {
color: #FFFFFF;
font-weight:900;
}
</style>
<style>
div.img {
border: 3px solid #fff;
}
div.img:hover {
border: 0px solid #777;
}
div.img img {
width: 100%;
height: 87%;
}
div.desc {
padding: 15px;
text-align: justify;
font-weight:900;
background:rgb(59, 60, 57);
}
* {
box-sizing: border-box;
}
.responsive {
padding: 2px 2px;
float: left;
width: 19.99999%;
}
@media only screen and (max-width: 700px){
.responsive {
width: 49.99999%;
margin: 2px 0;
}
}
@media only screen and (max-width: 500px){
.responsive {
width: 49.99999%;
margin: 0px 0;
padding-bottom:0px;
position:relative;
height:250px
width:100%;
}
}
.clearfix:after {
content: "";
display: table;
clear: both;
}
li{
list-style-type: none;
}
</style>
<style>
.thumb {position: relative; width: 100%; height: 320px;}
.thumb a {position: absolute; top: 0px; display: block; width: 100%; height: 98%; text-align: center; text-decoration: none;}
.thumb a:hover .play, .thumb a:hover .overlay {display: block; transition: opacity .25s ease-in-out;-moz-transition: opacity .20s ease-in-out;-webkit-transition: opacity .4s ease-in-out;}
.thumb a:hover .play {position: relative; font-size: 135px; color: #34a728; margin-top: -252px; z-index: 1000; opacity: 1;}
.thumb a:hover .overlay {position: absolute; top: 0; width: 100%; height: 100%; background-color: #000000; opacity: .4;}
.thumb a {
color: #uuuFF0;
text-decoration: none;
</style>
</head>
<body>
<div id="container">
<?php
include('_connect.php');
$result = mysql_query(" SELECT * FROM film ORDER BY Rand() LIMIT 12");
while($row=mysql_fetch_assoc($result))
{
echo '<li class="responsive">';
echo '<div>
<div class="img"> <div class="thumb">
<a target="_blank" href="play.php?id='.$row['id'].'" title="'.$row['titlefilm'].'">
<img src="data/img/'.$row['imgfilm'].'" alt="'.$row['titlefilm'].'" width="300" height="200">
<div class="desc">'.$row['titlefilm'].'</div>
<span class="play">►</span>
<div class="overlay">
</div> </a>
</div>';
echo '</li>';
}
?>
</body>
</html>
No comments:
Post a Comment