|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Dec 2003
28 posts
Gave thanks: 0
Thanked 0 times
|
index.html wont display images!
My index.html page in /public_html/ won't display images. I have an image directory folder in /public_html/ named images so I'm referencing an image using:
<img src="/images/whatever.gif"> It will load my css style sheet, which is stored in /public_html/css by simply using /css/whatever.css . What is going on here? How can it see /css but not /images? This happened to me in the past, and I used a redirect to get around it. I don't want to use redirection anymore. Any input is much appreciated. Thanks. My url is: http://warebizprogramming.com
__________________
"nothing is impossible" http://warebizprogramming.com |
|
|
|
|
|
#2 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
|
Usually you don't use a forward slash on directories that are on the same level as the file you're using..
Try just <img src="images/whatever.gif"> |
|
|
|
|
|
#3 (permalink) |
|
L'Awesome Advocate
Super #1
Joined in May 2004
Lives in .au
Hosted on Mango
2,423 posts
Gave thanks: 1
Thanked 5 times
|
Using the forward slash should be fine. Make sure you're typing the filenames correctly as they are CaSe SeNsItIve.
__________________
When I get sad, I stop being sad, and be AWESOME instead. True story.
|
|
|
|
|
|
#4 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Dec 2003
28 posts
Gave thanks: 0
Thanked 0 times
|
I tried it without the forward slash. Still same. The filenames are also correct. My index.html page for my add-on domain is doing the same thing. The url is:
http://mikeware.us Here, all web pages are correctly referenced, and I have all images in the same directory as index.html. If you can verify this by trying: http://mikeware.us/imgMikeWareUS2.gif It will load fine. But, in my index.html, I have: <img src="imgMikeWareUS2.gif"> and the image won't load. This is not making any sense to me. Someone please help me out. Thanks.
__________________
"nothing is impossible" http://warebizprogramming.com |
|
|
|
|
|
#5 (permalink) |
|
Surpass Fan
Super #1
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
|
that link directly to the image doesn't load for me.
http://mikeware.us/imgMikeWareUS2.gif nor does the image of the same name load from the images directory. http://mikeware.us/images/imgMikeWareUS2.gif a few suggestions: 1) stick with one case for the file name - like mikeware.gif - its easier to read and maintain 2) check the permissions on that image file - verify they are set to 644 |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Dec 2003
28 posts
Gave thanks: 0
Thanked 0 times
|
OK.
I took your advice and changed the image's name to: mikeware.gif It is now stored at: http://mikeware.us/mikeware.gif My index.html still won't recognize it, but accessing the above link does work. I also verified the permissions set at 644. Any thoughts?
__________________
"nothing is impossible" http://warebizprogramming.com |
|
|
|
|
|
#7 (permalink) |
|
Surpass Fan
Super #1
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
|
i still can't see that image if i click directly on that link.
....thinking... ok thats weird, sometimes i see the pic of you and the squiggle writing and sometimes not. ....thinking.... |
|
|
|
|
|
#8 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Dec 2003
28 posts
Gave thanks: 0
Thanked 0 times
|
Ok. I guess the link above: http://mikeware.us/mikeware.gif works every once in a while because that image is in my browser's cache. I guess I'm referencing my images wrong, but I don't know how to correct them.
__________________
"nothing is impossible" http://warebizprogramming.com |
|
|
|
|
|
#9 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Dec 2003
28 posts
Gave thanks: 0
Thanked 0 times
|
mikeware.us is an add-on domain pointing to: /msw which is in the /public_html. Could that have something to do with it?
__________________
"nothing is impossible" http://warebizprogramming.com |
|
|
|