|
|
|
|
|
|
![]() |
#7 |
The only guys who wear Hawaiian shirts are gay guys and big fat party animals
|
If you're rotating the pic each day a really simple and fast way is to
use the date variables in rewrite. This example is from a guy who wanted 7 pics, so they would repeat each week. You can change the variable to rotate through 31 pics, one for each day of the month, or 366 pics, one for each day of the year. The HTML code: Code:
<a href="potd.jpg"><img src="tn_potd.jpg></a> RewriteRule ^tn_potd.jpg $ tn_%{TIME_WDAY}.jpg RewriteRule ^potd.jpg $ %{TIME_WDAY}.jpg SSI can also be used similarly, by echoing the proper portion of the current date or time as part of the file name. |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|