Syntax Parameters Example Programs
w3HtmlHeader outputs the header for this page. Give your Web pages a consistent look and feel using w3HtmlHeader() and w3HtmlFooter() with the same header and footer text for all related Web pages. For instance, suppose you want all of your Web pages to have the same navigation bar on the left side of the Web page. You can put the HTML code to display this in an item in the w3Html file, and build all of your Web pages using this standard item. This way, if you ever want to change your navigation bar, you only have to do it once in the header.
w3HtmlHeader is used to process the template from the start of the file to the ##CONTENT## flag. w3HtmlFooter processes the template from after the ##CONTENT## flag to the end of the file.
The header should look something like this:
<HTML><BODY>
Really Interesting Header info goes here
##CONTENT##
Footer information goes here
</BODY></HTML>
The ##CONTENT## is replaced with the entire content of your Web page.
call w3HtmlHeader (id, sub)
|
id |
In |
The item-ID to insert. If null is passed, then the HTML item named {appname}.headfoot.htm is used (where {appname} is the application name passed to w3HtmlInit). If there is no item in the w3Html file with that name, then the item named system.headfoot.htm is used. If system.headfoot.htm doesn't exist, then <HEAD><BODY> is used. |
|
sub |
In |
The substitution matrix. See w3HtmlParse for more information about the substitution matrix. You can limit the text in the item that's inserted by bracketing it with ##BEGIN## and ##END##. For instance, if you use the following call: call w3HtmlHeader("xyz.html","") ... the xyz.html item looks like this: <!-- Only "Inserted HTML" below is inserted --> ##BEGIN## Inserted HTML ##CONTENT## ##END## Be sure the ##CONTENT## is inside of the Begin/End block. |