I create a site from AnythingSlider and want to use the jQuery UI accordion function inside the panel, and the whole page aligns the bed. All links to js and css work. And now for the news ...
<script type="text/javascript">
$(function(){
$('#slider').anythingSlider({
startPanel : 1,
buildArrows : false,
autoPlay : false,
width : 600,
height : 350,
resizeContents : false,
startStopped : true,
navigationFormatter : function(index, panel){
return ['home', 'menu', 'find us', 'order online', 'cater', 'contact'][index - 1];
}
});
$("#accordion").accordion({ header: "h3" });
});
</script>
And in the body:
<li class="panel2">
<div id="accordion">
<div>
<h3><a href="#">First</a></h3>
<div>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</div>
</div>
<div>
<h3><a href="#">Second</a></h3>
<div>Phasellus mattis tincidunt nibh.</div>
</div>
<div>
<h3><a href="#">Third</a></h3>
<div>Nam dui erat, auctor a, dignissim quis.</div>
</div>
</div>
</li>
source
share