I'm relatively new to PHP and at first I thought this wouldn't be too complex, but now I'm not sure (after scouring through various threads and tutorials). Hopefully you all can help me out!
I have a style declared in the header of my page.. something similar to this:
<style type="text/css">
body#home h1 { background: url(/images/image-1.jpg) };
</style>
Also, in a separate stylesheet that's linked to the site I have the same style defined except with a different background image.
What I'd like to happen is this: If a user goes to the homepage and theyre a new visitor I want the default style declared in the stylesheet to kick in. If the user is NOT a new user then I want to style declared in the header to be used instead.
Basically, one image if you're a first time visitor and another image if you're not. I'd like the cookie to be set to last/expire in 24 hours.
NOTE: I'm using a CMS (ExpressionEngine) so the secondary style has to be declared in the header while the original style remains in the stylesheet. Let me know if anybody needs clarification.
Any help would be greatly appreciated. Thanks in advance!
Manoj
Austin TX