1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
| <html>
<head>
<style>
.resp-containerab{
z-index : 10000;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="fixescroll/jquery.js"></script>
<script src="fixescroll/jquery.sticky.js"></script>
<script>
$(document).ready(function(){
$("#ici").sticky({topSpacing:60 , zIndex:1000});
});
</script>
</head>
<body>
<div id="ici" class="resp-containerab">
<?php
// on se connecte à notre base
$base = @mysql_connect ('', '', '');
mysql_select_db ('', $base) ;
$id_video = $_GET['id_video'] ;
$reponse = mysql_query('SELECT * FROM video WHERE id_video = "'.$id_video.'"') ;
//On affiche les lignes du tableau une à une à l'aide d'une boucle
$donnees = mysql_fetch_array($reponse) ;
$lien = $donnees['lien'] ;
$origine_video = $donnees['mobile'] ;
if($origine_video=="oui"){ ?>
<div class="resp-iframeA" id="resp-iframeA" name="resp-iframeA">
<video width="560" height="315" controls>
<source src="https://www.azerty.com/<?php echo $lien ; ?>" type="video/mp4">
</video>
</div>
<?php
}else{
?>
<iframe class="resp-iframeA" width="560" height="315" src="<?php echo $lien ; ?>" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<?php } ?>
</div>
<div id="basici" name="basici"></div>
</body>
</html> |
Partager