document.open();
document.write("hello");
document.close();
<html>
<head>
<title>文字交替</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script type="text/javascript" language="javascript">
<!--
var str = "欢迎访问曲径通幽论坛";
var str2 = "welcome to Groad.net";
var flag = 0;
function showText()
{
if (flag == 1)
{
flag = 0;
document.open();
document.write(str);
document.close();
}
else
{
flag = 1;
document.open();
document.write(str2);
document.close();
}
window.setTimeout("showText()", 1000);
}
-->
</script>
</head>
<body onLoad="showText()">
</body>
</html>
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |