i want to do something like...
Code: Select all
<script type="text/javascript">
if (location.hash)
{
sleep 5000;
}
</script>thanks in advance
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
Code: Select all
<script type="text/javascript">
if (location.hash)
{
sleep 5000;
}
</script>Code: Select all
<script type="text/javascript">
if (location.hash !== "")
{
document.write("including sleep.php")
document.write("{jumi [includes/sleep.php]}")
}
</script>
Code: Select all
<?php
#Simple sleep timer by gtron.com
#Pass timer (/sleep.php?timer=10) to specify time otherwise 3 seconds is the default.
$sleepTime = $_POST['timer'];
//default sleep time of 3 seconds
if (!$sleepTime)
{
$sleepTime=3;
}
//sleep
sleep($sleepTime);
?>