Forums
This topic is locked
Show / hide image depending on date
Posted 11 Jul 2005 07:47:14
1
has voted
11 Jul 2005 07:47:14 flip interactive posted:
Can anyone help or provide pointers on a Dreamweaver problem i have?Basically I need to have multiple images in a horizontal nav bar, where each of the images in the nav bar will be visible or not depending on whether a given date is passed Eg
* On Monday, 1 January, the page will have only nav_image1.gif in the nav bar. (but not the other 9 images)
* 7 days later, (8 January) the page will show nav_image2.gif as well as nav_image1.gif (but not the other 8 images)
* 7 days later,(15 Jan) the page will show nav_image3.gif as well as nav_image 1.gif and nav_image2.gif (but not the other 7 images)
.. and so on for a period of ten weeks.
Basically the site will be a ten level site where the nav icons each represent access to a level or stage of the course. Participants can't go to the next level until one week has passed. But once they have completed a level, they can always go back to it (as the link images remain active once visible).
Of course this could be done by manually each week but a scripted solution would be 'much more cooler'.
I am using PHP and MySQL. I am considering trying using conditional regions in DW MX 2004 where the region is shown if the current server date is equal to or greater than a date specified in a mysql table. But this may not be the best method to achieve this.
Am I on the right track here?
Ta
Flip