Results 1 to 2 of 2

Thread: Cut & Paste Thumbnail Slider not working

  1. #1
    Join Date
    Aug 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Cut & Paste Thumbnail Slider not working

    hello,
    I've copied the code from http://www.javascriptkit.com/script/...mbslider.shtml but I am getting nothing but blank screen. I am running it on my development server with expression Web 4. The code is as follows:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

    <script type="text/javascript" src="thumbslide.js">

    // Thumbnail Slider- by JavaScript Kit (www.javascriptkit.com)
    // Visit JavaScript Kit at http://www.javascriptkit.com/ for full source code

    </script>
    <link rel="stylesheet" type="text/css" href="thumbslide.css" />

    <script>

    //Initialization code:
    $(document).ready(function(){ // on document load

    $("#thumbsliderdiv").imageSlider({ //initialize slider
    'thumbs': ["fpslideshow/church.jpg","fpslideshow/fisherman.jpg","fpslideshow/legs.jpg","fpslideshow/sunset.jpg","fpslideshow/tropical.jpg","livingroom.jpg","livingroom2.jpg"], // file names of images within slider. Default path should be changed inside thumbslide.js (near bottom)
    'auto_scroll':true,
    'auto_scroll_speed':4500,
    'stop_after': 2, //stop after x cycles? Set to 0 to disable.
    'canvas_width':700,
    'canvas_height':500 // <-- No comma after last option
    })
    });

    </script>
    $(document).ready(function(){ // on document load

    $("#thumbsliderdiv").imageSlider({ //initialize slider
    'thumbs': ["/jsslider/abbeyroad.jpg","/jsslider/fisherman.jpg","/jsslider/legs.jpg",""], // paths to images
    'auto_scroll':true,
    'auto_scroll_speed':4500,
    'stop_after': 2, //stop after x cycles? Set to 0 to disable.
    'canvas_width':700,
    'canvas_height':500 // <-- No comma after last option
    })

    });

    <body>
    <div id="thumbsliderdiv"></div>
    </body>

    Have tried several different ways of image path but to no avail. Images are in the same directory as code. The doc root is /jsslider. I have downloaded the two scripts to the same directory. Any hints on what might be wrong? I assume the inialization is already include in the code snippet from step 1 of tutorial. Thanks..

  2. #2
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    The document ready statment initializes the script

    please post a link to your to yout page
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

Similar Threads

  1. Dropdow Menu not working with Slider
    By mackbeth in forum CSS
    Replies: 4
    Last Post: 05-02-2013, 01:37 AM
  2. Slider Not Working In IE7 & 8
    By round in forum JavaScript
    Replies: 3
    Last Post: 10-27-2012, 09:01 AM
  3. Featured Content Slider v2.4 - not working in IE7.0.5730.13
    By si86 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-06-2010, 12:23 PM
  4. Featured Content Slider and Lightbox not working together
    By riprod in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-26-2009, 04:07 PM
  5. Resolved Content Slider 2.4 - Fade stops working
    By mikka23 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 04-28-2009, 05:32 PM

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
  •