erm...can jquery toggle the original css(style.css) value and the new value(set in the .animation{})?
$(function() {
$('a.maximize').click(function() {
$($(this).attr('href')).animate({
position: "absolute",
top: 0,
left: 0,
height: '99.5%',
width: '99.5%',
opacity: 1,
},1000)
});
});
this is the jquery code i have now,but how to toggle the a href target to the new value(code above)
or set the .animate{} change after click,and change back the previous .animate{} after click again.
example: the same button, but first time click, change it to width height 100%,
but the second time click on the same button, change them back to the width height 50%
the third time change to width height 100% and so on..