SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jun 2012
    Location
    Stockholm
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Change pages without destroying slideshow

    I would like to make a web page with slideshow: http://www.script-tutorials.com/demos/224/index.html
    and would like to make a menu with about 10 pieces of pages of text and perhaps images. When you do this with HTML, then the slideshow that I linked to start from scratch. I wonder if anyone knows a ready solution to feed the various pages of text without pictures starting from scratch.

    Guess it was in the JavaScript part I would add this thread.

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,192
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Hi lantiqo,

    There would only be two ways to do this with JavaScript alone and one would be to use a cookie but that is not an ideal option, another method which is newer and supported by IE8+ is localstorage which is like a cookie but the data gets stored within a SQLite database within the browser. See the below links for examples of how this use this API for modern browsers.

    http://coding.smashingmagazine.com/2...how-to-use-it/
    http://www.webmonkey.com/2011/04/how...e-tools-today/

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,208
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Would an alternative be to randomize the order of the images in the slideshow, so that it starts from a different point on each page load? (Not sure why you'd want the same slideshow on each page, though ... if I'm understanding rightly.)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •