39,084
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title> 页面名称 </title>
<style type="text/css">
body {
background-color: #000;
color: #0f0;
}
</style>
</head>
<body>
<pre id="code">
/**
*2013—02-14,
*2013-02-28.
*/
Boy name = Mr LI
Girl name = Mrs ZHANG
// Fall in love river.
The boy love the girl;
// They love each other.
The girl loved the boy;
// AS time goes on.
</pre>
<script type="text/javascript">
var pre = document.getElementById("code");
var text = pre.innerText;
var num = 0;
function run() {
pre.innerText = text.slice(0,num) + (num%2==0?"":"_");
if (++num<=text.length)
setTimeout(run, 60);
}
run();
</script>
</body>
</html>