Hi,
Can someone show me how to (if possible) remove the javascript from this code so that it will be pure css code? I figured if there were a script in pure css, that would mean no javascript.
Code:
<html>
<head><title>Popup Window in Pure CSS</title>
<style type="text/css">
#container {
float:left;
width:100%;
}
#col1 {
float:left;
width:auto;
background:red;
border-style: solid;
border-width: 1px;
padding: 5px;
}
#col2 {
float:left;
width:auto;
background:yellow;
margin-left: 7px;
margin-right: 7px;
border-style: solid;
border-width: 1px;
padding: 5px;
}
#col3 {
float:left;
width:auto;
background:green;
border-style: solid;
border-width: 1px;
padding: 5px;
margin-bottom: 5px;}
</style>
</head>
<body>
Click <a onmouseover='this.style.cursor="pointer" ' onfocus='this.blur();' onclick="document.getElementById('PopUp').style.display = 'block' " ><span style="text-decoration: underline;">here</span></a>
<div id='PopUp' style='display: none; position: absolute; left: 100px; right: 100; top: 50px; border: solid black 1px; padding: 10px; background-color: rgb(255,255,225); text-align: justify; font-size: 14px; width: auto;'>
Banners are categorized by their dimensions. Choose a dimension below to browse those banners:
<p />
<div id="container">
<div id="col1">
<a href="">Link</a><br />
<a href="">Link</a><br />
<a href="">Link</a><br />
<a href="">Link</a><br />
<a href="">Link</a><br />
</div>
<div id="col2">
<a href="">Link</a><br />
<a href="">Link</a><br />
<a href="">Link</a><br />
<a href="">Link</a><br />
</div>
<div id="col3">
<a href="">Link</a><br />
<a href="">Link</a><br />
<a href="">Link</a><br />
<a href="">Link</a><br />
</div>
<div style='text-align: right;'>
<a onmouseover='this.style.cursor="pointer" ' style='font-size: 14px;' onfocus='this.blur();' onclick="document.getElementById('PopUp').style.display = 'none' " >
<span style="text-decoration: underline; text-valign: ;">Close</span></a></div>
</div>
</body>
</html>
__________________
Made2Own
|