Advanced Search

Results 1 to 4 of 4

Thread: Background Image Carousel and spaces in image_path

  1. #1
    Join Date
    Apr 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Background Image Carousel and spaces in image_path

    Hi,

    I've a question with spaces in Background Image Carousel.
    url : http://www.dynamicdrive.com/dynamici...bgcarousel.htm

    It's working, but in the 'imagearray' image_path is not allowed to use spaces.
    Is there a solution for this

    imagearray: [
    >> doesn't work <<
    ['autumnpark space.jpg', '<h2>Autumn Day</h2>The sun peaks through the trees, a knife that cuts through the chill, crisp air.'],

    >> works <<
    ['autumnpark_space.jpg', '<h2>Autumn Day</h2>The sun peaks through the trees, a knife that cuts through the chill, crisp air.'],

    Thanks in advance for the help

    yours sincerely,
    Andre

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,883
    Thanks
    16
    Thanked 288 Times in 287 Posts
    Blog Entries
    4

    Default

    What if you use "%20" in place of all spaces? (URL encoding of ASCII characters: http://www.tutorialspoint.com/html/h...l_encoding.htm )

    ['autumnpark%20space.jpg', '<h2>Autumn Day</h2>The sun peaks through the trees, a knife that cuts through the chill, crisp air.'],

    Instead of

    ['autumnpark space.jpg', '<h2>Autumn Day</h2>The sun peaks through the trees, a knife that cuts through the chill, crisp air.'],
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    Apr 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sometimes things can be so simple.

    Thank you Beverleyh

  4. #4
    Join Date
    Apr 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    update :

    My photo's filenames are in a sql db.
    This is how I build the array.

    echo "['../image/".rawurlencode($row[name])."', '".$row[comment]."'], ";


    Pretty cool for a newbie :-)

Similar Threads

  1. Replies: 3
    Last Post: 12-30-2012, 02:58 PM
  2. Background Image Carousel won't load stuck on black background
    By accessotronik in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 10-15-2012, 02:23 PM
  3. Background Image Carousel
    By WillyBear in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 07-26-2012, 07:44 PM
  4. Resolved Background Image Carousel - help!
    By blumuse in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-20-2012, 07:52 PM
  5. Background Image Carousel background-size: cover; is not working
    By kerriluo in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-12-2012, 09:38 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
  •