Skip to content

Instantly share code, notes, and snippets.

@sdesai
Created May 3, 2010 23:38
Show Gist options
  • Save sdesai/388739 to your computer and use it in GitHub Desktop.
Save sdesai/388739 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script src="http://yui.yahooapis.com/3.1.0/build/yui/yui.js"></script>
<style>
.yui3-widget-hd, .yui3-widget-bd, .yui3-widget-ft {
border:1px solid red;
}
</style>
</head>
<body>
<script type="text/javascript">
YUI({filter:"raw"}).use("overlay", function(Y) {
var overlay = new Y.Overlay({
headerContent: "Header",
bodyContent:'Body',
footerContent:"Footer",
width:"10em",
height:"10em",
xy:[200,200]
});
overlay.on("click", function(e) {
alert(e.domEvent.target);
});
overlay.render();
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment