How to access images in folder?

Permalink
Hi I'm trying to use jquery but when attempting to access an image folder as per norm in html, it wont work. The folder is on the same level as the php file calling the images - if you can shed some light I'd be very grateful - this is what i've got:

<div id="leftFull">
<div id="slider">
<ul>
<li><a href="http://templatica.com/preview/30"><img src="images/01.jpg" alt="Css Template Preview" /></a></li>
<li><a href="http://templatica.com/preview/7"><img src="images/02.jpg" alt="Css Template Preview" /></a></li>
<li><a href="http://templatica.com/preview/25"><img src="images/03.jpg" alt="Css Template Preview" /></a></li>
<li><a href="http://templatica.com/preview/26"><img src="images/04.jpg" alt="Css Template Preview" /></a></li>
<li><a href="http://templatica.com/preview/27"><img src="images/05.jpg" alt="Css Template Preview" /></a></li>
</ul>
</div>
</div>

 
Mnkras replied on at Permalink Reply
Mnkras
you can use the constant DIR_REL to make links
kappi replied on at Permalink Reply
you dont have any examples by any chance do you

Thanks
ideasponge replied on at Permalink Reply
ideasponge
img src=<?php echo DIR_REL?>images/01.jpg
kappi replied on at Permalink Reply
Fantastic! thanks for replying, will try it as soon as I get home from work.
kappi replied on at Permalink Reply
Sorry no joy here either, I'm entering

<li><a href="http://templatica.com/preview/30"><img src="<?php echo DIR_REL?>images/01.jpg" alt="Css Template Preview" /></a></li>

to no avail
kappi replied on at Permalink Reply
Also used realpath() to find out what the absolute path was, I received this:

/var/www/content_management_systems/concrete5.4.0.5/

which is great but when making it up to the following the images still don't appear:

/var/www/content_management_systems/concrete5.4.0.5/themes/loadfoov2/images/
Mnkras replied on at Permalink Reply
Mnkras
i think you forgot a / ;)

<li><a href="http://templatica.com/preview/30"><img src="<?php echo DIR_REL?>/images/01.jpg" alt="Css Template Preview" /></a></li>
kappi replied on at Permalink Best Answer Reply
Thanks Mnkras, it tuns out that if I'd taken the time to remember to look at the path in the source code then I would have worked it out ages ago. Never the less this is the path.

Hope it helps someone else out there.
<li><a href="http://templatica.com/preview/30"><img src="<?php echo DIR_REL?>/themes/loadfoov2/images/01.jpg" alt="Css Template Preview" /></a></li>