日期:2014-05-16  浏览次数:20362 次

JS控制div里内容有内容显示没内容隐藏
本帖最后由 u012335455 于 2013-12-09 15:59:56 编辑
<table>
<tbody>
        <tr>
            <td height="40" colspan="2"><img alt="" width="94" height="24" src="{path template/}/images/ov.jpg"></td>
        </tr>
        <tr>
            <td style="color: #434242" valign="top" colspan="2">
            {print content('content')/}
            </td>
        </tr>
        <tr>
            <td height="40" valign="middle" width="0%"></td>
            <td width="100%" align="left" valign="middle"><a style="color: #15a8bf; cursor: pointer" onclick="ShowV(1)"><img src="{path template/}/images/dianj.gif" width="94" height="24" /></a></td>
        </tr>
        <tr style="display: none" id="dd1">
            <td style="padding-bottom: 10px; padding-left: 0px; padding-right: 0px; color: #434242; padding-top: 0px" colspan="2">
            <table style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; border-top: medium none; border-right: medium none; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0">
                {print content('source')/}
            </table>
            </td>
        </tr>
        <tr>
            <td height="40" valign="middle"></td>
            <td valign="middle"><a style="color: #15a8bf; cursor: pointer" onclick="ShowV(2)"><img src="{path template/}/images/dianj1.gif" width="94" height="24" /></a></td>
        </tr>
        <tr style="display: none" id="dd2">
            <td style="padding-bottom: 10px; padding-left: 0px; padding-right: 0px; color:&