我正在使用 jquery ui 手风琴向用户查看不同的数据,它可以完美地工作,如 jquery ui/demos 中所述,但是我想要实现的是改变滑动效果的效果,而不是向上和向下滑动,我想要使其左右滑动(如图像目录,此页面中的视觉设计http://wiki.jqueryui.com/w/page/12137702/Accordion?SearchFor=accordion+horizo ntal&sp=1 )所以有可能做到这一点? javascript:
$(function() {
$("#accordion").accordion({autoHeight:false, collapsible: true, navigation: true,
clearStyle: true,
change: function(event, ui) {
resize_iframe();
}
});
});
代码:
echo '<div id="accordion">';
while ($r = mysql_fetch_assoc($get_role)) {
$role = $r['role'];
if ($role == 'author') {
echo '<h3><a href="#">Author</a></h3>';
echo "<div>";
AuthorView($member_id, $conference_id, $start, $end, $today);
echo "</div>";
} else if ($role == 'organizer') {
echo '<h3><a href="#">Organizer</a></h3>';
echo "<div>";
OrganizerView($conference_id, $end);
echo "</div>";
} else if ($role == 'reviewer') {
echo '<h3><a href="#">Reviewer</a></h3>';
echo "<div>";
ReviewerView($member_id, $conference_id, $start, $end, $today);
echo "</div>";
}
}
echo "</div>";