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>bodybeg()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
BodyBeg()
Returns/writes HTML Body begin tag < Body ... >
------------------------------------------------------------

Syntax:

  BodyBeg( [<cText>] )  --->  cString

Arguments:

  <cText> is a character string containing other body tag attributes.

Returns: A character string consisting of the generated HTML tag.

Description:

  Generates Body begin tag to start the body section of the page.

  The generated string is always returned. The string will be written
  to standard-out depending on the value of StopWrite().
  The default StopWrite() value is FALSE. Setting the StopWrite() value
  to TRUE will suspend the write to standard-out.

  Requires a terminating BodyEnd() to end the body section of the page.

  [<cText>] is a character string containing body tag attributes.

    Attribute:       Description:
    ALink            is a character string link click color
    BackGround       background image
    BgColor          background color
    BgProperties     background image scrollable
    LeftMargin       left/right margin size
    Link             unvisited link color
    MarginHeight     top/bottom margin size
    MarginWidth      left/right margin size
    OnBlur           action when the page loses focus
    OnFocus          action when the page gains focus
    OnLoad           action when the page is loaded
    OnUnload         action when the user leaves the page
    Scroll           document scroll bar
    Text             text color
    TopMargin        top/bottom margin size
    VLink            visited link color

Examples:

  Start the HTML body section.  Use all body section defaults.
    <html>
      BodyBeg()
      ...
      ...
      ...
      BodyEnd()
    </html>

  Start the HTML body section. Set the page background color to white.
    <html>
      BodyBeg( 'bgcolor="white"' )
      ...
      ...
      ...
      BodyEnd()
    </html>

  Set the background color to "white" and
  display an alert dialog box on page load.
    <html>
      BodyBeg( ' bgcolor="white onLoad="alert('Checkout WHATS NEW')" ' )
      ...
      ...
      ...
      BodyEnd()
    </html>

Alternate

  htmlWrite( '<Body " ...attribute string... ">' )

Files: Library is ClipX.Lib

Online reference:  Mikodocs Guide To HTML - Body tag


See Also: BodyEnd() HtmlBodyBeg() HtmlBodyEnd()

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