关于滚动字幕

flbz 2003-01-03 01:33:30
<a href="#" onclick='???????????'>开始滚动</a>
<marquee behavior="scroll" scrollamount="2" scorlldelay="2" >
文字
</marquee>

如何让我点了“开始滚动”文字才开始滚动
...全文
192 点赞 收藏 5
写回复
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
春风老少年 2003-01-06
我K~!三楼的,不是这么夸张吧~~~~,这可用属性也忒多了点不~~
回复
japhone 2003-01-04
受益非浅
回复
wangxj0600 2003-01-03
来晚了一步,分数有没有了。marquee可以使用下面的属性和方法事件
Properties

accessKey , begin , behavior , bgColor , canHaveChildren , canHaveHTML , className , clientHeight , clientLeft , clientTop , clientWidth , contentEditable , currentStyle , dataFld , dataFormatAs , dataSrc , dir , direction , firstChild , hasMedia , height , hideFocus , hspace , id , innerHTML , innerText , isContentEditable , isDisabled , isTextEdit , lang , language , lastChild , loop , nextSibling , nodeName , nodeType , nodeValue , offsetHeight , offsetLeft , offsetParent , offsetTop , offsetWidth , onOffBehavior , outerHTML , outerText , parentElement , parentNode , parentTextEdit , previousSibling , readyState , recordNumber , runtimeStyle , scopeName , scrollAmount , scrollDelay , scrollHeight , scrollLeft , scrollTop , sourceIndex , style , STYLE , syncMaster , tabIndex , tagName , tagUrn , title , trueSpeed , uniqueID , vspace
Methods

addBehavior , appendChild , applyElement , attachEvent , blur , clearAttributes , click , cloneNode , componentFromPoint , contains , detachEvent , dragDrop , fireEvent , focus , getAdjacentText , getAttribute , getBoundingClientRect , getClientRects , getElementsByTagName , getExpression , hasChildNodes , insertAdjacentElement , insertAdjacentHTML , insertAdjacentText , insertBefore , mergeAttributes , releaseCapture , removeAttribute , removeBehavior , removeChild , removeExpression , removeNode , replaceAdjacentText , replaceChild , replaceNode , scrollIntoView , setActive , setAttribute , setCapture , setExpression , start , stop , swapNode
Events

onactivate , onbeforecut , onbeforedeactivate , onbeforeeditfocus , onbeforepaste , onblur , onbounce , onclick , oncontextmenu , oncontrolselect , oncut , ondblclick , ondeactivate , ondrag , ondragend , ondragenter , ondragleave , ondragover , ondragstart , ondrop , onfilterchange , onfinish , onfocus , onhelp , onkeydown , onkeypress , onkeyup , onlosecapture , onmousedown , onmouseenter , onmouseleave , onmousemove , onmouseout , onmouseover , onmouseup , onpaste , onpropertychange , onreadystatechange , onresize , onresizeend , onresizestart , onscroll , onselectstart , onstart , ontimeerror
Collections

all , attributes , behaviorUrns , childNodes , children , filters
Behaviors

clientCaps , download , homePage , httpFolder , saveFavorite , saveHistory , saveSnapshot , time , time2 , userData
Styles

border-top-color margin-top width border-bottom-width padding-right padding border-right-width cursor zoom filter text-indent visibility font-style border-left-color margin-left text-autospace left layout-grid-line font-variant line-break background-position-x background-position-y background text-align border-bottom-color text-justify position background-position clear border-right-color border-right word-spacing top padding-left layout-grid-mode height padding-bottom right font-size border-bottom letter-spacing display float font-family margin-right text-underline-position behavior word-break text-transform background-repeat border-top-style layout-grid-char background-image bottom clip writing-mode text-decoration color border-style border-top-width border-top z-index margin-bottom page-break-after layout-flow font border-left-style border-width margin unicode-bidi background-color font-weight line-height border-bottom-style layout-grid layout-grid-type border-left-width border-left padding-top border-color border border-right-style
回复
i三千 2003-01-03
好,又学了一招~
回复
jzsh2000 2003-01-03
<body onLoad="marq.stop()">
<a href="#" onclick="marq.start()">开始滚动</a><br>
<a href="#" onclick="marq.stop()">停止</a>
<marquee behavior="scroll" scrollamount="2" scorlldelay="2" id="marq">
文字
</marquee>
</body>
回复
发动态
发帖子
CSS
创建于2007-09-28

5.9w+

社区成员

层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
申请成为版主
社区公告
暂无公告