tiene que tener un orden especial?
aca te paso uno que muestra del primero al ultimo
Código HTML:
Ver original<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript"> $( function(){
$("#tips li:eq(0)").show();
setInterval("mostrar()",1000);
});
mostrar = function(){
li = $("#tips li:visible").hide();
liNext = li.next();
if(liNext.length){
liNext.show();
} else {
$("#tips li:eq(0)").show();
}
};
#tips, #tips li{
margin:0;
padding:0;
list-style:none;
}
#tips{
width:250px;
font-size:16px;
line-height:120%;
}
#tips li{
padding:20px;
background:#e1e1e1;
display:none; /* hide the items at first only */
}
<li>... if you want to become a better coder you need to eat your vegetables?
</li> <li>... it takes more time to code a web page then to make a pizza?
</li> <li>... you should validate your code?
</li> <li>... jQuery is your friend? For real!
</li> <li>... no matter what some people claim, you can't learn CSS in 3 hours?
</li>