熾熱文字效果
來源:易賢網(wǎng) 閱讀:1217 次 日期:2016-06-16 10:23:59
溫馨提示:易賢網(wǎng)小編為您整理了“熾熱文字效果”,方便廣大網(wǎng)友查閱!

1、將以下代碼加入heml的<head></head>之間:

<style>

<!--

#glowtext{

filter:glow(color=red,strength=2);

width:100%;

}

-->

</style>

<script language=javascript1.2>

function glowit(which){

if (document.all.glowtext[which].filters[0].strength==2)

document.all.glowtext[which].filters[0].strength=1

else

document.all.glowtext[which].filters[0].strength=2

}

function glowit2(which){

if (document.all.glowtext.filters[0].strength==2)

document.all.glowtext.filters[0].strength=1

else

document.all.glowtext.filters[0].strength=2

}

function startglowing(){

if (document.all.glowtext&&glowtext.length){

for (i=0;i<glowtext.length;i++)

eval('setinterval(glowit('+i+'),150)')

}

else if (glowtext)

setinterval(glowit2(0),150)

}

if (document.all)

window.onload=startglowing

</script>

2、將以下代碼加入到heml的<body></body>之間[適當(dāng)?shù)奈恢胅:

<span id=glowtext>這里是要顯示的文字</span>

3、[可選項]改變文字顏色和背景色可以得到不同的效果。文字顏色修改,只要修改filter:glow(color=red,strength=2); 中的color項,strength為顏色的深度值 。

更多信息請查看腳本欄目
易賢網(wǎng)手機(jī)網(wǎng)站地址:熾熱文字效果
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機(jī)站點

版權(quán)所有:易賢網(wǎng)