sh-eng
سه شنبه 24 بهمن 1391, 09:35 صبح
سلام من یه فرم لاگین دارم که به صورت بازشو هست اینم کدشه:
<div id="close" style="float: right">
<a href="#" id="Maximiz">
<img alt="" src="images/down.png"
style="border-style: none; height: 23px; width: 70px; float: right; margin-right:10px" />
</a>
</div>
<div id="cont">
<a href="#" id="Minimiz">
<img alt="" src="images/up.png"
style="border-style: none; height: 20px; width: 20px; float: right;" /></a>
<br /><br />
</div>
<script type="text/javascript">
$(window).load(function () {
$('#Maximiz').click(function () {
$('#cont').animate({ height: '156px' }, 500);
});
$('#Minimiz').click(function () {
$('#cont').animate({ height: '-=156' }, 500);
});
$('#Max').click(function () {
$('#Box').animate({ height: '156px' }, 500);
});
$('#Min').click(function () {
$('#box').animate({ height: '-=156' }, 500);
});
$('#closeBtn').click(function () {
$('#cont').hide();
$('#close').hide();
});
$('#showBtn').click(function () {
$('#cont').show();
$('#close').show();
});
});
</script>
وقتی دکمه رو می زنم تابازشه هرالمنتی که زیرشه میاد پایین من می خوام روی div پایینی باز شه چی کار باید کنم؟
<div id="close" style="float: right">
<a href="#" id="Maximiz">
<img alt="" src="images/down.png"
style="border-style: none; height: 23px; width: 70px; float: right; margin-right:10px" />
</a>
</div>
<div id="cont">
<a href="#" id="Minimiz">
<img alt="" src="images/up.png"
style="border-style: none; height: 20px; width: 20px; float: right;" /></a>
<br /><br />
</div>
<script type="text/javascript">
$(window).load(function () {
$('#Maximiz').click(function () {
$('#cont').animate({ height: '156px' }, 500);
});
$('#Minimiz').click(function () {
$('#cont').animate({ height: '-=156' }, 500);
});
$('#Max').click(function () {
$('#Box').animate({ height: '156px' }, 500);
});
$('#Min').click(function () {
$('#box').animate({ height: '-=156' }, 500);
});
$('#closeBtn').click(function () {
$('#cont').hide();
$('#close').hide();
});
$('#showBtn').click(function () {
$('#cont').show();
$('#close').show();
});
});
</script>
وقتی دکمه رو می زنم تابازشه هرالمنتی که زیرشه میاد پایین من می خوام روی div پایینی باز شه چی کار باید کنم؟