相關(guān)關(guān)鍵詞
關(guān)于我們
最新文章
- ThinkPHP 5.1、6.0、6.1 與 8.0 版本對比分析
- 涉嫌侵權(quán)的人只復(fù)制了版權(quán)軟件,沒有傳播給其他人,是否符合復(fù)制侵權(quán)的判定?
- 網(wǎng)站域名備案到企業(yè)名下后,即表明是商業(yè)使用了嗎?
- 軟件中使用了GPL & MIT 協(xié)議的文件 和 使用了 GPL | MIT 的有什么區(qū)別?
- 網(wǎng)站版權(quán)糾紛中的來源非法是否有嚴(yán)格的司法定義?
- [確定有效] ECSHOP后臺登錄不了的問題解決 https打不開
- 免費(fèi)搜索代碼:如何利用百度做一個企業(yè)網(wǎng)站內(nèi)搜索?
- MySQL 中 HAVING 與 REPLACE 的用法解析
- 深入理解 MySQL 的連接操作:-h、-P、-u、-p 詳解
- 在 MySQL Workbench 中自定義導(dǎo)出文件格式的解決方案
marquee元素實(shí)現(xiàn)滾動字體圖片滑動等效果
marquee元素可以實(shí)現(xiàn)簡單的字體(圖片等)的滑動等效果:
<style type="text/css">
#div01{
width: 500px;
}
</style>
<script type="text/javascript">
</script>
<marquee behavior="alertnate"><font size=30 color='red'>www.baidu.com111</font></marquee>
<marquee direction=right bgcolor='#ff2233' behavior="alertnate"><font size=30 color='blue'>www.baidu.com222</font></marquee>
<marquee id="m3" direction=down bgcolor='#dbdbdb' height=50px hspace=20px vspace=20px behavior="alertnate" scrollLeft=left onmouSEOver="this.stop()" onmouSEOut="this.start()"><font size=30 color='blue'>www.baidu333.com</font></marquee>
<marquee id="m4" direction=up bgcolor='#00dbdb' behavior="alertnate"><font size=30 color='blue'>www.baidu444.com</font></marquee>
<div id="div01"><marquee direction=right bgcolor='#ff2233' behavior="alertnate" scrolldelay=100><font size=30 color='blue'>www.baidu.com555</font></marquee></div>
<input type="button" onclick="m3.stop();" value="m3.stop"></input>
<input type="button" onclick="m3.start();" value="m3.start"></input>
<button onclick="m4.stop();">m4.stop</button>
<button onclick="m4.start();">m4.start</button>
direction 表示滾動的方向,值可以是left,right,up,down,默認(rèn)為left
behavior 表示滾動的方式,值可以是scroll(連續(xù)滾動)slide(滑動一次)alternate(來回滾動)
loop 表示循環(huán)的次數(shù),值是正整數(shù),默認(rèn)為無限循環(huán)
scrollamount 表示運(yùn)動速度,值是正整數(shù),默認(rèn)為6
scrolldelay 表示停頓時間,值是正整數(shù),默認(rèn)為0,單位似乎是毫秒
align 表示元素的垂直對齊方式,值可以是top,middle,bottom,默認(rèn)為middle
bgcolor 表示運(yùn)動區(qū)域的背景色,值是16進(jìn)制的RGB顏色,默認(rèn)為白色
height、width 表示運(yùn)動區(qū)域的高度和寬度,值是正整數(shù)(單位是像素)或百分?jǐn)?shù),默認(rèn)width=100% height為標(biāo)簽內(nèi)元素的高度
hspace、vspace 表示元素到區(qū)域邊界的水平距離和垂直距離,值是正整數(shù),單位是像素。
onmouseover=this.stop() onmouseout=this.start() 表示當(dāng)鼠標(biāo)以上區(qū)域的時候滾動停止,當(dāng)鼠標(biāo)移開的時候又繼續(xù)滾動。
以下是設(shè)置點(diǎn)擊按鈕時m3、m4的滾動或停止:
<input type="button" onclick="m3.stop();" value="m3.stop"></input>
<input type="button" onclick="m3.start();" value="m3.start"></input>
<button onclick="m4.stop();">m4.stop</button>
<button onclick="m4.start();">m4.start</button>