Hey if you still would like a window pop up here is something i created. It's simple and quick:
Code:
<!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>Game Selection</title>
<style>
* { margin:0 auto; padding:0;}
body { background-color:#CCCCCC;}
#play { width:200px; border:1px solid black; text-align:center; margin-top:5px; cursor:pointer; background:white;}
#play:hover { text-decoration:underline;}
#bce_popup {
position:absolute;
top:0;
left:0;
background-color:black;
background-color: rgba(0,0,0,0.85);
width:100%;
height:100%;
display:none;
}
#bce_main {
top:10px;
height: 80%;
width:80%;
margin-top:10px;
clear:both;
position:absolute;
display:none;
background-color:transparent;
border:1px solid black;
background-color:white;
margin-left:10%;
}
</style>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
$(function(){
$(document).on('click','#play',function(){
create_popup();
})
$(document).on('click','#bce_popup',function(){
close_pop()
})
})
function create_popup(){
$('body').append('<div id="bce_popup"></div><div id="bce_main"></div>');
$('#bce_popup').fadeIn(400);
$('#bce_main').fadeIn(400);
}
function close_pop(){
$('#bce_popup').fadeOut(400)
$('#bce_main').fadeOut(400)
delay(400)
$('#bce_popup').remove()
$('#bce_main').remove()
}
</script>
</head>
<body>
<div id="play">Display</div>
</body>
</html>
Place anything between
Code:
<div id="bce_main"></div>
to display. Also to hide just click the grey area. Let me know if this works for you.
Bookmarks