Rufen Sie next und prev-Funktion von jquery jCarousel?

Ich benutze jCarousel für die Erstellung eines scroll-Inhalte (Folgen Sie diesem http://sorgalla.com/projects/jcarousel/). Aber ich möchte nicht, dass die Verwendung der Standard-next-und previous-Taste so erstellen Sie 2 Schaltflächen für die Behandlung des click-Ereignisses. EX: ich habe 2 hyperlinks wie diese:

<script>
jQuery(document).ready(function() {
    //Initialise the first and second carousel by class selector.
    //Note that they use both the same configuration options (none in this case).
    jQuery('#scrollArea').jcarousel({
        scroll: 10
        });
</script>
        <a>NEXT</a>
        <a>PREV</a>
    <div id="scrollArea">
<!-- CONTENT HERE -->
</div>

Wie kann ich binden Sie die next und prev-Funktionen oben links?

InformationsquelleAutor Nấm Lùn | 2011-06-21

Schreibe einen Kommentar