Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to place my pictures which is in my html inside ide?

 
tangara goh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm now trying to integrate my old files which were constructed using basically html. Insides these files are lots of pictures reference i.e src link to images.

Now, I'm stuck. I do not know where to put the images files under which part of my main files? After right click on my project folder, I am not sure where to go from there...Should it be Empty File?

OK. Hope to hear from the experts.

Many thanks.
 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to IDEs.
 
tangara goh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Precisely that's what I'm doing....moving them to the IDE to be with the backend codes.

Now, my question is how to place the pictures? I have src link insides the html files. Do I right click on my project file inside my IDE and place it at the empty file?
 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tangara goh wrote:Precisely that's what I'm doing....moving them to the IDE to be with the backend codes.

You got me wrong. I was moving this thread to our IDEs forum.
 
tangara goh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
: - ) sorry...i should be more patience...the ide forum was right at the bottom....
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually I put mine under images or media or resources directory which lies at the same level as the html pages, and reference them as images/myAwesomePhoto.jpg
 
tangara goh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Usually I put mine under images or media or resources directory which lies at the same level as the html pages, and reference them as images/myAwesomePhoto.jpg


under images or media or resources - but I can't find them anywhere in the IDE?

How should I go about putting in the images?

Really hope you can tell me step by step ..be'cos I am really lost how to do it...million thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tangara goh wrote: ..be'cos I am really lost how to do it.

Please use real words like "because" when posting to the forums.
 
tangara goh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. So sorry I have been texting that I am so used to using short form of words...
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tangara goh wrote:
under images or media or resources - but I can't find them anywhere in the IDE?

What is them? Images? Directories?
If you mean directory, you can always create one in your IDE
If you mean images, then I have no clue where your images are.
 
tangara goh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried to created a folder named Travel Pictures in my project folder name Assignment2, since there's really no way for me to create a sub-directory and I do not know whether it's possible to create a sub-directory to store the image file.


Now, when I open my IDE project, I will use Assignment2. However, when I run the html file, the image just wouldn't show.

Here is the code:-



Please advise me how do i make the image appear when i run the IDE for that particular html file.

Many thanks.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im not much of an HTML person but I suspect "Travel Pictures\Korea10.JPG" should be "Travel Pictures/Korea10.JPG" (with a forward slash)
Also please ensure your html file is on the same level as the Travel Pictures folder
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tangara goh wrote:OK. So sorry I have been texting that I am so used to using short form of words...

"Be'cos" is a single character less than "because", and harder to text due to the symbol. Consider using "bcuz", but not here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic