看到網誌描述內容文字都可以像打字機打出一排文字
這就是打字機訊息跑馬燈
現在我網頁描述就是使用這個

將以下語法內敘述修改成自己想敘述的文字
1.紅色標示的請改成你敘述的文字
2.綠色標示改字大小
3.土黃色標示改字粗體或整個刪調呈現正常
4.藍色標示改寬度
5.紫色標示改字色
6.深橘色標示改框背景色
7.淺藍色標示表現速度1000表示1秒
8.可以再加敘述line[9]="........."   

<script language="JavaScript1.2">              
<!--             
//Secify scroller contents              
var line=new Array()              
line[1]="歡迎光臨約克夏琦琦&YOYO的口愛記事......"              
line[2]="教學部份....我儘量讓瀏覽的大大能了解怎麼貼語法及修改..."
line[3]="但我不喜歡直接複製我的文章就走......"
line[4]="連引用介紹都沒有......
line[5]="您一定也不喜歡這樣的情形......
line[6]="所以我鎖文章......" 
line[7]="有需要語法請直接迴響密秘留言mail......" 
line[8]="我會將語法mail給您......"      
//Specify font size for scoller              
var ts_fontsize="11px"              
              
//--Don't edit below this line              
              
var longestmessage=1              
for (i=1;i<line.length;i++){              
if (line[i].length>line[longestmessage].length)              
longestmessage=i              
}              
              
//Auto set scroller width              
var tscroller_width=line[longestmessage].length*3             
              
lines=line.length-1 //--Number of lines              
              
//if IE 4+ or NS6              
if (document.all||document.getElementById){              
document.write('<left> <form name="bannerform">')              
document.write('<input type="text" name="banner" size="60"' )                   
document.write('  style="background-color:#aa0000; color:#000000; font-weight:bold; font-family: tahoma; font-size: '+ts_fontsize+'; border: medium none" onfocus="blur()">')              
document.write('</form>')              
}              
              
temp=""              
nextchar=-1;              
nextline=1;              
cursor="\\"              
function animate(){              
if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines){              
nextline++;              
nextchar=-1;              
document.bannerform.banner.value=temp;              
temp="";              
setTimeout("nextstep()",2000)}              
else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){              
nextline=1;              
nextchar=-1;              
document.bannerform.banner.value=temp;              
temp="";              
setTimeout("nextstep()",2000)}              
else{              
nextstep()}}              
              
function nextstep(){              
              
if (cursor=="\\"){              
cursor="||"}              
else if (cursor=="||"){              
cursor="//"}              
else if (cursor=="//"){              
cursor="--"}              
else if (cursor=="--"){              
cursor="\\"}                          
              
nextchar++;              
temp+=line[nextline].charAt(nextchar);              
document.bannerform.banner.value=temp+cursor              
setTimeout("animate()",100)}              
              
//if IE 4+ or NS6              
if (document.all||document.getElementById)              
window.onload=animate              
// -->              
</script>
arrow
arrow
    全站熱搜

    haco 發表在 痞客邦 留言(13) 人氣()