????? ?? jQuery? ???? ?? ??? DIV ??? ??? ????, jQueryUI? ????? ?? ???? ???? ???? ?? ???? ?? ??? ?? ??????. ??? jQueryUI? ???? ? ?? ??? ????? ?? ???? ?? ? ?? ?? ??? ??? ??? ?????.
?? ??? ?? ????. ??? ?? ?? ??? ????? ?????.
?? ??? jQuery ??? ?? ??, ??? ??? ?? ?????
//author: hlhr
//require: Jquery1.4 ??
function animate_toggle_height(maxh,minh,maxo ,mino,element,speed) { //??? ?????. ???? ??: ?? ??, ?? ??, ?? ???, ?? ???, ??, ????? ??
if (element.css("height")==minh. toString().concat(" px")){//?? ??? ??
element.animate({
height:maxh,
opacity:maxo
},{queue? ?????. : false},speed);
return "Fold"
}
if (element.css("height")==maxh.toString().concat("px")){//If ?? ?????. ????
$ (this).html("");
element.animate({
height:minh,
opacity:mino
},{queue : false},speed);
return " ??? ??";
}
}
function animate_toggle_width(maxw,minw,maxo,mino,element,speed) {
if (element. css("width")==minw.toString( ).concat("px")){
element.animate({
width:maxw,
opacity:maxo
},{queue : false},speed);
return " ??"
}
if (element.css("width")==maxw.toString().concat("px")){
element.animate({
width:minw,
opacity:mino
},{queue: false},speed)
return "??? ??"
}
}