i'm hoping it's okay to ask a question on someone else's question. i'm trying to do something similar, except instead of displaying text in a certain font based on the selected option, i want to display a different image slideshow based on which option is selected. i feel this is getting into much more complicated java than i'm cut out for though. currently, i have html/java code for both autoplay slideshows and static ones you can click to go to the next/previous image. i was hoping to combine that with the slideshow changing based on which option is selected. imagine you are selling a shirt that comes in 5 colours and based on which colour someone chooses, you show a slideshow of several images corresponding to that colour. it's probably too hopeful to think i can throw my code in between the curly braces for each if statement in function styleselect...