站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Javascript 专题Vml+Dhtml:制作一个应用渐变颜色效果不错的进度条

Vml+Dhtml:制作一个应用渐变颜色效果不错的进度条

摘要: Vml+Dhtml:制作一个应用渐变颜色效果不错的进度条



<head>


效果不错的VML进度条

</head>
<body topmargin='2' leftmargin='2'>







<script>
//原作:风云舞,载自:http://www.lshdic.com/bbs
var pos1=1,posall=200 //定义全局变量,pos1为当前进度,posall为总进度
function play1(){ //播放函数
if(pos1a.style.width=Math.round(300/(posall/pos1));jindu.innerText=pos1+"/"+posall+","+Math.round(100/(posall/pos1))+"%"
fill1.angle=Math.round(300/(posall/pos1))
}
setInterval("play1()",10) //10毫秒播放一次,一般CPU保证能消化~~~
</script>
</body>

</td> </tr> <tr> <td vAlign=top align=left height="100%">
↑返回目录
前一篇: Dhtml+Js算法:5个小球运动的简化版,变通实现更简单的飞行的图片
后一篇: Vml+Dhtml:小小的页面效果,叫它"淘气鬼"好了