コブランディング テンプレートのサンプル
以下に、前の各トピックでコブランディングされたページの例を生成するのに使用したテンプレートを示します。このテンプレートでは、コブランディングされたページの HTML 本文を CBALERTBody 変数を使用して指定しています。ここでは、構造をわかりやすくするために改行とインデントを入れています。
var CBALERTBody = "
<table width=595 border=0 cellpadding=0 cellspacing=0>
<tr>
<td colspan=5>
<table width=595 border=0 cellpadding=0 cellspacing=0>
<tr>
<td rowspan=2>
<img src='http://adventure-works.com/cb/images/aw_logo189x39.gif'
border=0
height=39
width=189
>
</td>
<td bgcolor=#336633 width=134 height=23 align=right valign=middle>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=155
height=23
border=0
>
</td>
<td bgcolor=#336633 nowrap align=right>
<a href='http://adventure-works.com/cb/MyAccount.asp'>
<font face='Arial,sans-serif' size='1' color='#ffffff'>
MY ACCOUNT
</font>
</a>
</td>
<td bgcolor=#336633>
<font face='Arial,sans-serif' size='1' color='#ffffff'>
|
</font>
</td>
<td bgcolor=#336633 nowrap align=left>
<a href='http://adventure-works.com/cb/LegalStatement.asp'>
<font face='Arial,sans-serif' size='1' color='#ffffff'>
PRIVACY
</font>
</a>
</td>
</tr>
<tr>
<td colspan=4>
<img src='http://adventure-works.com/cb/images/stripes406x16.gif'
border=0
height=16
width=406
>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=5>
<table width=595 border=0 cellpadding=0 cellspacing=0>
<tr>
<td bgcolor=#EBEBBE colspan=4>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=282
height=15
border=0
>
</td>
<td rowspan=4>
<img SRC='http://adventure-works.com/cb/images/gear_life313x94.gif'
width=313
height=94
border=0
>
</td>
</tr>
<tr>
<td bgcolor=#EBEBBE>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=10
height=1
border=0
>
</td>
<td bgcolor=#EBEBBE align=right>
<img SRC='http://adventure-works.com/cb/images/quick_search62x14.gif'
width=62
height=14
border=0
>
</td>
<form action='' id='form1'>
<td bgcolor=#EBEBBE align=center>
<font face='Verdana, Arial, Helvetica, sans-serif' size=1>
<input type=text size=20 maxlength=20 name='search'>
</font>
</td>
</form>
<td bgcolor=#EBEBBE align=left>
<img SRC='http://adventure-works.com/cb/images/go_27x24.gif'
width=27
height=24
border=0
>
</td>
</tr>
<tr>
<td bgcolor=#EBEBBE colspan=4>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=282
height=15
border=0
>
</td>
</tr>
<tr valign=bottom>
<td bgcolor=#EBEBBE valign=bottom align=left colspan=4>
<table width=282 border=0 cellpadding=0 cellspacing=0>
<tr>
<td bgcolor=#EBEBBE valign=bottom nowrap>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=1
height=1
border=0
>
<a href='http://adventure-works.com/cb/default.asp'>
<img SRC='http://adventure-works.com/cb/images/nav_home_t47x23.gif'
width=47
height=23
border=0
>
</a>
</td>
<td bgcolor=#EBEBBE valign=bottom>
<a href='http://adventure-works.com/cb/Products.asp'>
<img SRC='http://adventure-works.com/cb/images/nav_products_t76x23.gif'
width=76
height=23
border=0
>
</a>
</td>
<td bgcolor=#EBEBBE valign=bottom>
<a href='http://adventure-works.com/cb/Cart.asp'>
<img SRC='http://adventure-works.com/cb/images/nav_cart_t45x23.gif'
width=45
height=23
border=0
>
</a>
</td>
<td bgcolor=#EBEBBE valign=bottom>
<a href='http://adventure-works.com/cb/OrderStatus.asp'>
<img SRC='http://adventure-works.com/cb/images/nav_order_t101x23.gif'
width=101
height=23
border=0
>
</a>
</td>
<td bgcolor=#EBEBBE align=left>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=12
height=1
border=0
>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=5 bgcolor=#336633 height=27 align=center valign=middle>
<font face='Verdana' size='2' color=#ffffff>
<b>Sign up to receive .NET Alerts from Adventure Works</b>
</font>
</td>
</tr>
<tr>
<td bgcolor=#CCCC99 width=121>
<table width=121 border=0 cellpadding=0 cellspacing=0>
<tr>
<td bgcolor=#CCCC99>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=1
height=20
border=0
>
</td>
</tr>
<tr>
<td bgcolor=#CCCC99 nowrap>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
widht=8
height=1
border=0
>
<img SRC='http://adventure-works.com/cb/images/downhill_banner105x180.gif'
width=105
height=180
border=0
>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=8
height=1
border=0
>
</td>
</tr>
<tr>
<td bgcolor=#CCCC99>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=1
height=15
border=0
>
</td>
</tr>
<tr>
<td bgcolor=#CCCC99>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=8
height=1
border=0
>
<img SRC='http://adventure-works.com/cb/images/binoc_banner105x100.gif'
width=105
height=100
border=0
>
</td>
</tr>
<tr>
<td bgcolor=#CCCC99>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=1
height=150
border=0
>
</td>
</tr>
</table>
</td>
<td bgcolor=#ffffff width=15>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=15
height=1
border=0
>
</td>
<td bgcolor=#ffffff valign=top>
<table width=308 border=0 cellpadding=0 cellspacing=0>
<tr>
<td bgcolor=#ffffff>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=1
height=20
border=0
>
</td>
</tr>
<tr>
<td bgcolor=#ffffff>
ALERT_UI
</td>
</tr>
</table>
</td>
<td bgcolor=#ffffff width=15>
<img SRC='http://adventure-works.com/cb/images/Trans1x1.gif'
width=15
height=1
border=0
>
</td>
</tr>
</table>
";
|