So, unlike other questions about this, I want to use this code from here: How do I switch my CSS stylesheet using jQuery?
I need to switch between multiple css styles instead of two with the following code (jQuery):
$('#backgroundDefault').click(function (){ $('link[href="style1.css"]').attr('href','style.css'); }); $('#background1').click(function (){ $('link[href="style.css"]').attr('href','style1.css'); });
Can this work? I like the smooth transition between styles, unlike many other code samples I tried.