Posted on Apr 28, 2005, 11:41 pm by Jasper
| |
A little PHP help
|
On another site, I asked a question and was told this: You could do something like having the images in different folders
(like "green", "red" etc) and just linking to them with something like
$dir/image.gif.And they haven't said anymore since (few days ago). When I asked for an example of what he was saying. As I do have some idea of what he's saying, but don't know exactly how to code it. _________________________________________________ I am using a style switcher coded in PHP for one of my personal sites. My question is: Certain images need to change with each styles that's being used. Example: I need the part in red to change with whatever style you're using <td><img src='images/styles/ default/top_left.gif' alt='' /></td> I have 3 subdirectories in the "styles" subdirectory for the different styles: images -> styles -> default images -> styles -> black images -> styles -> red I need the part in red to change with each style that's being used. So if you're using the red style, you'll see the images stored in the red directory.
Last edit by Jasper on Dec 31, 1969, 7:00 pm
doesn't come here often, cause he has no free time ;_;

|