묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
롤링배너만들기
2006.05.20 11:58
<script language="JavaScript">
<@--
var list= new Array()
list[list.length]='images/01.jpg';
list[list.length]='images/02.jpg';
list[list.length]='images/03.jpg';
list[list.length]='images/04.jpg';
list[list.length]='images/05.jpg';
list[list.length]='images/06.jpg';
list[list.length]='images/07.jpg';
list[list.length]='images/08.jpg';
list[list.length]='images/09.jpg';
list[list.length]='images/10.jpg';
list[list.length]='images/11.jpg'+ '+ ';
list[list.length]='images/12.jpg';
list[list.length]='images/13.jpg';
list[list.length]='images/14.jpg'+ ';
list[list.length]='images/15.jpg';
list[list.length]='images/16.jpg';
j=parseInt(Math.random()*list.length);
j=(isNaN(j))?0:j;
document.write("<@img src='"+list[j]+"' width='318' height='274' border='0' GALLERYIMG='no'@>");
//--@>
</script>
롤링배너를 만들려고 하는데 위의소스에서 각각의 이미지에 링크를 어떻게 걸어야하나요..
자세한 설명부탁드림니다..
<@--
var list= new Array()
list[list.length]='images/01.jpg';
list[list.length]='images/02.jpg';
list[list.length]='images/03.jpg';
list[list.length]='images/04.jpg';
list[list.length]='images/05.jpg';
list[list.length]='images/06.jpg';
list[list.length]='images/07.jpg';
list[list.length]='images/08.jpg';
list[list.length]='images/09.jpg';
list[list.length]='images/10.jpg';
list[list.length]='images/11.jpg'+ '+ ';
list[list.length]='images/12.jpg';
list[list.length]='images/13.jpg';
list[list.length]='images/14.jpg'+ ';
list[list.length]='images/15.jpg';
list[list.length]='images/16.jpg';
j=parseInt(Math.random()*list.length);
j=(isNaN(j))?0:j;
document.write("<@img src='"+list[j]+"' width='318' height='274' border='0' GALLERYIMG='no'@>");
//--@>
</script>
롤링배너를 만들려고 하는데 위의소스에서 각각의 이미지에 링크를 어떻게 걸어야하나요..
자세한 설명부탁드림니다..