cotonti.com : Redirect timer? https://www.cotonti.com Son konu mesajları Cotonti en Thu, 12 Feb 2026 15:20:38 -0000 pieter Is this standard in new version?

I guess: http://trac.cotonti.com/ticket/266]]>
Per, 16 Nis 2009 21:19:08 -0000
oc Per, 16 Nis 2009 21:11:33 -0000 pieter
1st instance: line 154
2nd instance: line 164

I tried it, first one works, but not the countdown.
Some error in the script. Some " are missing I guess.

For me he displays 2 seconds. Can I change it?]]>
Per, 16 Nis 2009 18:02:51 -0000
gamer24.7 Per, 16 Nis 2009 17:48:22 -0000 TwistedGA
Replace the 2(Two) instances of:
	$body .= "<br />&nbsp;<br />".$L['msgredir'];

First instance:
	$body .= "<br />&nbsp;<br />".$L['msgredir']." 2 ".$L['Seconds']." ";

Second instance:
	$body .= "<br />&nbsp;<br />".$L['msgredir']." ".$rd." ".$L['Seconds']." ";

I can work on the countdown if you think it would be worth it. :-)

Well, I'm bored and wanted something new to do. I'm sure theres a better method for this, but a working countdown can be added using these two instead of the ones above.

First Instance:
	$body .= "
        <br />&nbsp;<br />".$L['msgredir']." 2 ".$L['Seconds']." 
        <script>
                var milisec=0
                var seconds=3
                document.getElementById(\"d2\").innerHTML=\"3\";

                function display(){
                         if (milisec<=0){
                         milisec=9
                         seconds-=1
                }
                if (seconds<=-1){
                milisec=0
                seconds+=1
                }
                else
                milisec-=1
                document.getElementById(\"d2\").innerHTML=seconds;
                setTimeout(\"display()\",100)
                }
                display()
        </script>"

Second Instance:
	$body .= "
        <br />&nbsp;<br />".$L['msgredir']." <label id=\"d2\">".$rd."</label> ".$L['Seconds']."
        <script>
                var milisec=0
                var seconds=$rd+1
                document.getElementById(\"d2\").innerHTML=\"$rd+1\";

                function display(){
                         if (milisec<=0){
                         milisec=9
                         seconds-=1
                }
                if (seconds<=-1){
                milisec=0
                seconds+=1
                }
                else
                milisec-=1
                document.getElementById(\"d2\").innerHTML=seconds;
                setTimeout(\"display()\",100)
                }
                display()
        </script>";
]]>
Paz, 05 Nis 2009 03:29:43 -0000
robofreak111 An error occured, maybe a wrong URL ?

Redirecting in 5 seconds

and then 1 second later the 5 would turn into a 4? that really woulndt be too hard...]]>
Paz, 05 Nis 2009 01:06:26 -0000
musiconly
How about adding a simple countdown to that errors so the user would know that he will be redirected in a short amount of time.

For example:

An error occured, maybe a wrong URL ?

Redirecting in 5 seconds


What you think?]]>
Paz, 05 Nis 2009 00:37:10 -0000