淡入淡出的文字效果
來源:易賢網(wǎng) 閱讀:885 次 日期:2014-09-09 14:56:45
溫馨提示:易賢網(wǎng)小編為您整理了“淡入淡出的文字效果”,方便廣大網(wǎng)友查閱!

1、以下代碼放在HTML的<head></head>之間:

<script language="javaScript">

<!--

function checkBrowserForVersion4(){

var x=navigator.appVersion;

y=x.substring(0,4);

if(y>=4) Effect();}

var isNav=(navigator.appName.indexOf("Netscape")!=-1);

var colors=new Array

("FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","F9F9F9","F1F1F1","E9E9E9","E1E1E1","D9D9D9","D1D1D1","C9C9C9","C1C1C1","B9B9B9","B1B1B1","A9A9A9","A1A1A1","999999","919191","898989","818181","797979","717171","696969","616161","595959","515151","494949","414141","393939","313131","292929","212121","191919","111111","090909","000000")

a=0,b=1

function Effect(){

color=colors[a];

//*改改下面的文字內(nèi)容即可,可使用HTML語法,但是注意引號不要混用。雙引號內(nèi)是單引號。*//

aa="<font size='5'><font face='Arial, Helvetica, sans-serif'><font color="+color+">Save page and Get Code !<p>Enjoy All These Free Javascripts ......</font></font></font>"

if(isNav) {document.object1.document.write(aa);document.object1.document.close();}

else object1.innerHTML=aa

a+=b;if (a==38) b-=2;if (a==0) b+=2;xx=setTimeout("Effect()",10);}

//-->

</script>

====2、以下代碼放在HTML的<body></body>之間[適當(dāng)?shù)奈恢胅:

<body onload="checkBrowserForVersion4()" >

<div id="object1" style="position:absolute; visibility:show; left:181px; top:113px; z-index:2"></div>

更多信息請查看IT技術(shù)專欄

更多信息請查看腳本欄目
易賢網(wǎng)手機網(wǎng)站地址:淡入淡出的文字效果
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!

2025國考·省考課程試聽報名

  • 報班類型
  • 姓名
  • 手機號
  • 驗證碼
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 加入群交流 | 手機站點 | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號
云南網(wǎng)警備案專用圖標(biāo)
聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
咨詢QQ:526150442(9:00—18:00)版權(quán)所有:易賢網(wǎng)
云南網(wǎng)警報警專用圖標(biāo)