Slide out is no problem i only have problem about slide in that doesnt show up and i think it didnt catch their first IF width equal 0px. sorry im really noobs about jQuery.
CODE:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#ShowHideComment").click(function(){
if ($(".iframe_comment").width() == "0px"){
$(".iframe_comment").animate({width: "800px"}, {queue:false, duration:1000});
}
else{
$(".iframe_comment").animate({width: "0px"}, {queue:false, duration:1000
});
}
});
});
</script>
From the docs:
You’re not dealing with CSS property values here, but with plain integers.
Also see
width():