<form name="form" action="{:U('Iconfig/linkinsert')}" method="post">
<table cellpadding="0" cellspacing="0">
<tr><td class="table_right">友情链接类型</td><td><span><input type="radio" name="type" value="1" οnclick="docheck1()" checked>文字</span><span><input type="radio" name="type" value="2" οnclick="docheck()">图片</span></td></tr>
<tr><td class="table_right">友情链接名称</td><td><input type="text" name="name" class="table_text" /></td></tr>
<tr><td class="table_right">友情链接地址</td><td><input type="text" name="url" class="table_text" value="http://"/><em class="smallt">http://开头</em></td></tr>
<!--<tr><div id="aa"></div></tr>
<tr><div id="bb"></div></tr>-->
<asp:TemplateColumn HeaderText="操作" ItemStyle-Width="60" HeaderStyle-Width="60" ItemStyle-CssClass="ta"
HeaderStyle-CssClass="ta">
<ItemTemplate>
<tr id="aa">
</tr>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="操作" ItemStyle-Width="60" HeaderStyle-Width="60" ItemStyle-CssClass="ta"
HeaderStyle-CssClass="ta">
<ItemTemplate>
<tr id="bb">
</tr>
</ItemTemplate>
</asp:TemplateColumn>
<tr><td class="table_right">友情描述</td><td><input type="text" name="description" class="table_text" /></td></tr>
<tr><td class="table_right">是否显示</td><td><span><input type="radio" name="show" value="1">是</span><span><input type="radio" name="show" value="2">否</span></td></tr>
<tr><td></td><td><input type="submit" value="submit" /></td></tr>
</table>
</form>
<script>
/*if(form.radio.type.value==2&&form.radio.type.checked){
echo "<tr><td class='table_right'>友情链接图片</td><td><input type='text' name='pic' id='pic' class='table_text' /><input type='button' id='image1' value='选择图片' /><em class='smallt'>文字类不填</em></td></tr>";
}*/
function docheck(){
if(document.form.type[1].checked){
document.getElementById("aa").innerHTML="<td class='table_right'>友情链接图片</td><td><input type='text' name='pic' id='pic' class='table_text' /><input type='button' id='image1' value='选择图片' /><em class='smallt'>文字类不填</em></td>";
}
}
function docheck1(){
if(document.form.type[0].checked){
document.getElementById("bb").innerHTML="";
document.getElementById("aa").innerHTML="";
}
}
</script>
<table cellpadding="0" cellspacing="0">
<tr><td class="table_right">友情链接类型</td><td><span><input type="radio" name="type" value="1" οnclick="docheck1()" checked>文字</span><span><input type="radio" name="type" value="2" οnclick="docheck()">图片</span></td></tr>
<tr><td class="table_right">友情链接名称</td><td><input type="text" name="name" class="table_text" /></td></tr>
<tr><td class="table_right">友情链接地址</td><td><input type="text" name="url" class="table_text" value="http://"/><em class="smallt">http://开头</em></td></tr>
<!--<tr><div id="aa"></div></tr>
<tr><div id="bb"></div></tr>-->
<asp:TemplateColumn HeaderText="操作" ItemStyle-Width="60" HeaderStyle-Width="60" ItemStyle-CssClass="ta"
HeaderStyle-CssClass="ta">
<ItemTemplate>
<tr id="aa">
</tr>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="操作" ItemStyle-Width="60" HeaderStyle-Width="60" ItemStyle-CssClass="ta"
HeaderStyle-CssClass="ta">
<ItemTemplate>
<tr id="bb">
</tr>
</ItemTemplate>
</asp:TemplateColumn>
<tr><td class="table_right">友情描述</td><td><input type="text" name="description" class="table_text" /></td></tr>
<tr><td class="table_right">是否显示</td><td><span><input type="radio" name="show" value="1">是</span><span><input type="radio" name="show" value="2">否</span></td></tr>
<tr><td></td><td><input type="submit" value="submit" /></td></tr>
</table>
</form>
<script>
/*if(form.radio.type.value==2&&form.radio.type.checked){
echo "<tr><td class='table_right'>友情链接图片</td><td><input type='text' name='pic' id='pic' class='table_text' /><input type='button' id='image1' value='选择图片' /><em class='smallt'>文字类不填</em></td></tr>";
}*/
function docheck(){
if(document.form.type[1].checked){
document.getElementById("aa").innerHTML="<td class='table_right'>友情链接图片</td><td><input type='text' name='pic' id='pic' class='table_text' /><input type='button' id='image1' value='选择图片' /><em class='smallt'>文字类不填</em></td>";
}
}
function docheck1(){
if(document.form.type[0].checked){
document.getElementById("bb").innerHTML="";
document.getElementById("aa").innerHTML="";
}
}
</script>