一个html,一个JS

来源:百度知道 编辑:UC知道 时间:2024/05/18 11:33:40
1.当鼠标悬停在按扭上时web页面变成红色,离开时变成黑色,请把续写HTML代码
<htm>
<head>
<title>动态网爷背静颜色</title>

2.本题是一个JAVASCRIPT脚本的实例,其功能是在“输入数据测试”页面中当用户不输入任何信息,单击“输入测试”按钮,则出现用户名提示信息。

1.
<html>
<head><title>动态网页背景颜色</title></head>
<body>
<input type=button onmouseover="document.body.style.backgroundColor='red'" onmouseleave="document.body.style.backgroundColor='black'" value="我是按钮">
</body>
</html>

2.不明