Making Scrolling date in Web page

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>”;

?>

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.