<html>
<head>
<title> LavaLamp </title>
<meta charset=utf-8 />
<style type="text/css">
body { background : #2f2f2f; }
ul li {
display:inline;
float:left;
list-style-type:none;
margin-right:10px;
position:relative;
z-index:5;
}
ul li.backLava {
border-radius :6px;
background:none repeat scroll 0 0 #009912;
}
ul li a {
color:#B9B9B9;
display:block;
font: bold 14px Arial;
padding:17px 10px 6px;
position:relative;
text-decoration:none;
text-shadow:0 1px 0 #38302F;
}
ul li a:hover {
color:Red;
font-size:14px;
}
ul li a:active {
color:#FFFFFF;
}
.children {
background-color:Red;
left:-999em;
list-style:none outside none;
min-width:100px;
position:absolute;
}
li:hover .children {
border-radius:6px 6px 6px 6px;
background:none repeat scroll 0 0 rgba(0, 0, 0, 0.4);
left:0;
margin:0;
padding:10px;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ></script>
<script type="text/javascript" src="http://www.weleasewodewick.com/redesign2/includes/jquery.lavalamp.js" ></script>
</head>
<body>
<ul style="position: relative;" class="ulclass">
<li class="selectedLava"><a alt="#" href="#Home">Root</a></li>
<li><a alt="#" href="#About">Who?</a></li>
<li><a alt="#" href="#Projects">Projects</a></li>
<li>
<a alt="#" href="#Resume">Blog</a>
<div class="children">
<span><a href="#">History</a></span>
<span><a href="#">Our Company</a></span>
<span><a href="#">Our Staff</a></span>
</div>
</li>
<li><a alt="#" href="#Resume">Contact</a></li>
</ul>
</body>
</html>
$(function() {
$('ul').lavaLamp();
});
Output
This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account
Dismiss xKeyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |