「トップページの画像をランダムに表示」の応用です。
<script type="text/javascript">
myImageCnt = 13;
myImage = new Array(
"<!–{$TPL_DIR}–>img/main/top1.jpg",
"<!–{$TPL_DIR}–>img/main/top2.jpg",
"<!–{$TPL_DIR}–>img/main/top3.jpg",
"<!–{$TPL_DIR}–>img/main/top4.jpg",
"<!–{$TPL_DIR}–>img/main/top5.jpg",
"<!–{$TPL_DIR}–>img/main/top6.jpg",
"<!–{$TPL_DIR}–>img/main/top7.jpg",
"<!–{$TPL_DIR}–>img/main/top8.jpg",
"<!–{$TPL_DIR}–>img/main/top9.jpg",
"<!–{$TPL_DIR}–>img/main/top10.jpg",
"<!–{$TPL_DIR}–>img/main/top11.jpg",
"<!–{$TPL_DIR}–>img/main/top12.jpg",
"<!–{$TPL_DIR}–>img/main/top13.jpg"
)
currentDateObject = new Date();
currentMonth = currentDateObject.getMonth();
document.write("<img src=’",myImage[currentMonth],"’ border=’0′ alt=’イメージ’ />");
// –></script>
<noscript><img src="<!–{$TPL_DIR}–>img/main/top13.jpg" alt=’イメージ’ /></noscript>