Results 1 to 6 of 6

Thread: cannot find images

  1. #1
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default cannot find images

    1) Script Title: Ultimate Fade-In Slide Show

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) Describe problem: The script has been revised to grab images from a file. I had it working and then some how broke it.

    URL: http://play2.vrmenterprises.com/
    images: http://play2.vrmenterprises.com/images_rotate/
    scripts: http://play2.vrmenterprises.com/scripts/

    Sincerely,
    VRM
    Last edited by vrm; 08-11-2006 at 02:19 AM. Reason: title wrong

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, the path to your images as generated in getpics.php is relative to the scripts' directory. It should be either absolute (easiest) or relative to the page that is using the images' directory.

    There could be other problems.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yeah, looks like there are other problems. Try replacing this garbage with the script's original populateslide() function:

    Code:
    fadeshow.prototype.populateslide=function(picobj, picindex){
    var slideHTML=""
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML='<a href="%27+this.theimages%5Bpicindex%5D+%27" target="'+this.theimages[picindex][2]+'">'
    slideHTML+='<img src="%27+this.postimages%5Bpicindex%5D.src+%27" border="'+this.imageborder+'px">'
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML+='</a>'
    picobj.innerHTML=slideHTML
    }
    If getpics is constructing the array properly, which it looks like it is (with the exception that you need to correct the paths getpics is generating as I mentioned in my previous post), the rest of the script should be able to be used 'as is'.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Is there a difference between ' and %27; [ and %5b ; ] and %5D

    I had moved the script in Dreamweaver, which resulted in:
    <a href="%27+this.theimages%5Bpicindex%5D+%27" target="'+this.theimages[picindex][2]+'">'
    slideHTML+='<img src="%27+this.postimages%5Bpicindex%5D.src+%27" border="'+this.imageborder+'px">'

    The original script read:
    <a href="'+this.theimages[picindex]+'" target="'+this.theimages[picindex][2]+'">'
    slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'

    Notice the %_ substitutions.

    Once I replaced the altered script with the original (that I had saved in another location), everything worked fine.

    I noticed this when I cut and pasted John's suggest and still had the problem. Since John is great (he got the fading to work on Macs for me) I knew something else had to be going on.

    Sincerely,
    VRM

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The code posted in my previous reply was what I was suggesting that you remove from the script, replacing it with the original code. I probably could have been clearer.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Jan 2006
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Thanks!

    Hi John,

    I should have known better. You really know your stuff.

    Sincerely,
    Vanessa

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
  •