HTML 사전

marquee

설명

The HTML <marquee> element is used to insert a scrolling area of text.

The HTML <marquee> 요소는 텍스트의 스크롤 영역을 삽입한다. 

스크롤의 의미 : 모니터의 화면에 나타난 내용이 상하 또는 좌우로 움직이는 것
이므로 텍스트가 흐르듯이 있는 영역이라고 표현하지 않아도 될 것 같습니다.

 

Usage Context

Permitted content  
Tag omission  
Permitted parent elements  
Normative document  

속성

이 엘리먼트는 전역속성을 지원한다.

behavior

Sets how the text is scrolled within the marquee. Possible values are scroll, slide and alternate. If no value is specified, the default value is scroll.

marquee 요소 내에서 텍스트가 흐르는 모양을 결정한다. 가능한 값은 scroll, slide, alertnate이다.  만약 값이 명시되지 않았다면 기본 값은 scroll 이다.

scroll : 텍스트가 정해진 영역 밖까지 이동하여 사라진다. 

slide : 정해진 영역 끝에가면 멈춘다.

alertnate : 영역 끝에 도달하면 진행방향을 바꿔서 반대로 흐른다.

bgcolor

Sets the background color through color name or hexadecimal value.

배경색은 색의 이름이나 16진법 수로 표현한다.

direction

Sets the direction of the scrolling within the marquee. Possible values are left, right, up and down. If no value is specified, the default value is left.

marquee 요소 내에서 흐르는 방향을 결정한다. 가능한 값은 left (왼쪽), right (오른쪽), up (위로), down (아래로) 가 있다. 만약 값이 정해지지 않으면 기본값은 left 이다.

height

Sets the height in pixels or percentage value.

픽셀이나 퍼센트로 높이를 지정한다.

hspace

Sets the horizontal margin

수평여백을 설정한다.

loop

Sets the number of times the marquee will scroll. If no value is specified, the default value is −1, which means the marquee will scroll continuously.

marquee 요소에 의해 흐르는 움직임의 반복 횟수를 설정한다. 만약 값이 명시되지 않았으면 기본 값은 -1 이다.  -1 의 의미는 계속 반복되어 흐르는 것이다.

scrollamount

Sets the amount of scrolling at each interval in pixels. The default value is 6.

한번에 이동하는 픽셀의 간격을 설정한다. 기본값은 6 으로 6픽셀씩 이동한다. 숫자가 작으면 천천히 이동하고 숫자가 커질 수록 빠르게 이동한다.

scrolldelay

Sets the interval between each scroll movement in milliseconds. The default value is 85. Note that any value smaller than 60 is ignored and the value 60 is used instead, unless truespeed is specified.

이동하는 간격을 밀리세컨드 (1/1000 초) 단위로 설정한다. 기본값은 85 이다. 만악 truespeed 가 지정되지 않은 경우, 60보다 작은 값은 무시되고 60 으로 대체된다.

truespeed

By default, scrolldelay values lower than 60 are ignored. If truespeed is present, those values are not ignored.

기본적으로 60보다 작은 scrolledlay 값은 무시된다. 그러나 만약 truespeed 가 지정되어 있으면, 60보다 작은 scrolledlay 값도 무시되지 않는다.

vspace

Sets the vertical margin in pixels or percentage value.

픽셀이나 퍼센트로 수직 여백을 지정한다.

width

Sets the width in pixels or percentage value.

픽셀이나 퍼센트로 넓이를 지정한다.

예제

<marquee>This text will scroll from right to left</marquee>

  <marquee direction="up">This text will scroll from bottom to top</marquee>

  <marquee direction="down" width="250" height="200" behavior="alternate" style="border:solid">
    <marquee behavior="alternate">
      This text will bounce
    </marquee>
  </marquee>

• The marquee element is originally an IE invention.
• The marquee element is not valid according to the HTML or XHTML specifications. Page authors concerned with validation should not use this tag.
• The marquee element is implemented in Mozilla (Firefox) by using an XBL binding; see /layout/style/xbl-marquee/xbl-marquee.xml.

• marquee 요소는 최초 IE 에서 만들어 졌다. 
• marquee 요소는 HTML or XHTML 의 명세서에 따르면 유효하지 않다. 유효성을 고려하는 페이지 제작자에게는 이 태그의 사용을 권장하지 않는다. 
• marquee 요소는  XBL 바인딩 을 사용한 모질라(파이어폭스) 에서 구현된다.  /layout/style/xbl-marquee/xbl-marquee.xml. 을 참고  

 DOM Interface

 

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원 1.0 1.0 (1.7 or earlier) 2.0 7.2 1.2
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원   1.0 (1.0)      

참고

댓글

댓글 본문
버전 관리
제스프리
현재 버전
선택 버전
graphittie 자세히 보기