View Full Version : 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! :p
Anyone know what's wrong with it?
Thanks!
mburt
03-21-2007, 07:14 PM
You need the http protocol at the beggining of each image source.
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?
jscheuer1
03-23-2007, 08:10 PM
If you are talking about files like this one:
http://www.sweets-n-treats.com/S5030164.JPG
You have it listed as:
http://www.sweets-n-treats.com/S5030164.jpg
Upper and lower case matter on the web.
Bob90
03-23-2007, 10:57 PM
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.
:)
tech_support
03-24-2007, 01:31 AM
GIF is usually for animated images.
Bob90
03-24-2007, 01:50 AM
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.
:)
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!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.