<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> 状态栏默认信息 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" language="javascript">
<!--
var name = prompt("Input your name:", "easy");
if (name == null || name == "") {
window.defaultStatus = "Welcome to www.groad.net";
}
else {
window.defaultStatus = name + ", welcome to www.groad.net";
}
//读取状态栏默认信息
document.write("状态栏中的信息为:", window.defaultStatus,"<br>");
-->
</script>
</head>
<body>
设置状态栏的默认信息使用 window.defaultStatus .
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> 状态栏瞬间信息 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" language="javascript">
<!--
window.defaultStatus = "welcome";
function setStatus(message) {
window.status = "hello";
return true;
}
-->
</script>
</head>
<body>
<a href="http://www.baidu.com" onmouseover="return setStatus('hello')"> Exp-1 </a><br>
<a href="http://www.google.com.hk" onmouseover="return setStatus('world')"> Exp-2 </a><br>
</body>
</html>
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |