Results 1 to 8 of 8

Thread: Random Image-- Image not loading

  1. #1
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default Random Image-- Image not loading

    Look at the www.sweets-n-treats.com source

    I am almost finished with a website that I did for Sweets & Treats, but the random image script will not bring up the files (hence the blank box in the middle). It did off line, so I messed the addresses and what-not. The other javascripts work on the site, but not this one =(

    The irony is that it's such a simple script!

    Anyone know what's wrong with it?

    Thanks!
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    You need the http protocol at the beggining of each image source.
    - Mike

  3. #3
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Good suggestion, but it didn't work. . .
    It still is not finding the images =(

    I also tried "./" instead of "http://www.sweets-n-treats.com/", but that did not work either. Any other ideas?
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  4. #4
    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

    If you are talking about files like this one:

    Code:
    http://www.sweets-n-treats.com/S5030164.JPG
    You have it listed as:

    Code:
    http://www.sweets-n-treats.com/S5030164.jpg
    Upper and lower case matter on the web.
    - John
    ________________________

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

  5. #5
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default What a bitmap

    Jas,

    Nowadays people want webpages that work. You really shouldn't use .bmp (bitmaps) anymore; they don't compress the filesize.
    .bmp take longer to load!

    try this logo attached. It is a .gif version of your .bmp.

    Your .bmp was 700kb, the .gif is 20kb. See the difference? Thats 3500% difference!

    You won't notice the difference when testing offline because the image is fetched from your computer, not the server.

    Last edited by Bob90; 03-23-2007 at 11:01 PM. Reason: added extra

  6. #6
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    GIF is usually for animated images.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  7. #7
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default and...

    In your posts you should be more constructive.
    Like:

    I would recomend using .png for static images. .gif are used for moving images.

    But thanks for the heads up.

    Last edited by Bob90; 03-24-2007 at 01:50 AM. Reason: spelling error

  8. #8
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Thanks everyone! You all were really helpful, but I figured it out. It was the .JPG instead of .jpg, as you all said, but I figured it out before I read the posts, so I can keep some pride.

    I though I knew HTML better then that. . .

    Thanks again!
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

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
  •