Note that there are some explanatory texts on larger screens.

plurals
  1. POusing a cookie with anything slider. possibly ajax
    primarykey
    data
    text
    <p>I am looking at writing a cookie that will be updated everytime the 'news scroller' moves to the next image/news item. when a user returns to the page it will automatically then start the scroller from the next news item.. helping to ensure our users get to see all the items.</p> <p>i am using the 'anything scroller' by chris coyier et al, with php to pull in the news data.</p> <p>each <li> element has a unique id and are in numerical order so my cookie needs to retrieve the latest value and then +1 . the scroller allows for triggers to specific items.. but i can't seem to get the cookie to update on each, moreover it loads once the maximum id of those rendered in html...</p> <p>is this even practical? assuming a maximum of 10 news items, would it slow the website down.</p> <p><em>edit</em> this is the could trying to get some output to the browser / console... but nothing.</p> <pre><code> &lt;script&gt; // Set up Sliders // ************** $(function(){ $('#slider').anythingSlider({ theme : 'minimalist-round', easing : 'swing', infiniteSlides : true, delay : 8000, // How long between slideshow transitions in AutoPlay mode (in milliseconds) resumeDelay : 8000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds). animationTime : 1, // How long the slideshow transition takes (in milliseconds) autoPlayLocked : true, // If true, user changing slides will not stop the slideshow }) $('#slider').bind('slide_complete', function(event, slider){ console.debug( 'You are on page ' + slider.currentPage ); // Do something else }) }); &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload