All for Joomla All for Webmasters

Menu Lavalamp 2

Este é um outro Menu Lavalamp, quase igual ao primeiro que eu postei, porém com pequenas diferenças no efeito.

1. Coloque isso no CSS do seu blog:

.lavaLamp {
    position: relative;
    height: 0px; width: 421px;
    background: url("../image/bg.gif") no-repeat top;
    padding: 72px; margin: -40px 0;
    overflow: hidden;
}
    /* Force the list to flow horizontally */
    .lavaLamp li {
        float: left;
        list-style: none;
    }
        /* Represents the background of the highlighted menu-item. */
        .lavaLamp li.back {
            background: url("http://perfeitodownload.webs.com/PERFEITO%20DOWNS%20IMG/lavalampd.png") no-repeat right -30px;
            width: 9px; height: 30px;
            z-index: 8;
            position: absolute;
        }
            .lavaLamp li.back .left {
                background: url("http://perfeitodownload.webs.com/PERFEITO%20DOWNS%20IMG/lavalampd.png") no-repeat top left;
                height: 30px;
                margin-right: 9px;
            }
        /* Styles for each menu-item. */
        .lavaLamp li a {
            font: bold 12px tahoma, Arial, Helvetica, sans-serif;
text-decoration: none;
color: #fff;
outline: center;
z-index: 10;
display: block;
float: left;
height: 30px;
position: relative;
overflow: hidden;
padding:5px 13px 0px 0px;
margin:3px 0px 0px 15px;

2. Cole este código entre as tags <head> e </head>:

<script src='https://dl.dropbox.com/u/8526013/jquery-1.2.3.min.js' type='text/javascript'/>
<script src='https://dl.dropbox.com/u/8526013/jquery.lavalamp.min.js' type='text/javascript'/>
<!-- Optional -->
<script src='https://dl.dropbox.com/u/8526013/jquery.easing.min.js' type='text/javascript'/><script type='text/javascript'>

$(function() { $(&quot;.lavaLamp&quot;).lavaLamp({ fx: &quot;backout&quot;, speed: 700 })});</script>

3. Coloque este código onde você quer que apareça o menu:

<div id='topo-menu'> 
<div id='menu'> 
<ul> 
<li class='back'><div class='left'/></li>
<ul class='lavaLamp'>
  <li><a href='#'>Menu</a></li>
  <li><a href='#'>Menu</a></li>
  <li><a href='#'>Menu</a></li>
  <li><a href='#'>Menu</a></li>
  <li><a href='#'>Menu</a></li>
        </ul>
<li class='back' style='left: 10px; width: 57px; display: block; overflow: hidden;'><div class='left'/></li></ul>

Obrigada ao Kaíque Gabriel.