Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Code snippet for calling img src's

    Hello,
    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

  • #2
    Regular Coder
    Join Date
    Oct 2004
    Location
    London E4 UK
    Posts
    320
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what's the 'program'?

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

    bit of php?

  • #3
    Regular Coder mlse's Avatar
    Join Date
    Mar 2005
    Posts
    624
    Thanks
    20
    Thanked 19 Times in 18 Posts
    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 ...

    Mike.
    Last edited by mlse; 09-30-2005 at 01:52 PM.
    Die Welt ist ein Irrenhaus und hier ist die Zentrale!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •