MAP Element | MAP Object       MENU Element | MENU Objec...       DHTML Objects      
 
Web Workshop  |  DHTML, HTML & CSS 
 MARQUEE Element | MARQUEE Object--------------------------------------------------------------------------------Creates a scrolling text marquee.HTML Syntax<MARQUEEACCESSKEY=accesskeyATOMICSELECTION=atomicselectionBEHAVIOR=behaviorBGCOLOR=bgcolorCLASS=classCONTENTEDITABLE=contenteditableDATAFLD=datafldDATAFORMATAS=dataformatasDATASRC=datasrcDIR=dirDIRECTION=directionDISABLED=disabledHEIGHT=heightHSPACE=hspaceID=idLANG=langLANGUAGE=languageLOOP=loopSCROLLAMOUNT=scrollamountSCROLLDELAY=scrolldelaySTYLE=styleTABINDEX=tabindexTITLE=titleTRUESPEED=truespeedUNSELECTABLE=unselectableVSPACE=vspaceWIDTH=width></MARQUEE>
ResThe default width of the MARQUEE element is equal to the width of its parent element. When a MARQUEE is in a TD that does not specify a width, you should explicitly set the width of MARQUEE. If neither the MARQUEE nor the TD has a width specified, the marquee is collapsed to a 1-pixel width.To create a vertically scrolling MARQUEE, set its scrollLeft property to 0. To create a horizontally scrolling marquee, set its scrollTop property to 0, overriding any script setting.The MARQUEE element is a block element and requires a closing tag.This element is available in HTML as of Microsoft? Internet Explorer 3.0, and in script as of Microsoft? Internet Explorer 4.0.Members

