I'm in trouble. I need help please
Hello. I'm starting in jquery. I need help to correct "hide effect" to image list. When I choose various menu options (shows background image) and I click on another "tab", the default is that images surpass the previous menu and then hide.
Does this have a solution?
jsfiddle: http://jsfiddle.net/hvZHU/34/
css:
- .visto_mod {
- margin-top:-19px;
- margin-left:100px;
- position: absolute;
- background-image: url(http://s2.subirimagenes.com/imagen/previo/thump_8102109vistobueno.png);
- display: block;
- width:10px;
- height:15px;
- }
js:
- $('ul.modelos > li:first-child').append('<span class="visto_mod"></span>').addClass('active_mod');
-
- $('ul.modelos > li').click(function () {
- var idBoton = $(this).attr('id').substr(14);
- var botSelecc = $('ul.contenedorMod ul > li > div[id=contMod_'+idBoton+']').css("display","block");
- var botTodo = $('div[id=contMod_'+idBoton+']').closest('ul.contenedorMod').children('li').children('ul').children('li').children('div');
-
-
- $(this).addClass('active_mod').append('<span class="visto_mod"></span>');
-
- return false;
- });