wapmasterz pls gv me code to post ramdom tex 4 30 days either html or java script tanks
Pls i need code to post ramdom tex 4 30 days
Collapse
X
-
random tex for 30 days in html:
PHP Code:<html>
<head>
<title>Status code: 404</title>
</head>
<body>
ramdom tex 4 30 days
</body>
</html>
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
-
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
-
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
Comment