Cita:
Basicamente lo que hace es que al dar click en determinado div me cambia el color, si sustituyo color+x por color18, color17 si funciona. $(document).ready(function() {
var color1 = '#AC193D';
var color2 = '#D24726';
var color3 = '#FF8F32';
var color4 = '#930';
var color5 = '#82BA00';
var color6 = '#008A17';
var color7 = '#004B8B';
var color8 = '#0072C6';
var color9 = '#5DB2FF';
var color10 = '#008299';
var color11 = '#03B3B2';
var color12 = '#8C0095';
var color13 = '#DC4FAD';
var color14 = '#000000';
var color15 = '#585858';
var color16 = '#001940';
var color17 = '#030';
var color18 = '#036';
for (x=0; x<=18; x++) {
$("#modules-colors-nav-"+x).click(function(event){
$("#nav").css({ background: color+x });
});
};
});
var color1 = '#AC193D';
var color2 = '#D24726';
var color3 = '#FF8F32';
var color4 = '#930';
var color5 = '#82BA00';
var color6 = '#008A17';
var color7 = '#004B8B';
var color8 = '#0072C6';
var color9 = '#5DB2FF';
var color10 = '#008299';
var color11 = '#03B3B2';
var color12 = '#8C0095';
var color13 = '#DC4FAD';
var color14 = '#000000';
var color15 = '#585858';
var color16 = '#001940';
var color17 = '#030';
var color18 = '#036';
for (x=0; x<=18; x++) {
$("#modules-colors-nav-"+x).click(function(event){
$("#nav").css({ background: color+x });
});
};
});