directories |
directories |
minidiapolis |
Sep 13 2006, 09:55 AM
Post
#1
|
Serious Coder Group: Members Posts: 437 Joined: 3-September 06 Member No.: 57 |
Hi, I'm working on the imageMap lab and I'm running into a snag. I have my
directory set up like this: home mjsmith public_html pictures imageMap unitedStates jpg imageLab1 If I'm in my imageLab1.html file and I want to refer to the unitedStates.jpg wouldn't the code be <IMG SRC = "../../pictures/unitedStates.jpg" USEMAP = "#mymap" /> or <IMG SRC = "/home/mjsmith/public_html/pictures/unitedStates.jpg" USEMAP = "#mymap" /> ? ? ? ? ? ? ? ? ? ? Mindy |
jimlongo |
Sep 13 2006, 10:12 AM
Post
#2
|
This is My Life Group: Members Posts: 1,128 Joined: 24-August 06 From: t-dot Member No.: 16 |
Where's the ImageLab1.html file? If it's in the public_html directory and the pictures directory is in the public_html directory then it should be
<img src="pictures/UnitedStates.jpg"> If the html file is in the same directory as the jpg then it's simply <img src="UnitedStates.jpg"> You could also use the absolute URI such as <img src="http://www.yourdomain/pictures/UnitedStates.jpg"> hth, Jim This post has been edited by jimlongo: Sep 13 2006, 10:16 AM |
pandy |
Sep 13 2006, 10:18 AM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Hi, I'm working on the imageMap lab and I'm running into a snag. I have my directory set up like this: home mjsmith public_html pictures imageMap unitedStates jpg imageLab1 If I'm in my imageLab1.html file and I want to refer to the unitedStates.jpg wouldn't the code be <IMG SRC = "../../pictures/unitedStates.jpg" USEMAP = "#mymap" /> It isn't clear to me which file is in which directory. Is imageLab1.html in the imageMap folder and unitedStates.jpg in the pictures folder and are pictures and imagmap both in the same folder? In that case it would be like this. "../pictures/unitedStates.jpg" QUOTE or <IMG SRC = "/home/mjsmith/public_html/pictures/unitedStates.jpg" USEMAP = "#mymap" /> ? ? ? ? ? ? ? ? ? ? Most likely public_html is your document root (where your main index.html is). So... "/pictures/unitedStates.jpg" http://www.htmlhelp.com/faq/html/basics.html#relative-url |
minidiapolis |
Sep 13 2006, 02:09 PM
Post
#4
|
Serious Coder Group: Members Posts: 437 Joined: 3-September 06 Member No.: 57 |
Jim,
I got it with the absolute link but not with the relative link. the directory is set up like this: public_html pictures imageMap unitedStates.jpg imageLab1.html I tried <img src="pictures/UnitedStates.jpg"> but it didn't work. Why would that be? Also, do you have any idea why I didn't get an email notification of your post? I checked that option. Thanks, Mindy Where's the ImageLab1.html file? If it's in the public_html directory and the pictures directory is in the public_html directory then it should be <img src="pictures/UnitedStates.jpg"> If the html file is in the same directory as the jpg then it's simply <img src="UnitedStates.jpg"> You could also use the absolute URI such as <img src="http://www.yourdomain/pictures/UnitedStates.jpg"> hth, Jim |
minidiapolis |
Sep 13 2006, 02:35 PM
Post
#5
|
Serious Coder Group: Members Posts: 437 Joined: 3-September 06 Member No.: 57 |
I'm sorry my last post didn't display right. in my public_html directory there is a picture directory and a imageMap directory. The unitedStates.jpg is in the pictures directory and the imageLab1.html is in the imageMap directory.
|
jimlongo |
Sep 13 2006, 02:35 PM
Post
#6
|
This is My Life Group: Members Posts: 1,128 Joined: 24-August 06 From: t-dot Member No.: 16 |
I'd recommend this . . .
public_html/imageLab1.html public_html/pictures/unitedStates.jpg In that case the link in the html doc is <img src="pictures/unitedStates.jpg"> watch for case sensitivity in you names and links as for email notification . . . once in a while it's a little late. |
jimlongo |
Sep 13 2006, 02:37 PM
Post
#7
|
This is My Life Group: Members Posts: 1,128 Joined: 24-August 06 From: t-dot Member No.: 16 |
I'm sorry my last post didn't display right. in my public_html directory there is a picture directory and a imageMap directory. The unitedStates.jpg is in the pictures directory and the imageLab1.html is in the imageMap directory. then it's <img src=../pictures/unitedStates.jpg"> but why is the html doc in the imageMap dir? See my previous post for a more logical or typical? directory structure |
pandy |
Sep 13 2006, 03:26 PM
Post
#8
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
|
Lo-Fi Version | Time is now: 23rd April 2024 - 10:24 AM |