Nieuw lid |
|
<script>
var timeRemain = <?php echo $tijdover; ?>
</script>
<script> var timeRemain = <?php echo $tijdover; ?> </script>
zo? je kunt iets met php ophalen en het dan droppen in een javascript var ;)
EDIT:
<script type='text/javascript'>
var seconds=117;
function display()
{
seconds=seconds-1;
if(seconds<0)
{
self.location.replace('de_pagina.php');
}
else
{
var countdown = document.all? document.all["layer"] : document.getElementById? document.getElementById("layer") : "";
if (countdown)
{
countdown.innerHTML = seconds;
setTimeout('display()',1000);
}
}
}
display();
</script>
<script type='text/javascript'> var seconds=117; function display() { seconds=seconds-1; if(seconds<0) { self.location.replace('de_pagina.php'); } else { var countdown = document.all? document.all["layer"] : document.getElementById? document.getElementById("layer") : ""; if (countdown) { countdown.innerHTML = seconds; setTimeout('display()',1000); } } } display(); </script>
dit ie een voorbeeldje |