Jump to content

submit a form every x seconds


DeathStar

Recommended Posts

<table>
<tr>
<td style= align="center" width="250" height="20">
<font face=arial color=#000000 size=1><div id="message_html" class="messagehtml" }>Please enable javascript</div></font>
</td>
</tr>
</table>
<script language='Javascript'>
setup=2;

function countdown()
{
if ((0 <= 100) || (0 > 0))
{
xsetup = setup--;
if(xsetup == 0)
{
if (0)
document.getElementById("messagehtml").innerHTML = 'blah';
if (0)
document.getElementById("message_html").innerHTML = '<?php update here ?>';
countdown();
}
if(xsetup > 0)
{
document.getElementById("message_html").innerHTML = '+xsetup+'';
setTimeout('countdown()',1000);
}
}
}
countdown();

function SetCookie(cookieName,cookieValue,nHours)
			{
				var today = new Date();
				var expire = new Date();
				if (Hours==null || nHours==0) Hours=1;
				expire.setTime(today.getTime() + 3600000*Hours);
				document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString();
			}
</script>

 

this hasnt been tested!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.