View Full Version : Code snippet for calling img src's

09-29-2005, 10:26 PM
I have a program that I am using in my FrontPage template, I would like to know if there is a code snippet to enter into this program that can call all of the img's from the img folder on the server without having to place the path thru the entire program. I know there must be an easier way.

Thank you for the help

09-30-2005, 12:33 PM
what's the 'program'?

I know diddle but a variable of some kind sounds like a runner

bit of php?

09-30-2005, 01:25 PM
Do you have a "base" in your header?

In header:
<base href="http://mydomain.com/">

In code:
<img src="images/myimage.jpg">

typing "images/" infront of each image name is not so bad! As long as you don't have your images in some weird, far-away place ...