Hey, I was bored, so I started workin’ on a little somethin’ that would simulate the ‘closing effect’ of a window. Here’s a sample of what I am doing: [url=”http://216.36.173.149/my%20site/”]Window Simulation
-Dan
[b]**EDIT
Here’s the code, too, incase anyone needs it:
CSS:
[code]
#bar {
height:30px;
width:100%;
text-align:right;
background:url(“images/unfocus.png”)
}
#bar:hover {
background:url(“images/focus.png”)
}
JavaScript/HTML:
[code]<?xml version=”1.0″ encoding=”utf-8″?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<link rel=”SHORTCUT ICON” href=”Images/Assets/favicon.ico”></link>
<meta http-equiv=”content-type” content=”text/html;charset=utf-8″ />
<meta http-equiv=”Content-Style-Type” content=”text/css” />
<title>Window Simulation</title>
<style type=”text/css”>
@import url(“styles.css”);
</style>
<script language=”javascript”>
function closeIt(it){
document.bar.style.height=”0px”;
}
</script>
</head>
<body>
<div id=”bar”><img src=”images/close.gif” onClick=”closeIt(‘bar’)” alt=”Close” width=”25″ height=”30″ /></div>
</body>
</html>