javascript - jQuery messes up the z-indexes of DIVs -


i'm finishing website, there 1 little problem. whenever click next (volgende), div z-index 1 (the other 2 have 2 , 3) shows in front of other 2 , stays there. http://luukvanaggelen.com/test/test2.html website, i'm using jquery rotate plugin. code use move next page.

$(volgende).click(function(){     if ( container <= max_container )          $(('#container'+container)).rotate({animateto:150});     container++; }) 

i have no clue how possible let alone how fix it...

sorry messed code, change code , tell me if works:

max_container=3; min_container=1; container=0; $(volgende).click(function(){if ( container <= max_container ) {container++;$(('#container'+container)).rotate({animateto:150});}}) $(volgende).click(function(){if ( container >= min_container ){ $(('#container'+container)).rotate({animateto:0});container--;}}) 

edit: sorry didn't saw question clearly, should put z-index in div container, not on home inside div, , better using order instead of z-index, must place container 3 after 2 , place 2 after 1 third 1 in behind of second one


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -