語法展示::  http://home.graffiti.net/dffdsdsf/


請用IE6.0或更新版本觀看語法特效展示

將以下程式碼複製,貼在<body>及</body>標籤之間。


<div id="splashcontainer" style="position:absolute;width:350"></div>
<layer id="splashcontainerns" width=450></layer>
<script language="JavaScript">
<!--
var intervals=3000
var targetdestination="174-3.htm"
var splashmessage=new Array()
var openingtags='<font face="細明體" color="#FF0000" size="3">'
splashmessage[0]="這是一個很不錯的特效喔"
splashmessage[1]="在開啟網頁之前"
splashmessage[2]="會先來一段話"
splashmessage[3]="非常適合用於首頁"
splashmessage[4]="介紹自己的網站"
var closingtags='</font>'
var i=0
function displaysplash_ie(){
if (i<splashmessage.length){
sc_ie.style.visibility="hidden"
sc_ie.innerHTML='<b><center>'+openingtags+splashmessage[i]+closingtags+'</center></b>'
sc_ie.style.top=document.body.scrollTop+document.body.clientHeight/2-sc_ie.offsetHeight/2
sc_ie.style.visibility="visible"
i++
}
else{
window.location=targetdestination
return
}
setTimeout("displaysplash_ie()",intervals)
}
function displaysplash_ns(){
if (i<splashmessage.length){
sc_ns.visibility="hide"
sc_ns.document.write('<b>'+openingtags+splashmessage[i]+closingtags+'</b>')
sc_ns.document.close()
sc_ns.left=pageXOffset+window.innerWidth/2-sc_ns.document.width/2
sc_ns.top=pageYOffset+window.innerHeight/2-sc_ns.document.height/2
sc_ns.visibility="show"
i++
}
else{
window.location=targetdestination
return
}
setTimeout("displaysplash_ns()",intervals)
}
function positionsplashcontainer(){
if (document.all){
sc_ie=document.all.splashcontainer
sc_ie.style.left=document.body.scrollLeft+document.body.clientWidth/2-sc_ie.offsetWidth/2
sc_ie.style.top=document.body.scrollTop+document.body.clientHeight/2-sc_ie.offsetHeight/2
displaysplash_ie()
}
else if (document.layers){
sc_ns=document.splashcontainerns
sc_ns.left=pageXOffset+window.innerWidth/2-sc_ns.document.width/2
sc_ns.top=pageYOffset+window.innerHeight/2-sc_ns.document.height/2
sc_ns.visibility="show"
displaysplash_ns()
}
else
window.location=targetdestination
}
window.onload=positionsplashcontainer
-->
</script>

var intervals=3000 中修改文字間隔的時間(每1秒=1000)
var targetdestination="174-3.htm" 中修改真正要前往的網頁
<font face="細明體" color="#FF0000" size="3"> 中修改文字的字體、顏色、大小
自行修改想秀的文字


arrow
arrow
    全站熱搜

    eeredqq 發表在 痞客邦 留言(0) 人氣()