I have 3 ids id==1 id==2 id==3 . each is a slideshow that has already been turned on on load. Using NOT I wish to turn Off the 2 slide shows not chosen by id. this is not working. When ID 1 is chosen- both 1 and 2 turn off instead of 2 and 3. When ID 2 is chosen- both 1 and 2 turn off instead of 2 and 3. When ID 3 is chosen - both 1 and 3 turn off instead of 1 and 2. Is this a logic error or something to do with the slideshow code?
if (id == 3){
alert(id);
$('div.nivoSlider:not(#c' + id + ')').data('nivoslider').stop(); }
if (id== 2){
alert(id);
$('div.nivoSlider:not(#c' + id + ')').data('nivoslider').stop(); }
if (id== 3) {
alert(id);
$('div.nivoSlider:not(#c' + id + ')').data('nivoslider').stop(); }
Hopefully, I have given enough information. THank you for your help.
Aucun commentaire:
Enregistrer un commentaire