Making Scrolling date in Web page
The following example shows how to get current date and displaying it in as marquee in our web pages. This gives professional look to our web pages.
Example
<?php
// Code to get current date with specific format
$currentday = date(”F j, Y”);
//Create table with scrolling marquee to contain the date output
PRINT “<center><table width=180><tr><td>
<font size=4 face=tahoma color=white>”;
//Define the marquee parameters. Set loop to -0 for continuous looping, 1 for looping once.
//This example loops continiously.
PRINT “<marquee bgcolor=#67A681 direction=left loop=-0>
$currentday </marquee>
</td></tr></table>”;
?>
