랜덤배너 노출 소스



아주 유용한 소스입니다.

가령..

블로그에 접속할 때 마다 다른 배너가 노출되길 원할 때 사용하시면 좋습니다.



<table width=100% height=60 border=0 cellspacing=0 cellpadding=0>
     <tr>
      <td>
            <p align="center"><SCRIPT LANGUAGE="JavaScript">
<!--

var quotes=new Array()
// 이곳에 배너 태그를 넣어 줍니다
quotes[0]="<a href='여기에 해당 링크경로입력' target='_blank'><img src='여기에 사진경로' border=0 width=468 height=60>";//간단한 설명입력

1
2
3
위 0을 바꿔 가면서 늘리면 됩니다.



var whichquote=Math.floor(Math.random()*(quotes.length))
document.write(quotes[whichquote])

//-->
</SCRIPT>
      </td>
     </tr>
    </table>