Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create onmouse_event.html #10

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions onmouse_event.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<html>
<head><title>Background Colors</title></head>
<body>
<form>
<input type="button" value="Color" onMouseOver='window.setTimeout("f1()",1000)'>
<input type="button" value="Message" name="bmsg" onClick="msg()">
</form>
<script type="text/javascript">
function f1()
{
document.bgColor="blue";
window.setTimeout("f2()",1000);
}
function f2()
{
document.bgColor="pink";
window.setTimeout("f3()",1000);
}
function f3()
{
document.bgColor="green";
window.setTimeout("f4()",1000);
}
function f4()
{
document.bgColor="yellow";
window.setTimeout("f5()",1000);
}
function f5()
{
document.bgColor="red";
window.setTimeout("f6()",1000);
}
function f6()
{
document.bgColor="gray";
window.setTimeout("f7()",1000);
}
function f7()
{
document.bgColor="black";
window.setTimeout("f1()",1000);
}
function msg()
{
window.status="This is window Status.";
alert("Display background colors to browser window");
}
</script>
</body>
</html>