解决方案 »

  1.   

    AllAttributesPropertiesMethodsEventsCollectionsBehaviors   Description 
    accessKey  Sets or retrieves the accelerator key for the <MARQUEE>. 
    addBehavior  Attaches a behavior to an <MARQUEE>. 
    all  Returns a reference to the collection of elements contained by the <MARQUEE>. 
    appendChild  Appends an element as a child to the <MARQUEE>. 
    applyElement  Makes the <MARQUEE> either a child or parent of the <MARQUEE>. 
    attachEvent  Binds the specified function to an event that fires on the <MARQUEE> when the function is called. 
    attributes  Retrieves a collection of attributes of the object. 
    behavior  Sets or retrieves how the text scrolls in the marquee. 
    behaviorUrns  Returns a collection of Uniform Resource Name (URN) strings identifying the behaviors attached to the <MARQUEE>. 
    bgColor  Sets or retrieves the background color behind the <MARQUEE>. 
    blur  Causes an object to lose focus, and fires the onblur event. 
    canHaveChildren  Retrieves a value indicating whether the object can contain children. 
    canHaveHTML  Retrieves the value indicating whether the <MARQUEE> can contain rich HTML up. 
    childNodes  Retrieves a collection of HTML Elements and TextNode objects that are direct descendants of the specified object. 
    children  Retrieves a collection of DHTML Objects that are direct descendants of the <MARQUEE>. 
    className  Sets or retrieves the class of the <MARQUEE>. 
    clearAttributes  Removes all attributes and values from the <MARQUEE>. 
    click  Simulates a click by causing the onclick event to fire. 
    clientCaps  Provides information about features supported by Microsoft&reg; Internet Explorer, as well as a way for installing browser components on demand. 
    clientHeight  Retrieves the height of the <MARQUEE> without taking into account any margin, border, scroll bar, or padding that might have been applied to the <MARQUEE>. 
    clientLeft  Retrieves the distance between the offsetLeft property and the true left side of the client area. 
    clientTop  Retrieves the distance between the offsetTop property and the true top of the client area. 
    clientWidth  Retrieves the width of the <MARQUEE> without taking into account any margin, border, scroll bar, or padding that might have been applied to the <MARQUEE>. 
    cloneNode  Copies a reference to the <MARQUEE> from the document hierarchy. 
    componentFromPoint  Returns the component located at the specified coordinates. 
    contains  Checks whether the given element is contained within the <MARQUEE>. 
    contentEditable  Sets or retrieves whether the user can edit the content of the <MARQUEE>. 
    currentStyle  Represents the cascaded format and style of the <MARQUEE> as specified by global style sheets, inline styles, and HTML attributes. 
    dataFld  Sets or retrieves which field of a given data source, as specified by the dataSrc property, to bind to the specified object. 
    dataFormatAs  Sets or retrieves how to render the data supplied to the <MARQUEE>. 
    dataSrc  Sets or retrieves the source of the data for data binding. 
    detachEvent  Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires on the <MARQUEE>. 
    dir  Sets or retrieves the reading order of the <MARQUEE>. 
    direction  Sets or retrieves the direction in which the text should scroll. 
    disabled  Sets or retrieves the status of a control or style. 
    download  Downloads a file and notifies a specified callback function when the download is complete. 
    dragDrop  Initiates a drag event. 
    filters  Retrieves the collection of filters that have been applied to the <MARQUEE>. 
    fireEvent  Fires a specified event on the <MARQUEE>. 
    firstChild  Retrieves a reference to the first child in the childNodes collection of the <MARQUEE>. 
    focus  Causes a control to receive the focus, and executes the code specified by the onfocus event. 
    getAdjacentText  Returns the adjacent text character. 
    getAttribute  Retrieves the value of the specified attribute. 
    getBoundingClientRect  Retrieves an object specifying the bounds of a collection of TextRectangle objects. 
    getClientRects  Retrieves a collection of rectangles that describes the layout of the contents of an object or range within the client. Each rectangle describes a single line. 
    getElementsByTagName  Retrieves a collection of objects based on the specified element name. 
    getExpression  Retrieves the expression for the given property. 
    hasChildNodes  Returns whether the <MARQUEE> has children. 
    height  Sets or retrieves the height of the <MARQUEE>. 
    hideFocus  Sets or retrieves the value indicating whether the <MARQUEE> visibly indicates the focus. 
      

  2.   

    homePage  Contains information about a user's homepage. 
    hspace  Sets or retrieves the horizontal margin for the <MARQUEE>. 
    httpFolder  Contains scripting features that enable browser navigation to a folder view. 
    id  Retrieves the string identifying the <MARQUEE>. 
    innerHTML  Sets or retrieves the HTML between the start and end tags of the <MARQUEE>. 
    innerText  Sets or retrieves the text between the start and end tags of the <MARQUEE>. 
    insertAdjacentElement  Inserts an element at the specified location. 
    insertAdjacentHTML  Inserts the given HTML text into the element at the location. 
    insertAdjacentText  Inserts the given text into the element at the specified location. 
    insertBefore  Inserts an element into the document hierarchy. 
    isContentEditable  Retrieves the value indicating whether the user can edit the contents of the <MARQUEE>. 
    isDisabled  Retrieves the value indicating whether the user can interact with the <MARQUEE>. 
    isTextEdit  Retrieves whether a TextRange <MARQUEE> can be created using the given object. 
    lang  Sets or retrieves the language to use. 
    language  Sets or retrieves the language in which the current script is written. 
    lastChild  Retrieves a reference to the last child in the childNodes collection of an object. 
    loop  Sets or retrieves the number of times a MARQUEE will play. 
    mergeAttributes  Copies all read/write attributes to the specified element. 
    nextSibling  Retrieves a reference to the next child of the parent for the specified object. 
    nodeName  Retrieves the name of a particular type of node. 
    nodeType  Retrieves the type of the requested node. 
    nodeValue  Sets or retrieves the value of a node. 
    offsetHeight  Retrieves the height of the <MARQUEE> relative to the layout or coordinate parent, as specified by the offsetParent property. 
    offsetLeft  Retrieves the calculated left position of the <MARQUEE> relative to the layout or coordinate parent, as specified by the offsetParent property. 
    offsetParent  Retrieves a reference to the container object that defines the offsetTop and offsetLeft properties of the object. 
    offsetTop  Retrieves the calculated top position of the <MARQUEE> relative to the layout or coordinate parent, as specified by the offsetParent property. 
    offsetWidth  Retrieves the width of the <MARQUEE> relative to the layout or coordinate parent, as specified by the offsetParent property. 
    onactivate  Fires when the <MARQUEE> is set as the activeElement. 
    onbeforecut  Fires on the source object before the selection is deleted from the document. 
    onbeforedeactivate  Fires immediately before the activeElement is changed from the current <MARQUEE> to another object in the parent document. 
    onbeforeeditfocus  Fires before a control enters a UI activated state. 
    onbeforepaste  Fires on the target object before the selection is pasted from the system clipboard to the document. 
    onblur  Fires when the <MARQUEE> loses the input focus. 
    onbounce  Fires when the behavior property of the MARQUEE object is set to "alternate" and the contents of the marquee reach one side of the window. 
    onclick  Fires when the user clicks the left mouse button on the <MARQUEE>. 
    oncontextmenu  Fires when the user clicks the right mouse button in the client area, opening the context menu. 
    oncontrolselect  Fires when the user is about to make a control selection of an <MARQUEE>. 
    oncut  Fires on the source element when the <MARQUEE> or selection is removed from the document and added to the system clipboard. 
    ondblclick  Fires when the user double-clicks the <MARQUEE>. 
    ondeactivate  Fires when the activeElement is changed from the current <MARQUEE> to another object in the parent document. 
    ondrag  Fires on the source object continuously during a drag operation. 
    ondragend  Fires on the source object when the user releases the mouse at the close of a drag operation. 
    ondragenter  Fires on the target element when the user drags the <MARQUEE> to a valid drop target. 
    ondragleave  Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. 
    ondragover  Fires on the target element continuously while the user drags the <MARQUEE> over a valid drop target. 
    ondragstart  Fires on the source object when the user starts to drag a text selection or selected object. 
    ondrop  Fires on the target object when the mouse button is released during a drag-and-drop operation. 
    onfilterchange  Fires when a visual filter changes state or completes a transition.