Random PHP Templates?
Posted: Mon Jan 10, 2005 8:23 am
Hi all, 
I've got two versions of one page - One with a black background/logo/graphics and one light grey background/logo/graphics, and I want make them load up randomly with either one each time someone visits.
However, the images on each page are tailored to that color (black logo for the black page, grey logo for the grey page), and a few of the images have javascript link code attached to them, so I can't just use a CSS theme to change the page.
So is there any way I can code a php page which holds both black and grey templates (perhaps just the code between the <body>...</body> tags) and include some PHP code that selects to load either section of the code randomly each time the page is loaded?
I would also like to be able to link to each page like this:
index.php?black - For the black page, and...
index.php?grey - For the grey page.
Would this be possible?
Cheers
I've got two versions of one page - One with a black background/logo/graphics and one light grey background/logo/graphics, and I want make them load up randomly with either one each time someone visits.
However, the images on each page are tailored to that color (black logo for the black page, grey logo for the grey page), and a few of the images have javascript link code attached to them, so I can't just use a CSS theme to change the page.
So is there any way I can code a php page which holds both black and grey templates (perhaps just the code between the <body>...</body> tags) and include some PHP code that selects to load either section of the code randomly each time the page is loaded?
I would also like to be able to link to each page like this:
index.php?black - For the black page, and...
index.php?grey - For the grey page.
Would this be possible?
Cheers