You can still have slide by doing a plugin:
$.fn.slide = function(dir) {
if(!dir || dir == "leftright") this.animate({width:'toggle'},
"slow");
else if(dir == "updown") this.animate({height:'toggle'}, "slow");
}
$("#foo").slide("leftright");
$("#bar").slide("updown");
Infact maybe slideUp, slideDown and slideToggle should be deprecated
in favour of a .slide method (something for 1.2)?
$("#foo").slide("width", "toggle", "slow");
$("#foo2").slide("width", "show", "slow");
$("#bar").slide("height", "toggle", "slow");
$("#bar2").slide("height", "show", "slow");
You can probably use .animate() for something like this, but shortcuts
can be far better (especially if they are used a lot) - slightly more
jQuery code, but less overall code.
On Aug 24, 4:38 pm, Michael Stuhr <[EMAIL PROTECTED]> wrote:
> Andy Matthews schrieb:> He might have misread the slice() function?
>
> that's a 2.0 feature (or better shall be) ...
>
> micha