文字無縫上下滾動

2021-09-02 19:24:00 字數 1079 閱讀 1171

看了好幾個網上的例子,最終得到了想要的效果。啥也不說了,記錄有效的**,直接放**。

html:

188****1865剛剛在貸款超市成功借款5000元

155****1899剛剛在貸款超市成功借款8000元

156****8899剛剛在貸款超市成功借款8000元

135****3999剛剛在貸款超市成功借款8000元

css:

.success_loan_text

.success_loantext_content,.success_loantext_copy

js:

var scrolltop = window.pageyoffset|| document.documentelement.scrolltop || document.body.scrolltop;

var successloantextbox = document.getelementbyid('successloantextbox');

var successloantextcontent = document.getelementbyid('successloantextcontent');

var successloancopy = document.getelementbyid('successloancopybox');

successloancopy.innerhtml = successloantextcontent.innerhtml;

if(($('#successloantextcontent').height()>0)&&($('#successloantextcontent').height()<$('#successloantextbox').height()))else if(($('#successloantextcontent').height()>0)&&($('#successloantextcontent').height()>=$('#successloantextbox').height()))

function marquee()

}

js文字無縫滾動

1 overflow hidden width 128px height 300px 23 90 cellspacing 3 cellpadding 0 border 0 align center class ykxm 孫君洲 1人 2013 09 06到 class xdd ff0000 新訂單 ...

javascript 文字無縫向上滾動

靜態 style height 30px overflow hidden id marquee 第1段p 第2段p 第3段p 第4段p 第5段p div div 解釋 首先最外層是乙個高度只有30px的層,這樣大概只能顯示一行文字。然後裡面有乙個 marquee的層,這個層包含了很多段文字,高度實際...

JQ 文字無縫滾動之逐條滾動

jq 本列子是從下向上滾動的,如果時其他方向的修改marginbttom就可以了 function var this this this.timer null this.lineh this.find li first height this.line opt.line?parseint opt.l...