home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / cjustify.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  618 b   |  27 lines

  1. <!--- This example shows how to use CJustify --->
  2. <CFPARAM name="jstring" default="">
  3.  
  4. <CFIF IsDefined("form.justifyString")>
  5.     <CFSET jstring = Cjustify("#form.justifyString#", 35)>
  6. </CFIF>
  7. <HTML>
  8. <HEAD>
  9. <TITLE>
  10. CJustify Example
  11. </TITLE>
  12. </HEAD>
  13.  
  14. <BODY bgcolor=silver>
  15. <H3>CJustify Example</H3>
  16.  
  17. <P>Enter a string, and it will be center justified within
  18. the sample field
  19.  
  20. <FORM ACTION="cjustify.cfm" METHOD="POST">
  21. <P><INPUT TYPE="Text" VALUE="<CFOUTPUT>#jString#</CFOUTPUT>" SIZE=35 NAME="justifyString">
  22. <P><INPUT TYPE="Submit" NAME=""> <INPUT TYPE="RESET">
  23. </FORM>
  24.  
  25. </BODY>
  26. </HTML>       
  27.