Hey guys, I really can't figure out how to use cookies with this class switcher I got here
Jquery:
<script type="text/javascript">
$(document).ready(function(){
$("a.switch_thumb").toggle(function(){
$(this).addClass("swap");
$(".main").fadeOut("fast", function() {
$(this).fadeIn(300).addClass("main2");
});
}, function () {
$(this).addClass("swap");
$(".main2").fadeOut("fast", function() {
$(this).fadeIn(300).addClass("main3");
});
}, function () {
$(this).removeClass("swap");
$(".main").fadeOut("fast", function() {
$(this).fadeIn(300).removeClass("main3");
$(this).fadeIn(300).removeClass("main2");
});
});
</script>
Any tips?