標題: 跳舞娃娃 [打印本頁]
作者: danny 時間: 2007-11-27 10:49 標題: 跳舞娃娃
一個娃娃會在網頁中跳舞!!複製內容到剪貼板
代碼:
<CENTER>
<TABLE border=1 borderColor=#ffcccc borderlight="#CCCCFF">
<TBODY>
<TR>
<TD align=middle><strong><font color="red" size="5">跳舞娃娃</font></strong></TD></TR>
<TR>
<TD align=middle>
<script language="javascript">
<!-- Begin
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("mac") != -1)
var a="\r";
else
var a="\n";
var max=0;
function tlist() {
max=tlist.arguments.length;
for (i=0; i<max; i++)
this[i]=tlist.arguments[i];
}
tl = new tlist(
" o"+a+
" /|\\"+a+
" */ \\* 跳舞"+a,
" o_"+a+
" \<| *"+a+
" *\>\\ 跳舞"+a,
" _o/*"+a+
" * |"+a+
" / \\ 跳舞"+a,
" *\o_"+a+
" / *"+a+
" \<\\ 跳舞"+a,
" _o/*"+a+
" * |"+a+
" / \\ 跳舞"+a,
" *\\c/*"+a+
" )"+a+
" / \> 跳舞"+a,
" *"+a+
" \\__/c"+a+
" \> \\* 跳舞"+a,
" __/"+a+
" (o_*"+a+
" \\* 跳舞"+a,
" \\ /"+a+
" |"+a+
" */o\\* 跳舞"+a,
" \\_"+a+
" ("+a+
" */o\\* 跳舞"+a,
" \<_"+a+
" __("+a+
" * o|* 跳舞"+a,
" /_"+a+
" __("+a+
" * o|* 跳舞"+a,
" ___"+a+
" *\/ \>"+a+
" o|* 跳舞"+a,
" *"+a+
" o|_/"+a+
" */ \\ 跳舞"+a,
" *"+a+
" _o|_"+a+
" * \>\\ 跳舞"+a,
" _o/*"+a+
" * |"+a+
" / \\ 跳舞"+a,
" *\\o/*"+a+
" |"+a+
" / \\ 跳舞"+a,
" c/*"+a+
" \<\\"+a+
" */\\ 跳舞"+a,
" c__"+a+
" \<\ *"+a+
" */\\ 跳舞"+a,
" c__"+a+
" /\ *"+a+
" * /\> 跳舞"+a,
" c/*"+a+
" /(__"+a+
" * / 跳舞"+a,
" __o/*"+a+
" * (__"+a+
" \< 跳舞"+a,
" __o_"+a+
" * / *"+a+
" \<\\ 跳舞"+a,
" *_o_"+a+
" | *"+a+
" \< \\ 跳舞"+a,
" *_c_*"+a+
" |"+a+
" \>\\ 跳舞"+a,
" *_c_*"+a+
" |__"+a+
" \> 跳舞"+a,
" *_c_*"+a+
" __|__"+a+
" 跳舞"+a,
" "+a+
" *_c_*"+a+
" __)__ 跳舞"+a,
" "+a+
" *\\c/*"+a+
" __)__ 跳舞"+a
);
var x=0;
function tick() {
document.animation.cheerleader.value = " " + a +
tl[x];
x++;
if (x != max)
setTimeout("tick()", 200);
else
x = 0;
}
// End -->
</script>
<form name=animation><TEXTAREA name=cheerleader rows=5 cols="20"></TEXTAREA>
<INPUT onclick=javascript:tick() type=button value="開始跳舞">
</form></TD></TR></TBODY></TABLE></CENTER>
<Script language="javascript">
tick();
</Script>
出處:摩尼BBS
歡迎光臨 ihao論壇 (https://ihao.org/dz5/) |
Powered by Discuz! 6.0.0 |