</table>\n";
echo "<div><div class='white-header' style='text-align:center;'>";
// Start Quotes
// Array Structure: "Quote","Author"
//Because of the change in value of $space, authors now have a dash before their name.
$allqts = array
("quote1",
"-author1",
"quote2",
"-author2",
"quote3",
"-author3",
);
// Gets the Total number of Items in the array
// Divides by 2 because there is a Quote followed by an Author
$totalqts = (count($allqts)/2);
// Subtracted 1 from the total because '0' is not accounted for otherwise
$nmbr = (rand(0,($totalqts-1)));
$nmbr = $nmbr*2;
$quote = $allqts[$nmbr];
$nmbr = $nmbr+1;
$author = $allqts[$nmbr];
$space = " "; //used to be " -", but changed to make quotes without authors known look better.
echo "<center>";
echo "<font color='#CCFFFF'><i>";
echo "$quote";
echo "</i></font>";
echo "$space";
echo "$author";
echo "</div><div class='time'>".showsubdate()."</div></div>";
// End Quotes
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
.time {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
color:#ccc;
padding:4px;
position:absolute;
right: 10px;
top: 100px;
}
Category Forum
General DiscussionLabels
None yet
Statistics
1 participant
Notifications
You are not receiving notifications from this thread.
Related Questions