Table Background:

Inserts the Table Background embed script
Prompts for background image
Includes Disappearing Comment

How to use it:  By default, Outlook Express will not embed an image that is set as a background for a table.  Thus we once again need to script it in a similar manner to the way Sound is done.

This feature is only useful if you plan on including a table in your document, so only use it after you have the table set up.  When you click the Tab Bgr button, you will be prompted to pick an image.  Once that is done, the following code will appear in the window:

id=TabBak

<IMG height="10" width="10" id=image src="Graphics/Blue Background.jpg" style="DISPLAY: none"> 

<SCRIPT language=JavaScript>
function tableBackground() {
    TabBak.background = image.src;
}
tableBackground();
</SCRIPT>

Don't let that scare you if you don't know scripting because you don't have to understand what any of it actually does.  The only line you need to pay any attention to is the first one: id=TabBak. For the table background script to work properly, this line needs to be moved into the code for the table itself.

Note:  The Table Background embedding script does not need to be physically located anywhere near the table itself - it'll still work fine, however to make the end code easier to read, I find it is a good idea to locate this script immediately after the table.  It just helps to keep everything straight...

So, we'll need to move that line.  Place the cursor to the left of this line and click once, the entire line should highlight (or you can click and drag if you prefer).  Press Ctrl-X (or hit the Cut button) to remove this line from it's current position.

Now, look at the code for the table itself.   Find the first line of the table - it'll most likely look like this: <TABLE BORDER=1> Insert a space between the words "Table" and "Border" and paste our ID line back in.

The end result will look like this: <TABLE id=TabBak BORDER=1>. That's all there is to it, your table will now include an embedded background image.

The code, before moving the Id line:

<TABLE BORDER=1>
    <TR>
        <!-- Row 1 Column 1 -->
            <TD ALIGN=CENTER>
                R1C1
            </TD>
    </TR>
</TABLE>

id=TabBak

<IMG height="10" width="10" id=image src="Graphics/Blue Background.jpg" style="DISPLAY: none">

 <SCRIPT language=JavaScript>
function tableBackground() {
    TabBak.background = image.src;
}

tableBackground();
</SCRIPT>

The code, after the Id line has been moved to the correct position:

<TABLE id=TabBak BORDER=1>
    <TR>
        <!-- Row 1 Column 1 -->
            <TD ALIGN=CENTER>
                R1C1
            </TD>
    </TR>
</TABLE>

<IMG height="10" width="10" id=image src="Graphics/Blue Background.jpg" style="DISPLAY: none">
 
<SCRIPT language=JavaScript>
function tableBackground() {
    TabBak.background = image.src;
}

tableBackground();
</SCRIPT>

Finally, this script also contains a "disappearing comment".   The comment will only appear in the Compose Window of Outlook Express, it will disappear once the message is sent - it serves to mark the location of the background image of the table which would otherwise be invisible.