PDA

View Full Version : Setting Up Image Directory For A Page



BawA
05-15-2004, 08:18 AM
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&#39;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 &#39;Images&#39; folder that&#39;s in the root:

../images/whatever.gif

the ".." tells it to go up one level then look for the &#39;images&#39; folder.

I hope that&#39;s what you meant, otherwise I&#39;m lost :P

BawA
05-15-2004, 08:56 AM
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:

I.am
05-15-2004, 09:40 AM
Find & Replace...


This is your third time using us as a google substitute...I say it again, nothing can stand the power of google&#33;

sparsely
05-15-2004, 09:42 AM
and almost everything you need to know is here (http://www.w3schools.com/)

BawA
05-15-2004, 09:49 AM
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&#33;
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&#39;s of search results

I.am
05-15-2004, 09:54 PM
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 &#064; 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&#33;
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&#39;s of search results [/b][/quote]
and its ma choice to come back and taunt you each time for being lazy a&#036;&#036;&#33; So there&#33; :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&#036;&#036; 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--&#62; /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 &#39;i&#39;) won&#39;t work...

If that still doesn&#39;t work, just use a full URL...

&#60;img src=&#34;http&#58;//www.mydomain.com/images/something.jpg&#34; /&#62;