软件教程

用ASP做一个loading效果的实例

来源: 本站    类别: 软件教程    日期: 2012/4/1

 

-

<script>
function load1(name)
{
loading.style.display="none";
name.style.display="";
}

function selecte(s)
{
if(s==1)
{
loading.style.display="";

div_b.style.display="none";
div_c.style.display="none";
div_d.style.display="none";
setTimeout("load1(div_a)",2000);
}
if(s==2)
{
loading.style.display="";

div_a.style.display="none";
div_c.style.display="none";
div_d.style.display="none";

setTimeout("load1(div_b)",2000);
}
if(s==3)
{
loading.style.display="";

div_a.style.display="none";
div_b.style.display="none";
div_d.style.display="none";
setTimeout("load1(div_c)",2000);

}
if(s==4)
{
loading.style.display="";

div_a.style.display="none";
div_b.style.display="none";
div_c.style.display="none";

setTimeout("load1(div_d)",2000);
}

}
</script>

<select name="singerarea" onchange="selecte(this.options[this.options.selectedIndex].value)">
<option value="0">请选择</option>
<option value="1">CssRain1</option>
<option value="2">CssRain2</option>
<option value="3">CssRain3</option>
<option value="4">CssRain4</option>
</select>
<div id="loading" style="display:none;"><img src="/uploadfile/200905/14/A2222428447.gif"></div>

<div id="div_a" style="display:none;" >
<input type="text" value="1111111">
</div>

<div id="div_b" style="display:none;" >
你选择了 地区2
</div>

<div id="div_c" style="display:none;" >
<input type="button" value="bu tton">
</div>

<div id="div_d" style="display:none;" >
from cssrain js demo.
</div>


相关文章


Copyright © 2004 - 2024 CNHWW Inc. All Rights Reserved
石家庄市征红网络科技有限公司版权所有 邮政编码:050051
服务电话:0311-85315152 13931185013 在线客服QQ:81447932 / 81447933 邮箱: cnhww@163.com