Results 1 to 4 of 4

Thread: Fade-in slideshow is adding relative path to absolute image reference on server

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

    Default Fade-in slideshow is adding relative path to absolute image reference on server

    1) Ultimate Fade-in Slideshow v 2.6

    2) http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) A simplified version of the demo script was working fine when tested locally. When uploaded to a server, the image links were broken. On checking, a relative path had been added to the absolute image reference. #["http://www.dynamicdrive.com/dynamicindex4/pool.jpg"]# became #<img src="../slideshow test/http://www.dynamicdrive.com/dynamicindex4/pool.jpg" style="border-width: 0px; display: none;">#.

    My knowledge of javascript has faded, and I've never worked with jQuery. There seems to be some sort of memory here, and I don't know where it's been set.

    The script is currently at http://marshalls.org/slideshow-test/test.html.

    Where would I look for a solution? Thanks for your help!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try uploading the sample images to your own server first, then modifying the images array inside the script to point to those images:
    Code:
    	imagearray: [
    		["http://mysite.com/pool.jpg"],
    		["http://mysite.com/cave.jpg"],
    		["http://mysite.com/fruits.jpg"],
    		["http://mysite.com/dog.jpg"] //<--no trailing comma after very last image element!
    	],
    Hot linking of images is disabled on DD.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    JMarshall (08-21-2014)

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

    Default

    Thanks, that made it work. I hadn't thought about that being a possibility!

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

    Default

    thanks you.

Similar Threads

  1. Firefox Mozilla Relative Path
    By batowiise in forum PHP
    Replies: 1
    Last Post: 01-12-2011, 06:35 PM
  2. Help with Relative path
    By Lior in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 12-02-2008, 08:09 PM
  3. Relative or absolute URLs in PHP
    By belsidaam in forum PHP
    Replies: 12
    Last Post: 12-01-2006, 12:16 AM
  4. RELATIVE vs. ABSOLUTE positioning
    By TCD in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 03-13-2005, 11:09 PM
  5. position:absolute/relative
    By Tonka in forum JavaScript
    Replies: 1
    Last Post: 09-24-2004, 09:56 AM

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
  •