View Full Version : Setting Up Image Directory For A Page
OK when we use a page the defualt images directory is in /root(primiry dir) and if i use same page in SubFolder then page cannot read the images, how to set page to read the images from the defualt image folder,
example:
/root/page1.html-> /images
/root/test/page2.html--> /Images
Hope u understand :P
sparsely
05-15-2004, 08:31 AM
if you mean like
okay say your dir structure is:
Root
--Images
--Bin
--Other Shit
index.html is here in root
your <img> tags will have images/whatever.jpg
but if you need to go up a level, like say you'r in
Root
--Images
--Bin
--Other Shit
-----Sub Shit
an html file in the "Sub Shit" would look have img tags like this if they wanted to use images in that 'Images' folder that's in the root:
../images/whatever.gif
the ".." tells it to go up one level then look for the 'images' folder.
I hope that's what you meant, otherwise I'm lost :P
i ment that but i want to set all images source, for example images uesed in layout, i cant set all images one by one :P
sparsely
05-15-2004, 09:02 AM
why not? :huh:
Find & Replace...
This is your third time using us as a google substitute...I say it again, nothing can stand the power of google!
sparsely
05-15-2004, 09:42 AM
and almost everything you need to know is here (http://www.w3schools.com/)
Originally posted by I.am@15 May 2004 - 13:48
Find & Replace...
This is your third time using us as a google substitute...I say it again, nothing can stand the power of google!
wtf is wrong with, if u dont want to help dont. its ma choice if i search or ask,
and its so hard to find what u want when u get 100's of search results
Originally posted by bawa@Klite_user+15 May 2004 - 02:57--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (bawa@Klite_user @ 15 May 2004 - 02:57)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-I.am@15 May 2004 - 13:48
Find & Replace...
This is your third time using us as a google substitute...I say it again, nothing can stand the power of google!
wtf is wrong with, if u dont want to help dont. its ma choice if i search or ask,
and its so hard to find what u want when u get 100's of search results [/b][/quote]
and its ma choice to come back and taunt you each time for being lazy a$$! So there! :lol:
Btw, I am serious about googling, look at the few links while using the right keyword. You might get more than what you asked for. Moreover, the questions you are asking is probably even in every single 100 search results.
Besides, with that attitude, you can bet you a$$ none of the experienced will come out helping for you when you really need it.:P Maybe then you will realize the power of google :lol: :P
Cl1mh4224rd
05-16-2004, 12:11 AM
Originally posted by bawa@Klite_user@15 May 2004 - 03:26
example:
/root/page1.html-> /images
/root/test/page2.html--> /Images
That should work just fine, except for one minor detail... "images" versus "Images". A lot of web servers are case-sensitive. If the actual directory is named "images", then using "Images" (capital 'i') won't work...
If that still doesn't work, just use a full URL...
<img src="http://www.mydomain.com/images/something.jpg" />
Powered by vBulletin® Version 4.2.3 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.