Bonjour,
C'est exactement cela... :-)
Je dois donc "simplement" ajouter votre code ? Attention quand j'ajoute votre code, mon compte à rebours ne s'affiche plus ?
<div style="background-color:#FFFFFF; font-family:Calibri, sans-serif; color:#A6A6A6; font-size:10.0pt;font-style:italic; text-align:left;" id="count_down_div"></div>
Comment modifier cette ligne :
<div id="contenu"> <iframe id="Example2" name="Example2" title="Example2" src="tab1.htm" frameborder=0 height=650px width=100% scrolling="No" marginheight="75" marginwidth="15"></iframe></div>
J'aimerais aussi retirer le bouton de redémarrage... je sais à l'avance le nombre de page... pour le moment "3" [tab1.htm, tab2.htm, tab3.htm]
Pourriez-vous modifier mon code pour que tout fonctionne ? 





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 66 67 68 69 70 71 72
| <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="styles.css">
<title>Chaînes view TV</title>
<style>
body {
background-color: black;
margin:0px;
margin-top:0px;
}</style>
<script type="text/javascript">
// ------------------------
window.onload=function() {
var reload_delay = 1000 * 1 * 121; // toutes les 2 minutes
launch_count_down(reload_delay); // lance le compte à rebour
window.setInterval(function() {
window.frames.Example2.location.reload()
window.frames.messagei.location.reload()
}, reload_delay);
};
// ------------------------
function launch_count_down(count_down_delay) {
// Compte à rebours
var count_down_div = document.getElementById("count_down_div");
var count_down = 0;
var count_delay = 1000; // a chaque seconde
count_down_div.textContent = "Actualisation de l'écran dans " + heures_minutes_secondes((count_down_delay) / 1000)+"''";
window.setInterval(function() {
count_down += count_delay;
count_down_div.textContent = "Actualisation de l'écran dans " + heures_minutes_secondes((count_down_delay - count_down) / 1000)+"''";
if( count_down == count_down_delay ){
count_down = 0; // on réinitalise
}
}, count_delay);
}
// ------------------------
function heures_minutes_secondes(secondes) {
var temps = new Date();
temps.setTime(secondes * 1000);
if (secondes > 60 * 60) {
// supérieur à 1 heure
return (
temps.getHours() - 1 + ":" + temps.getMinutes() + "' " + temps.getSeconds()
);
} else {
return temps.getMinutes() + "' " +temps.getSeconds();
}
}
</script>
</head>
<body>
<div id="bandeau"> <iframe id="Example1" name="Example1" title="Example1" src="menu3.htm" frameborder=0 height=91px width=100% scrolling="No" marginheight="0" marginwidth="0"></iframe>
</div>
<div id="contenu"> <iframe id="Example2" name="Example2" title="Example2" src="tab1.htm" frameborder=0 height=650px width=100% scrolling="No" marginheight="75" marginwidth="15"></iframe></div>
<div style="background-color:#000000; font-family:Calibri, sans-serif; color:#A6A6A6; font-size:10.0pt;font-style:italic; text-align:left;" id="count_down_div"></div>
<span style='mso-ignore: vglayout; position: absolute; z-index: 2; margin-left: 18px; margin-top: 260px; left: 890px; top: 355px;'><div>
<iframe id="messagei" name="messagei" title="messagei" src="messageiframe.php" frameborder=0 height=91px width=100% scrolling="No" marginheight="0" marginwidth="0"></iframe></div></span>
<span style='mso-ignore: vglayout; position: absolute; z-index: 3; margin-left: 18px; margin-top: 300px; left: 980px; top: 355px;'><div>
<iframe id="timeri" name="timeri" title="timeri" src="timeiframe.htm" frameborder=0 height=41px width=100% scrolling="No" marginheight="0" marginwidth="0"></iframe></div></span>
</body>
</html> |
Merci d'avance
Partager