|
I need to change the Home page rotating banner based upon the user leaving the page and returning to the home page, such that the user then sees a new rotating banner instead of the same one they just saw.... so far… here’s where I’m at:
CMS Page
{{block type="cms/block" block_id="my_block" template="cms/content.phtml"}}
----code in .phtml page:
$r = mt_rand(1,3); // get a random number: 1-3 inclusive
if ($r == 1) return 10;
if ($r == 2) return 11;
if ($r == 3) return 12;
Can anyone send me in the right direction?
Thanks!!!!
|