(view source code of whitebackground.hta as plain text)
<html>
<head>
<title>White Background</title>
<HTA:APPLICATION
APPLICATIONNAME="White Background"
ID="WhiteBackground"
VERSION="1.00"
BORDER="none"
INNERBORDER="no"
CAPTION="no"
SYSMENU="no"
MAXIMIZEBUTTON="no"
MINIMIZEBUTTON="no"
SCROLL="no"
SCROLLFLAT="yes"
SINGLEINSTANCE="yes"
WINDOWSTATE="maximize"/>
<style type="text/css">
body {
background-color: white;
font-family: swiss,helvetica,sansserif;
font-size: 150%;
text-align: center;
}
</style>
<script type="text/javascript">
if (document.addEventListener) {
document.addEventListener( "contextmenu", function(e) {
if ( document.getElementById( "ExitButton" ).style.display == "none" ) {
document.getElementById( "ExitButton" ).style.display = "block";
document.getElementById( "HelpText" ).style.display = "block";
} else {
document.getElementById( "ExitButton" ).style.display = "none";
document.getElementById( "HelpText" ).style.display = "none";
}
e.preventDefault();
}, false);
} else {
document.attachEvent( "oncontextmenu", function( ) {
if ( document.getElementById( "ExitButton" ).style.display == "none" ) {
document.getElementById( "ExitButton" ).style.display = "block";
document.getElementById( "HelpText" ).style.display = "block";
} else {
document.getElementById( "ExitButton" ).style.display = "none";
document.getElementById( "HelpText" ).style.display = "none";
}
window.event.returnValue = false;
});
}
</script>
</head>
<body onkeypress="if (window.event.keyCode==27){window.close();}">
<div style="height: 25%;"></div>
<p id="ExitButton" style="display: none; float: right; position: absolute; right: 0; top: 0; padding: 5px;"><input type="button" value="X" style="width: 3em; height: 2em; background-color: silver; font-size: 120%; font-weight: bold; color: red;" onclick="window.close( );" /></p>
<p id="HelpText" style="display: none;">To exit, press the <span onclick="window.close( );">ESC</span> key or click the <span style="background-color: silver; color: red; padding: 0.25em;" onclick="window.close( );"> X </span> in the upper right corner.<br />
<br />
Or right-click once more to hide this text and the <span style="background-color: silver; color: red; padding: 0.25em" onclick="window.close( );"> X </span> in the upper right corner again.<br />
<br />
<br />
<br />
<br />
WhiteBackground.hta, Version 1.00<br />
© 2015 Rob van der Woude<br />
<a href="http://www.robvanderwoude.com/">http://www.robvanderwoude.com</a></p>
</body>
</html>
page last modified: 2024-04-16; loaded in 0.0244 seconds