Try the following:

<?php base_path
() . path_to_theme() ?>
/box_bottom.png

<img src="<?php print base_path() . path_to_theme() . "/pic/mary.png"; ?>" />

Victor Kane
http://awebfactory.com.ar

On Fri, Aug 1, 2008 at 10:28 PM, John Horning <john@rivul.com> wrote:
Apparently Drupal does not allow you to reference absolute URL paths in scripts, which is causing me a problem.  I have a script in my page.tpl.php that randomly picks images from a directory and displays them in the header.  This works when you're on the top level, but not below since I'm using a relative path to get to the image directory.  Can anyone tell me the proper way of doing this?

--
[ Drupal support list | http://lists.drupal.org/ ]