HTMLMarqueeElement

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

Giao diện HTMLMarqueeElement cung cấp các phương thức để thao tác các phần tử <marquee>.

Nó kế thừa các thuộc tính và phương thức từ giao diện HTMLElement.

EventTarget Node Element HTMLElement HTMLMarqueeElement

Thuộc tính phiên bản

Kế thừa các thuộc tính từ giao diện cha là HTMLElement.

HTMLMarqueeElement.behavior Deprecated

Đặt cách văn bản cuộn trong marquee. Các giá trị có thể là scroll, slidealternate. Nếu không có giá trị nào được chỉ định, giá trị mặc định là scroll.

HTMLMarqueeElement.bgColor Deprecated

Đặt màu nền thông qua tên màu hoặc giá trị thập lục phân.

HTMLMarqueeElement.direction Deprecated

Đặt hướng cuộn trong marquee. Các giá trị có thể là left, right, updown. Nếu không có giá trị nào được chỉ định, giá trị mặc định là left.

HTMLMarqueeElement.height Deprecated

Đặt chiều cao theo pixel hoặc giá trị phần trăm.

HTMLMarqueeElement.hspace Deprecated

Đặt lề ngang.

HTMLMarqueeElement.loop Deprecated

Đặt số lần marquee sẽ cuộn. Nếu không có giá trị nào được chỉ định, giá trị mặc định là −1, nghĩa là marquee sẽ cuộn liên tục.

HTMLMarqueeElement.scrollAmount Deprecated

Đặt lượng cuộn tại mỗi khoảng thời gian theo pixel. Giá trị mặc định là 6.

HTMLMarqueeElement.scrollDelay Deprecated

Đặt khoảng cách giữa mỗi chuyển động cuộn tính bằng mili giây. Giá trị mặc định là 85.

HTMLMarqueeElement.trueSpeed Deprecated

Theo mặc định, các giá trị scrollDelay nhỏ hơn 60 bị bỏ qua. Nếu trueSpeedtrue, thì các giá trị đó không bị bỏ qua.

HTMLMarqueeElement.vspace Deprecated

Đặt lề dọc.

HTMLMarqueeElement.width Deprecated

Đặt chiều rộng theo pixel hoặc giá trị phần trăm.

Phương thức phiên bản

Kế thừa các phương thức từ giao diện cha là HTMLElement.

HTMLMarqueeElement.start() Deprecated

Bắt đầu cuộn của marquee.

HTMLMarqueeElement.stop() Deprecated

Dừng cuộn của marquee.

Sự kiện

bounce Deprecated

Kích hoạt khi marquee đạt đến cuối vị trí cuộn của nó.

finish Deprecated

Kích hoạt khi marquee đã hoàn thành lượng cuộn được đặt bởi thuộc tính loop.

start Deprecated

Kích hoạt khi marquee bắt đầu cuộn.

Thông số kỹ thuật

Specification
HTML
# htmlmarqueeelement

Tương thích trình duyệt

Xem thêm