맨위로
믹시

롤링배너용 소스

Javascript 조회 수 10178 추천 수 0 2005.01.19 10:29:28
<HTML>
<HEAD>
<META http-equiv=content-type content="text/html; charset=euc-kr">
<BODY onload=scroll_ready() style="margin:0px;">
        <DIV id=t0 onmouseover=wait=1 style="VISIBILITY: hidden; POSITION: absolute" onmouseout=wait=0>
        <TABLE height=200 cellSpacing=0 cellPadding=0 width="400" border=0 bgcolor="#FF0000"><TBODY>
          <TR>
                <TD>
                000
                </TD>
          </TR>
        </TABLE>
        </DIV>
        
        <DIV id=t1 onmouseover=wait=1 style="VISIBILITY: hidden; POSITION: absolute" onmouseout=wait=0>
        <TABLE height=200 cellSpacing=0 cellPadding=0 width="400" border=0 bgcolor="#00FF00">
          <TR>
                <TD>
                111
                </TD>
          </TR>
        </TABLE>
        </DIV>

        <DIV id=t2 onmouseover=wait=1 style="VISIBILITY: hidden; POSITION: absolute" onmouseout=wait=0>
        <TABLE height=200 cellSpacing=0 cellPadding=0 width="400" border=0 bgcolor="#0000FF">
          <TR>
                <TD>
                222
                </TD>
          </TR>
        </TABLE>
        </DIV>
<SCRIPT language=javascript>
var wait = 0;
var tm1;

function allblur()
{
        for (i = 0; i < document.links.length; i++)
        {
        document.links[i].onfocus = document.links[i].blur;
        }
}
document.onfocusin = allblur;

var scroll_height=200;        //세로길이
var scroll_speed=15;                        //이동속도
var scroll_delay=1000;                        //지연시간 (1/1000)초
var scroll_layer=3;        //레이어갯수

function scroll_ready()
{
t0.style.top=0;
t0.style.visibility='visible';
t1.style.top=scroll_height;
t1.style.visibility='visible';

setTimeout('mov(0,1,0)',scroll_delay);
}

function mov(no1,no2,i)
{
        if(wait == 1)
        {
        setTimeout('mov('+no1+','+no2+','+i+')', 1000);
        return;        
        }
l1=eval('t'+no1);
l2=eval('t'+no2);
        if(parseInt(l2.style.top)<=0)
        {         
        l1.style.visibility='hidden';
                for(var y=parseInt(l2.style.top);y<=0;y++)
                {
                l2.style.top=parseInt(l2.style.top)+0;
                }
        setting(no2);
        return;
        }

l1.style.top=i*-1;
l2.style.top=i*-1+scroll_height;

tm1 = setTimeout('mov('+no1+','+no2+','+(i+scroll_speed)+')', 1);
}

function setting(no1)
{
no2=(no1>=scroll_layer-1)?0:no1+1;

l2=eval('t'+no2);
l2.style.top=scroll_height;
l2.style.visibility='visible';

tm2 = setTimeout('mov('+no1+','+no2+',0)',scroll_delay);
}

</SCRIPT>
</BODY>
</HTML>
profile

안녕하세요!
이미지위자드 김기현입니다.

엮인글 :
http://www.imgwizard.com/448/b7b/trackback
List of Articles
번호 제목 글쓴이 날짜 조회 수 최근 수정일
공지 Windows 웹개발관련 팁,소스등을 모아놓은곳입니다. file id: 김선생 2006-03-09 94410 2011-02-01 23:57

HTML/CSS png24 파일 투명하게 코딩하기..

<style> .png24 { tmp:expression(setPng24(this)); } </style> <script> function setPng24(obj) { obj.width=obj.height=1; obj.className=obj.className.replace(/\bpng24\b/i,''); obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoade...

  • id: 김기현
  • 2005-07-22
  • 조회 수 8353
  • 2009-11-20 12:03

Windows 포토샵CS 버전 설치후 psd파일을 윈도에서 썸네일 미리보기 기능 file

[원문] Photoshop CS - Windows Explorer Thumbnail Enable Patch ** This is not an Official Patch, use at your own risk. ** ** Follow the Instructions carefully. ** 1. Copy psicon.dll to the following directory: C:\Program Files\Common Files\Ad...

  • id: 김기현
  • 2005-07-15
  • 조회 수 8491
  • 2005-07-15 15:57

Actionscript 알람시계,자명종 file

.

  • id: 김기현
  • 2005-05-31
  • 조회 수 6207
  • 2005-05-31 19:08

Javascript 팝업창 닫으면서 메인창 페이지 넘기기

<a href="#" onclick=opener.location.href="aaa.php";self.close(); onFocus="blur();"> .

  • id: 김기현
  • 2005-05-26
  • 조회 수 6652
  • 2005-05-26 13:27

Zeroboard 제로카운터 file

제로카운터

  • id: 김선생
  • 2005-03-07
  • 조회 수 8303
  • 2005-03-07 23:03

Windows 고스트 2003 789 CD 부팅 백업 복구 file

.

  • id: 김기현
  • 2005-03-07
  • 조회 수 9794
  • 2008-04-15 16:36

Windows 네비3.50 file

네비3.50

  • id: 김기현
  • 2005-03-06
  • 조회 수 5435
  • 2005-03-06 19:15

Javascript 이쁜셀렉트메뉴 (에러수정중)

<head> <meta http-equiv="Content-type" content="text/html; charset=euc-kr"> <script type="text/javascript"> // SaySelect Environment Constants var SS_ENV = new Object(); SS_ENV.IE_Version = new Number(((window.navigator.appVersion.split('; '...

  • id: 김기현
  • 2005-03-01
  • 조회 수 5581
  • 2005-03-01 20:05

Javascript 롤링배너용 소스

<HTML> <HEAD> <META http-equiv=content-type content="text/html; charset=euc-kr"> <BODY onload=scroll_ready() style="margin:0px;"> <DIV id=t0 onmouseover=wait=1 style="VISIBILITY: hidden; POSITION: absolute" onmouseout=wait=0> <TABLE height=2...

  • id: 김기현
  • 2005-01-19
  • 조회 수 10178
  • 2005-01-19 10:29

Actionscript 플래쉬 위에 레이어 겹치게 만들기

* 오브젝트 태그안에 아래 .... 를 넣어준다 PARAM NAME=wmode VALUE=transparent PARAM NAME=wmode VALUE=opaque

  • id: 김기현
  • 2005-01-13
  • 조회 수 6394
  • 2005-01-13 15:24