Pls i need code to post ramdom tex 4 30 days

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

    Pls i need code to post ramdom tex 4 30 days

    wapmasterz pls gv me code to post ramdom tex 4 30 days either html or java script tanks

    #2
    wrong forum, moved to coding forum
    Advertise your mobile site for FREE with AdTwirl

    Comment


      #3
      @gumslone ok, am soory, pls help me with d code if u have it, i need it badly. thanks in advance

      Comment


        #4
        random tex for 30 days in html:
        PHP Code:
        <html>
        <
        head>
        <
        title>Status code404</title>
        </
        head>
        <
        body>
        ramdom tex 4 30 days
        </body>
        </
        html
        :D

        Added after 6 minutes:

        In javascript:
        PHP Code:
        <script type="text/javascript">
        <!--
        var 
        day getDate()
        if (
        day==1){
        document.write("Random text 1")
        }
        if (
        day==2){
        document.write("Random text 2")
        }
        if (
        day==3){
        document.write("Random text 3")
        }
        //-->
        </script
        Last edited by something else; 27.01.11, 01:00.

        Comment


          #5
          @sumthing tanks alot, but d code is showing like calender, pls help, or tel me hw to get it work, i have ramdom text code just dat its only shows 4 each hour, pls give me d 1 to show different text on d daily bases 4 30 days, tanks pls

          Comment


            #6
            (nt working) pls bro help me wit d code, i really need it, tanks

            Comment


              #7
              learn base php.
              have connected with http://adexchat.com ?
              Fun up with
              http://forum.adexchat.com

              Comment


                #8
                i have site with mywibes.com php wnt work, pls help me if u can

                Comment


                  #9
                  PHP Code:
                  <?php 

                  $TimeZone
                  ="8"////Change the TimeZone accordingly! 
                  $New_Time time() + ($TimeZone 60 60); 

                  $show_date=date("D dS F, Y",$New_Time);  
                  $show_time=date("H:i",$New_Time);  
                  $Hour=date("G",$New_Time); 

                  function 
                  send_message()
                  {
                      
                  $date date("d");
                      require_once(
                  "day_messages/".$date.".txt");
                  }    

                    
                  ///////////////////////////////////////
                   // Add  Hour                         //
                  ///////////////////////////////////////

                  if ($Hour <= 4) { 
                  echo 
                  send_message();
                  }  

                  else if (
                  $Hour <= 11) { 
                  echo 
                  send_message();
                  }  

                  else if (
                  $Hour <= 12) { 
                  echo 
                  send_message();


                  else if (
                  $Hour <= 17) { 
                  echo 
                  send_message();
                  }  

                  else if (
                  $Hour <= 23) { 
                  echo 
                  send_message();


                  ?>

                  function send_message()
                  {
                  $date = date("d");
                  require_once("day_messages/$date.txt");
                  }

                  echo "<div class=\"random_$date\">";
                  echo send_message();
                  echo "</div>";

                  Make text files like

                  1 to 31

                  Just add

                  day 1
                  Hi users welcome to our site

                  day 1 is like

                  1.txt

                  Simple ?
                  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


                    #10
                    oh, i didnt knw dat it has bin posted here, i wil try it n gv feed back. tanks

                    Added after 39 minutes:

                    Wen i copied it to my site, dis is wat appear on site
                    function send_message
                    (){$date = date("d")
                    ;require_once("day_
                    messages/$date.txt");}
                    echo "
                    ";echo send_message()
                    ;echo "
                    ";

                    i dnt knw, or is d problem frm me?
                    Last edited by iykzy4luv; 09.02.11, 00:41.

                    Comment

                    Working...
                    X