Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Different Image (Banner/Logo) Based on Month
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #1
Different Image (Banner/Logo) Based on Month
A simple way to change an image (banner/logo) based on month.

Image tag in template:

HTML Code
<img src="images_path/image_<?=my_date('n')?>.png" alt="" />

Replace the image_path to an image dir (can be static or dynamic).
For example:

HTML Code
<img src="images/image_<?=my_date('n')?>.png" alt="" />

Upload image_1.png ...... image_12.png to the image dir.


10-17-2011 02:28 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Different Image (Banner/Logo) Based on Month - RateU - 10-17-2011 02:28 AM

 Standard Tools
Forum Jump: