|
  
- UID
- 313187
- 帖子
- 1315
- 威望
- 385 点
- 魅力
- 334
- ◎心币◎
- 312 $
- 推广积分
- 96 分
- 充值币
- 0 枚
- 性别
- 男
      
|
楼主
发表于 2008-8-26 11:35
| 只看该作者
--------------------------------------------------------------------------------
脚本说明:
第一步:把如下代码加入<head>区域中
<SCRIPT>
x=false;
old="";
function conmuta() {
if (x) {
document.GIFanim.src=old;
document.anim.boton.value="Stop Download";
x=false;
}
else {
old=document.GIFanim.src;
document.GIFanim.src="test.gif";
document.anim.boton.value="continue Download";
x=true;
}
}
</SCRIPT>
第二步:把如下代码加入<body>区域中
<table align=right>
<tr><td>
<img name="GIFanim" src="test.gif" tppabs="http://www.csdn.net/javascript/test.gif" alt="animated GIF" width="75" height="50">
<tr><td>
<form name="anim">
<input name="boton" type="button" value="Stop Download" onClick="conmuta()">
</form>
</table>
|
|