| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
|
PHP image swap :: NOT RANDOM
I'm looking for a PHP script or tutorial on how to switch out images. I have images as page headers, and instead of having separate css for each page to call the image for the div, I'd like to use the same CSS and pop in a PHP script if possible. Unless that is a bad way to do it, or harder Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
|
|
#6 (permalink) |
|
Senior Member
|
No random image. No refresh. Here is a link to what I have, I want it to change that title bar when the user goes to THAT specific page. I know I can do it using CSS. Do you thinking just popping in a additional style sheet with that div info in there is good enough? Legacy Tours & Travel | Decorah, Iowa | 800-323-3368 Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
#9 (permalink) | |
|
Senior Member
|
Quote:
Let me guess, you're using IE and getting an error due to the PNG? I am working on that, any insight on that would be great. Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
|
|
|
#11 (permalink) |
|
Spare Parts
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 4,961
|
Here is a little something that may help. Test Current File Code:
|
|
|
|
#12 (permalink) |
|
shiro
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,606
|
You can do this purely in CSS. Give the body tag of each page an id: Code:
Then you create a div (or whatever) to hold the image, and give it an ID. Code:
Then you create different CSS declarations for the different pages: Code:
|
|
|
|
#13 (permalink) |
|
Senior Member
|
Cool, thanks, I'll try these out. Anybody else know a work around on that damn PNG issue in IE? thx Daughter of Aphrodite-Hear my words and take Heed-I was born on Olympus-To my father a Son-I was raised by the demons-Trained to reign as the One.
|
|
![]() |