36.htm
来自「介绍了javascript的常用的函数」· HTM 代码 · 共 19 行
HTM
19 行
<html>
<head>
<title>动感标题文字</title>
<script language="javascript">
<!--
text = "欢迎光临我们的网站http://www.javascript.tw";
text2 = " " + text;
function titleScroll() {
if (text2.length <text.length) text2 += " - " + text;
text2 = text2.substring(1, text2.length);
document.title = text2.substring(0, text.length);
window.setTimeout("titleScroll()", 200);
}
//-->
</script>
</head>
<body onLoad="titleScroll()">
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?