Created
December 2, 2010 04:31
-
-
Save sgilligan/724781 to your computer and use it in GitHub Desktop.
Overlay that doesn't work in IE8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>Overlay Extras via YUI</title> | |
<link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/3.2.0/build/cssfonts/fonts-min.css" /> | |
<script type="text/javascript" src="http://yui.yahooapis.com/3.2.0/build/simpleyui/simpleyui-min.js"></script> | |
<style type="text/css"> | |
.yui3-overlay-content { | |
padding:3px; | |
border:1px solid #000; | |
background-color:#aaa; | |
} | |
</style> | |
</head> | |
<body class="yui3-skin-sam yui-skin-sam"> | |
<h1>Overlay Extras - Simple YUI - Example Doesn't Work</h1> | |
<script type="text/javascript"> | |
Y.config.gallery = 'gallery-2010.08.04-19-46'; | |
Y.use('node', 'overlay', 'widget-anim', 'gallery-overlay-extras', function (Y) { | |
var overlay = new Y.Overlay({ | |
bodyContent : '<p>I am an Overlay</p>', | |
width : '200px', | |
height : '50px', | |
zIndex : 100, | |
centered : true, | |
constrain : true, | |
render : true, | |
visible : false | |
}); | |
overlay.show(); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment