RSS구독하기:SUBSCRIBE TO RSS FEED
즐겨찾기추가:ADD FAVORITE
글쓰기:POST
관리자:ADMINISTRATOR
Languages/Javascript  2007/04/25 00:59

<script language="JavaScript">
var htmlstr = "", flag=true, imgflag=true, mouse=1, speed=1, wait=3000, temp=0, height=50, amount=50;
var ctnt=new Array(), ctnt_i=new Array(), startPanel=0, n_panel=0, i=0, j=0, count=1;
</script>
<script>


 // 0
 ctnt[0]="상패전문쇼핑몰 상패몰(2005.08~09)";


 // 1
 ctnt[1]="이화여대 CINBM 홈페이지(2005.09~10)";


 // 2
 ctnt[2]="벤츠공식딜러 (주)모터원 (2005.09~2005.10)";


 // 3
 ctnt[3]="요가쇼핑몰 요나패밀리(2005.09.15~)";


</script>
<script>
function startText() {
 if(ctnt.length>1){
  for (i=0; i<ctnt.length; i++)
  insertText(i);
  window.setTimeout("scroll()",wait);
 }else{
  insertText(0);
 }
}
function scroll() {
  if (mouse && flag) {
    for (i=0;i<ctnt.length;i++) {
      if (temp == 0 && imgflag) {
  for (j=0;j<ctnt_i.length;j++) {
  tmp = document.getElementById('img_area'+j).style;
  if (count % ctnt_i.length == j) {
     tmp.display = '';
   } else {
     tmp.display = 'none';
   }
 }
 imgflag=false;
 count++;
      }
      temp++;
      tmp = document.getElementById('scroll_area'+i).style;
      tmp.top = parseInt(tmp.top)-speed;
      if (parseInt(tmp.top) <= height*(-1)) {
        tmp.top = height*(ctnt.length-1);
      }
      if (temp>(amount-1)*ctnt.length) {
        flag=false;
        temp=0;
        window.setTimeout("flag=true;temp=0;imgflag=true;",wait);
      }
    }
  }
  window.setTimeout("scroll()",2);
}
function insertText(i) {
  htmlstr='<a href=""><div style="left: 0px; width: 310px; position: absolute; top: '+(height*i+1)+'px" id="scroll_area'+i+'">\n';
  htmlstr+=ctnt[i]+'\n'+'</div></a>\n';
  document.write(htmlstr);
}
</script>
<table width="309" border="0" cellspacing="0" cellpadding="0">      
  <tr>
 <td><img src="" width="309" height="31"></td>
  </tr>
  <tr>
 <td height="25" valign="top" style="padding-left:10px;">
 
  <!-- Rolling Table -->
  <div style="height: 20px; width: 270px; position: absolute; overflow:hidden;" 허용되지않은 태그 사용중="mouse=0" 허용되지않은 태그 사용중="mouse=1" id="scroll_div">
  <script language="JavaScript">startText();</script>
  </div>
  <!-- //Rolling Table -->
 
 </td>
  </tr>
  <tr>
 <td height="10"> </td>
  </tr>
</table>

이올린에 북마크하기
2007/04/25 00:59 2007/04/25 00:59
http://jiny.kr/trackback/108
전체 (406)
지니소식 (4)
자료실 (4)
정보|뉴스 (5)
SmartPhone (1)
Languages (206)
Server (153)
Database (27)
Design (4)
Gallery (0)
분류하기귀찬.. (2)
«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      
  1. 창의력과 상상력을 넘어서  2009
    Tomcat 6.0 기본 환경 설정
  2. 닥공  2009
    서블릿 tomcat 6.0 실행시 에러
  1. 2010/07 (1)
  2. 2010/05 (1)
  3. 2010/02 (3)
  4. 2010/01 (3)
  5. 2009/05 (2)
Statistics Graph