Skip to content

Instantly share code, notes, and snippets.

@dewski
Created April 23, 2010 04:39
Show Gist options
  • Save dewski/376181 to your computer and use it in GitHub Desktop.
Save dewski/376181 to your computer and use it in GitHub Desktop.
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Search Test</title>
<link rel="stylesheet" type="text/css" href="src/style/global.css" media="screen" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#initial').live('focus', function (e) {
$('#fade').fadeIn();
});
$('#input_field').live('blur', function (e) {
$('#fade').fadeOut();
});
});
</script>
<style type="text/css">
#fade { position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 10; background: rgba(255,255,255,0.9); }
body { color: #000; }
</style>
</head>
<body>
<div id="fade" style="display:none;">
<form method="post" action="">
<input id="input_field" type="text" name="name" />
<input type="submit" name="submit" value="Search" />
</form>
</div>
<input id="initial" type="text" name="search" value="Search..." />
<div>
<img src="Dropular.jpg" alt="" />
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment