Pls i need code to post ramdom tex 4 30 days

Started on the old forum in January 2011 · view the original in the archive · old links redirect here

9 replies · 503 views · started 15 years ago · 1 min read

5 participants
iykzy4luv Developer · 83 posts #1

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

iykzy4luv Developer · 83 posts #3

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

something else Fellow · 2,296 posts #4

random tex for 30 days in html:

<html>
<head>
<title>Status code: 404</title>
</head>
<body>
ramdom tex 4 30 days
</body>
</html>

😀

Added after 6 minutes:

In javascript:

<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>
iykzy4luv Developer · 83 posts #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

iykzy4luv Developer · 83 posts #6

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

iykzy4luv Developer · 83 posts #8

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

subzero Super moderator Fellow · 3,954 posts #9
<?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 ""; echo send_message(); echo "";

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... _______…

iykzy4luv Developer · 83 posts #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?

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close