<!--- 
 Filename: HelloWorldMessage2.cfm
 Author: Nate Weiss (NMW)
 Purpose: Creates a custom tag that accepts attributes
--->

<!--- Tag Attributes --->
<cfparam name="ATTRIBUTES.message" type="string">
<cfparam name="ATTRIBUTES.topMessage" type="string" 
 default="Hello, World, from Orange Whip Studios.">
<cfparam name="ATTRIBUTES.topColor" type="string" default="yellow">
<cfparam name="ATTRIBUTES.bottomColor" type="string" default="orange">
<cfparam name="ATTRIBUTES.tableBorder" type="numeric" default="5">
<cfparam name="ATTRIBUTES.tablePadding" type="numeric" default="5">

<!--- Output message in HTML table format --->
<cfoutput>
 <table border="#ATTRIBUTES.tableBorder#" cellPadding="#ATTRIBUTES.tablePadding#">
 <tr><th bgcolor="#ATTRIBUTES.topColor#">
 <b>#ATTRIBUTES.topMessage#</b><br>
 </th></tr>
 <tr><td bgcolor="#ATTRIBUTES.bottomColor#">
 #ATTRIBUTES.message#<br>
 </td></tr>
 </table>
</cfoutput> 
