Hi,
I need the following and would like some quotes please (email me at paul(at)uk.co.anything-goes).
When the customer comes to my site, I want a script that does the following (in server side php).
1. It looks for a cookie, if cookie is not found or cookie = 0 then return a random file name (i.e. for background images). This can be done either by an array that I configure within the script, or by looking at the folder the php resides in and choosing that is available).
2. If cookie is found and value is not 0 then return selected filename (i.e. cookie has value 4 so returned filename is "http://www.madmash.com/headers/header4.jpg").
I also need an accompaying bit of javascript for once the page is open. This will allow the customer to change the image and store their choice in a cookie so it stays with them when they come back. There is a + & - sign on the header which would allow the customer to move up or down through the header files (i.e. if header7 is showing and you press down then it goes to header6 etc). There is also an R button which would set the cookie to 0 so it is random again.
There is a mock up on www.madmash.com and if you refresh you will see the different headers. Note that the image is in CSS as a background and not a <img> tag so the original php would return the filename in the external css file.
The php needs to be generic as I will eventually have a matching css to go with that image file so the customer can change the whole feel of the site.
Thanks,
Paul.
I need the following and would like some quotes please (email me at paul(at)uk.co.anything-goes).
When the customer comes to my site, I want a script that does the following (in server side php).
1. It looks for a cookie, if cookie is not found or cookie = 0 then return a random file name (i.e. for background images). This can be done either by an array that I configure within the script, or by looking at the folder the php resides in and choosing that is available).
2. If cookie is found and value is not 0 then return selected filename (i.e. cookie has value 4 so returned filename is "http://www.madmash.com/headers/header4.jpg").
I also need an accompaying bit of javascript for once the page is open. This will allow the customer to change the image and store their choice in a cookie so it stays with them when they come back. There is a + & - sign on the header which would allow the customer to move up or down through the header files (i.e. if header7 is showing and you press down then it goes to header6 etc). There is also an R button which would set the cookie to 0 so it is random again.
There is a mock up on www.madmash.com and if you refresh you will see the different headers. Note that the image is in CSS as a background and not a <img> tag so the original php would return the filename in the external css file.
The php needs to be generic as I will eventually have a matching css to go with that image file so the customer can change the whole feel of the site.
Thanks,
Paul.