Sorry for beeing so short in the description, so here is my attempt.
The Scenario is the following: I want to have an option for the
jcarousel having autostart on a per user basis. So here is my attempt
by using a cookie via php. In the header i ask for the cookie as
follows:

<?php
if(!empty($_COOKIE['info_autoscroll'])){
        $slider = $_COOKIE['info_autoscroll'];
} else {
        $slider = 'manuell';
}
?>

$slider could get the two values "manuell" (german for "by hand" or
"auto")

Next I start the jcarousel as follows:

$(document).ready(function() {
    $('#mycarousel').jcarousel({
                scroll: 1,
                easing: 'easein',
                <?php if($slider == 'auto') {
                        echo "auto: ".$sliderduration.",
                wrap: 'both',";
                }?>
                initCallback: mycarousel_initCallback
    });
});

Reply via email to