<dpImageNumber>
D E F I N I T I O N:
Returns the number of the "current" image. This would most commonly be used in an image macro to test for a specific image. For example, if it was the first image you may want to do something specific, or the last image.
<dpImageNumber
default="default text"
style="lower|upper|title|spaced|roman|decimal|identifier|
noHtml|noHtmlStyle|scriptEncode|uriEncode"
link="on|off"
start="#p|#s|#w|#c|begin|end|resume"
stop="#p|#s|#w|#c|begin|end|resume"
length="#p|#s|#w|#c|begin|end"
>
A T T R I B U T E S:
Please refer to the common attributes page for the common attribute descriptions.
E X A M P L E S:
<dpIf <dpImageNumber> = 1>
tests if it is the first image
special treatment for the first image
<dpElseIf <dpImageNumber> = <dpImageCount>>
tests if it is the last image
special treatment for the last image
<dpElse>
default treatment (not the first or last image)
</dpIf>
| Home: Support: Reference Guide: Image Tags: <dpImageNumber> | Questions? Comments? Please write support@desert.net. |