problem about wap 1.0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    problem about wap 1.0

    i want codeing countdown for wap 1.0 by php
    help me plz ?

    #2
    re

    PHP Code:
    <?
    $day = 1;
    $month = 1;
    $year = 2006;
    $end = mktime(0,0,0,$month,$day,$year);
    $today= mktime(date("G"),date("i"),
    date("s"),date("m"),date("d"),date("Y"));
    $days=($end-$today)/86400;
    if ($days>0) {
    $r1 = explode('.',$days);
    $hours=24*($days-$r1[0]);
    $r2 = explode('.',$hours);
    $minutes=60*($hours-$r2[0]);
    $r3 = explode('.',$minutes);
    $seconds=60*($minutes-$r3[0]);
    $r4 = explode('.',$seconds);
    echo 'Days left: ' .$r1[0];
    echo '<br>Time left: ' . $r2[0] . ':' . $r3[0] . ':' . $r4[0];
    } else {
    echo "Happy new year:)";}
    ?>









    Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
    Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

    Comment


      #3
      counts down to day month and year for a new years script lol









      Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
      Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

      Comment


        #4
        Originally posted by ozziemale31 View Post
        counts down to day month and year for a new years script lol
        :o*Your gonna be waiting a long time till 2006 lol or have you been installing your own loophole system lol .....bttf*:rolleyes:
        Last edited by something else; 01.06.09, 16:14.

        Comment


          #5
          Thank u for answer.
          i want countdown on wap 1.0
          ex. 10 8 9 5 4 3 2 1 0 and go to download

          Comment


            #6
            You can time the header ontimer=30; URL=downloadpage.php?file=blah.zip

            When the time runs out yeah
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7
              ontimer ='xx' in wap can' not show number 10 9 8 7 ...n
              i want show number decrease 10-0 befor download

              Comment


                #8
                that be easy to remod ie just display seconds

                echo '<br>Time left: ' . $r4[0];
                } else {
                echo "Happy new year";}









                Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
                Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

                Comment


                  #9
                  i tried but your code not refresh

                  i want number show decrease ^ ^:confused:

                  Comment


                    #10
                    re

                    try the attached script if its what you want ill remod it for you to wml
                    Attached Files









                    Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
                    Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

                    Comment


                      #11
                      hmmm

                      in web u could use ajax/java or even php but as far as i no wml cant run sever side loading so unless u wana use a image that counts down from 10 seconds then use the headers that subzero provided to download it would be easy let me no if u want anyhelp
                      Creator of
                      Epix.Mobi

                      Keep an Eye on us Big things coming soon!!!!
                      Need something for your site hit me up here

                      http://coding-talk.com/forum/main-fo...r-your-wapsite

                      Comment


                        #12
                        what topic starter want..
                        i believe CANT be done in WML...
                        unless page will be actually refreshed every second !
                        which would be useless for users...
                        the best thing which could be done...
                        animation.gif.... !
                        for example.. you need to count down 15 seconds..
                        so you need 15 frames
                        (each frame will be number ofcourse...
                        like 15, 14, 13, 12, 11, etc....)
                        and while compiling animation...
                        each frame need to be set to exact ONE second!

                        that would be the closest to desired result in WML...
                        other than that.. i dont think its possible..
                        not even with WMLscript
                        It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                        ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                        ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                        キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                        Comment


                          #13
                          a lot of sites use to use 10 page/sec countdown when wap first started up as a most phones could only cache 10 pages .... making it so when you go on there site it made it impossible to push back therefore you were stuck to surf the site without bookmarking out. i cant remember the code but it would work well if anyone can remember it *

                          Comment


                            #14
                            Only other way i could think you could do this is

                            Code:
                            <?xml version="1.0" encoding="UTF-8"?>
                            <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
                            "http://www.wapforum.org/DTD/wml_1.1.xml">
                            <wml>
                            <card ontimer="#card1" id="card0" title="Counting...">
                            <timer value="10"/>
                            <p>Time:10</p>
                            </card>
                            <card ontimer="#card2" id="card1" title="Counting...">
                            <timer value="10"/>
                            <p>Time:9</p>
                            </card>
                            <card ontimer="#card3" id="card2" title="Counting...">
                            <timer value="10"/>
                            <p>Time:8</p>
                            </card>
                            <card ontimer="#card4" id="card3" title="Counting...">
                            <timer value="10"/>
                            <p>Time:7</p>
                            </card>
                            <card ontimer="#card5" id="card4" title="Counting...">
                            <timer value="10"/>
                            <p>Time:6</p>
                            </card>
                            <card ontimer="#card6" id="card5" title="Counting...">
                            <timer value="10"/>
                            <p>Time:5</p>
                            </card><card ontimer="#card7" id="card6" title="Counting...">
                            <timer value="10"/>
                            <p>Time:4</p>
                            </card>
                            <card ontimer="#card8" id="card7" title="Counting...">
                            <timer value="10"/>
                            <p>Time:3</p>
                            </card>
                            <card ontimer="#card9" id="card8" title="Counting...">
                            <timer value="10"/>
                            <p>Time:2</p>
                            </card><card ontimer="#download" id="card9" title="Counting...">
                            <timer value="10"/>
                            <p>Time:1</p>
                            </card>
                            <card title="Download" id="download">
                            <p>Thankyou for downloading with wapside:<br/><a href="download.ext">Download File</a></p>
                            </card>
                            </wml>
                            Code:
                            Demo: http://wapside.net/Countdown_Timer.wml

                            Regards,
                            Rob
                            Last edited by wap2k; 28.06.09, 17:51. Reason: Fixed encoding

                            Comment

                            Working...
                            X