看到網誌描述內容文字都可以像打字機打出一排文字
這就是打字機訊息跑馬燈
現在我網頁描述就是使用這個
將以下語法內敘述修改成自己想敘述的文字
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>
這就是打字機訊息跑馬燈
現在我網頁描述就是使用這個
將以下語法內敘述修改成自己想敘述的文字
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>
文章標籤
全站熱搜

YOYO你好無意間逛到你的網站 覺得你做的真的很棒! 很想學你的跑馬燈 可否寄給我這跑馬燈的語法呢 謝謝你! 祝你:聖誕節快樂
DADA 謝謝您的祝賀 也祝您聖誕快樂
我想要這個語法 請寄給我好嗎 感恩^^
已寄出
我想要這款跑馬燈 請問可以寄給我嗎?謝謝! (可以感覺大大真的真的真的很喜歡約克夏耶!)
平凡 我已寄出囉~ 我喜歡狗 但最愛是小約 討厭不斷繁殖有基因問題的小小約販賣人
我也想要這個跑馬燈 可以請你寄給我嗎? 謝謝你唷^^
阿儒》 已寄出
*****
*****
可不可以寄給我呢? 謝先~
Aaron555》 已寄出
我逛到你的部落格,發現你又這個我夢寐以求的語法,請問可否寄給我呢?謝謝你
core》 已寄出
麻煩你可以記這個跑馬燈給我嗎?
阿群》 已寄出
您好! 終於讓我找到想要的跑馬燈了 麻煩您寄語法給我 謝謝您
jaronwu》 已寄出
可不可以寄這個語法給我.. 謝謝..
我也想要你得打字機....可以給我語法ㄇ?謝謝
我也想要你得打字機....可以給我語法ㄇ?謝謝