当您单击http://kaye.at/test/上的月份时,div 会显示/隐藏。
当页面加载时它们都打开了,我如何才能让六月打开而其他页面在页面加载时关闭?
或者我如何让它们在页面加载时全部关闭?
JS:
http://kaye.at/test/js/showHide.js
$(document).ready(function(){
$('.show_hide').showHide({
speed: 1000,
easing: '',
changeText: 0,
showText: 'View',
hideText: 'Close'
});
});
HTML:
<a href="#" class="show_hide" rel="#slidingDiv">View</a><br />
<div id="slidingDiv">
Fill this space with really interesting content.
</div>
<a href="#" class="show_hide" rel="#slidingDiv_2">View</a><br />
<div id="slidingDiv_2">
Fill this space with really interesting content.
</div>