易截截图软件、单文件、免安装、纯绿色、仅160KB

DropDownList调用javascript控制表格行tr的显示与隐藏

DropDownList调用javascript控制表格行tr的显示与隐藏
<mce:script language="javascript"><!--
function cao() {
if(document.all.ddl_class.value=="0")
{
hongtou.style.display="none";
wailai.style.display="none";
wailai1.style.display="none";
}
else if(document.all.ddl_class.value=="1")
{
hongtou.style.display="block";
wailai.style.display="none";
wailai1.style.display="none";
}
else
{
hongtou.style.display="none";
wailai.style.display="block";
wailai1.style.display="block";
}
}
// --></mce:script>
<asp:DropDownList ID="ddl_class" runat="server" onchange="cao()">
<asp:ListItem Value="0">新建文件</asp:ListItem>
<asp:ListItem Value="1">红头文件</asp:ListItem>
<asp:ListItem Value="2">外来文件</asp:ListItem>
</asp:DropDownList>
<table>
<tr id="hongtou" style="DISPLAY:none" mce_style="DISPLAY:none">
<td>份数:</td>
<td></td>
</tr>
<tr id="wailai" style="DISPLAY:none" mce_style="DISPLAY:none">
<td>来文(电)单位:</td>
<td></td>
</tr>
<tr id="wailai1" style="DISPLAY:none" mce_style="DISPLAY:none">
<td>联系人:</td>
<td></td>
</tr>
</table>


相关文档:

javascript 控制css js控制 clss


像上面的一张图片我们该怎么用js 和css + div 很好的应用到我们的项目中呢?
<style>
.InpuRight{
height:20px;background:url(img/msg_bg.png) no-repeat;background-position:0px -250px;
}
.InputError{
width:20px;height:20px;background:url(img/msg_bg.png) no-repeat 0px 0px;
}
.inputLogin{
wid ......

15个JavaScript Web UI库

  几乎所有的富 Web 应用都基于一个或多个 Web UI 库或框架,这些 UI 库与框架极大地简化了开发进程,并带来一致,可靠,以及高度交互性的用户界面。本文介绍了15 个非常强大的 JavaScript Web UI 库,非常适合各种各种规模的富 Web 应用的开发。
  LivePipe
  LivePipe UI 基于 Prototype Javascript 框架,包含了 ......

javascript中setTimeout应用

不知道怎么回事,以前用setTimeout没出过问题,这次怎么用都错
代码:
window.onload=function(){
function x(){
alert("s");
}
setTimeout("x()",1000);
}
把window.onload=function(){}去掉就能用了,但是这样写惯了,而且去掉之后,像document.getElementById这样的方法会找不到对象, ......

Javascript 修改 URL 参数


String.prototype.changeQuery = function(name,value)
{
var reg = new RegExp("(^|)"+ name +"=([^&]*)(|$)");
var tmp = name + "=" + value;
if(this.match(reg) != null)
{
return this.replace(eval(reg),tmp);
}
else
{
if(this.match("[\?]"))
{
return this + ......

javascript数组操作

  <script language="javascript" type="text/javascript">
        function arrayTest() {
            //使用new Array()
            var array1 = ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号