![MACROMEDIA COLDFUSION 4.5 Use Manual Download Page 137](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5/coldfusion-4-5_use-manual_687485137.webp)
145
Defining attributes
The ATTRIBUTES block defines attributes inside the main TAG block. The
ATTRIBUTES block can only contain
ATTRIB
tags. The following example
demonstrates the definition of four tag attributes:
VALUE
,
TITLE
,
ALT
, and
ALIGN
.
<ATTRIBUTES>
<ATTRIB NAME="VALUE">
<ATTRIB NAME="TITLE">
<ATTRIB NAME="ALT">
<ATTRIB NAME="ALIGN">
</ATTRIBUTES>
In most cases, features such as Tag Insight require more than just the names of the
attributes. You can use the
ATTRIB
tag to define the following attributes:
•
Attribute value types (color, file path, and so on.)
•
Enumerated values (
LEFT
,
RIGHT
,
TOP
,
BOTTOM
for the
ALIGN
attribute)
Defining attribute value types
The value type for a specific attribute can be specified using the
TYPE
attribute in the
ATTRIB
tag.
<ATTRIBUTES>
<ATTRIB NAME="VALUE" TYPE="text" />
<ATTRIB NAME="BGCOLOR" TYPE="color"/>
<ATTRIB NAME="FONTFACE" TYPE="font" />
</ATTRIBUTES>
The following table describes the valid value types of the
ATTRIB
tag.
Value type
Description
TEXT
Free text content
ENUMERATED
A list of enumerated values
COLOR
A color value (name or hex)
FONT
Font name or font family
FILEPATH
A full file path
DIRECTORY
A directory path
FILENAME
File name only
RELATIVEPATH
A relative representation of the path
FLAG
An ON/OFF attribute containing no value
The following types are used in ColdFusion Studio and JRun Studio ONLY
QUERYNAME
A record set name
EXPRESSION
An language expression
Summary of Contents for COLDFUSION 4.5
Page 1: ...Allaire Corporation Using ColdFusion Studio ColdFusion Studio 4 5 for Windows 95 98 NT4 2000...
Page 16: ...xvi Contacting Allaire...
Page 90: ...82...
Page 130: ...122...
Page 133: ...141 Two VTML tags CAT and E let you customize the content of these dialog boxes...
Page 182: ...190...