We'll explain how to use this type in more detail later in
this section.
There are some types that do not return anything. These types are generally used
to add special declarations to the document header. For example the behavior.
calendar type adds some JavaScript to the header.
??? ??? ??? ??? ??? ??? ???
Chapter 8
[ 195 ]
The rest of this section of this chapter describes each of the different types and how
to use them. We'll start with the six basic types:
Link
Gets an XHTML link
Parameters url Link URI
text Link text
[attribs]
An associative array or string of additional
attributes to apply to the tag
Returns Link XHTML string
Image
Gets an XHTML image
Parameters url Image URI
alt Alternative text if the image is not available
[attribs]
An associative array or string of additional
attributes to apply to the img tag
Returns Image XHTML string
Iframe
Gets an XHTML floating frame (iframe)
Parameters url Frame URI, must be internal
name Name of the frame
[attribs]
An associative array or string of additional
attributes to apply to the img tag
[noFrames]
Message to display if frames are not supported
by the browser; default is a null string
Returns Floating frame XHTML string
Date
Takes a date and formats it accordingly.
Pages:
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272