Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipX.Lib v1.2 - <b>htmlbodybeg()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
HtmlBodyBeg()
Writes wrapper for HTML begin through Body begin tags
---------------------------------------------------------------------

Syntax:

  HtmlBodyBeg( [<cTitle>], [<cHeading>], [<cBodyAttr>] )  --->  lSuccess

Arguments:

  [<cTitlt>] is an optional character string for the page Title.

  [<cHeading>] is an optional character string for the page heading.

  [<cBodyAttr>] is an optional character string of attributes for
   the Body tag.

Returns: A logical value

Description:

  Writes from the HTML begin tag through the BODY begin tag.
  Optionally writes page Title, heading and Body tag attributes.

  This function is not affected by the StopWrite setting.

  Must be terminated by HtmlBodyEnd() or both BodyEnd() and HtmlEnd().

Examples:

  function main()

    if !ClipXOpen()
      Quit
    endif
    header()

    // Example 1: htmlBodyBeg() with no Title, heading or body attributes
    // HtmlBodyBeg()
    // htmlWrite( "htmlBodyBeg/End test" )

    // Example 2: htmlBodyBeg() with no heading text
    // HtmlBodyBeg( "Title text", , 'BgColor="white"' )
    // htmlWrite( "htmlBodyBeg/End test" )

    // Example 3: htmlBodyBeg() with normal size heading. Note the Br().
    // HtmlBodyBeg( "Title text", "Heading Text", 'BgColor="white" ' )
    // Br()
    // htmlWrite( "htmlBodyBeg/End test" )

    // Example 4: htmlBodyBeg() with large centered heading
    HtmlBodyBeg(;
       "Title text",;
       "<center><h1>Heading Text</h1><center>",;
       'BgColor="white" ' )
    htmlWrite( "htmlBodyBeg/End test" )

    htmlBodyEnd()

    ClipXClose()

  return nil

Files: Library is ClipX.Lib


See Also: HtmlBodyEnd()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson