PHPBuilder - Marquee Function

RSS Twitter

Marquee Function

by: Christopher Dale
April 6, 2003

Version: 1.0

Type: Function

Category: HTTP

License: GNU General Public License

Description: Just a little bit o' code that displays a marquee with the text and design that you specify.


	function DisplayMarquee($message) {

		$html_o = array(
			"font"		=> "<font\n  face='Arial, Helvetica, sans-serif'\n  size='1'\n  color='#000000'>\n\n  <strong>\n\n  ",
			"marquee"	=> "<marquee\n  hspace='2'\n  scrollamount='1'\n  vspace='2'\n  behavior='scroll'\n  direction='left'\n  width='100%'\n  bgcolor='#ff9900'\n  style='border-color: #000000; border-style: solid; border-width: 1pt'>\n\n"

		$html_c = array(
			"font"		=> "\n\n </strong>\n</font>",
			"marquee"	=> "</marquee>"

		echo $html_o['marquee'];
		echo $html_o['font'];
		echo $message;
		echo $html_c['font'] . "\n";
		echo $html_c['marquee'];


	DisplayMarquee("I like chicken breast!");


Comment and Contribute

Your comment has been submitted and is pending approval.

Christopher Dale



(Maximum characters: 1200). You have characters left.