Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div id="content">
<a href="#" onclick="show_text();">Com</a>
<div id="com" style="display: none">
aaaa
</div>
</div>
</body>
</html>
 
#content {
  height: 300px;
}
#com {
  height: 200px;
}
body {  
background: #FFFF00;  
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#008000', endColorstr='#FFFF00') no-repeat;  
background: -webkit-gradient(linear, left top, left bottom, from(#008000), to(#FFFF00)) no-repeat;   
background: -moz-linear-gradient(top,  #008000,  #FFFF00) no-repeat;  
}  
  
#content {  
margin: 0 auto;  
padding: 10px;  
width: 500px;  
} 
 
function show_text() {
if (document.getElementById("com").style.display == "none") {
document.getElementById("com").style.display = "block";
} else {
document.getElementById("com").style.display = "none";
}
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
Poetropro
0viewers