Hi guys,
Is there any way to reference an image(or file i.e. stylesheet, js etc.) from a parent/grandparent directory?
Thank youuuuuuu.
[S0LVED] get image from parent folder?
Moderator: General Moderators
- mikeeeeeeey
- Forum Contributor
- Posts: 130
- Joined: Mon Jul 03, 2006 4:17 am
- Location: Huddersfield, UK
[S0LVED] get image from parent folder?
Last edited by mikeeeeeeey on Mon Jul 30, 2007 11:00 am, edited 1 time in total.
- mikeeeeeeey
- Forum Contributor
- Posts: 130
- Joined: Mon Jul 03, 2006 4:17 am
- Location: Huddersfield, UK
You might find it easier to add a <base> tag to you site. For example..
<base href="http://www.ooer.com/" />
..would make all of your URLs relative to "http://www.ooer.com/". An image tag of <img src="images/onion.gif"> would be fetched from "http://www.ooer.com/images/onion.gif". It's a much nicer solution than messing around with parents and grandparents and stuff.
<base href="http://www.ooer.com/" />
..would make all of your URLs relative to "http://www.ooer.com/". An image tag of <img src="images/onion.gif"> would be fetched from "http://www.ooer.com/images/onion.gif". It's a much nicer solution than messing around with parents and grandparents and stuff.