预览广告,点击一下显示,在点击隐藏
<script>
function showframe(id)
{
if( document.getElementById("picframe_"+id).style.display=="none")
{
document.getElementById("picframe_"+id).style.display="";
}
else
{document.getElementById("picframe_"+id).style.display="none";
}
}
</script>
<tr><td>
<input type="button" οnclick="showframe(<%=id %>)" value="预览广告" ></TD> </TR>
<tr><td colspan="8">
<div id="picframe_<%=id %>" style="border:1px solid #000;height: 100;width:800;display: none">
<IFRAME src="advertiser/preview.jsp" frameBorder="1" width="100%" scrolling="yes" height="90">
</IFRAME>
</div>
</td></tr>
<script>
function showframe(id)
{
if( document.getElementById("picframe_"+id).style.display=="none")
{
document.getElementById("picframe_"+id).style.display="";
}
else
{document.getElementById("picframe_"+id).style.display="none";
}
}
</script>
<tr><td>
<input type="button" οnclick="showframe(<%=id %>)" value="预览广告" ></TD> </TR>
<tr><td colspan="8">
<div id="picframe_<%=id %>" style="border:1px solid #000;height: 100;width:800;display: none">
<IFRAME src="advertiser/preview.jsp" frameBorder="1" width="100%" scrolling="yes" height="90">
</IFRAME>
</div>
</td></tr>