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


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


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

<script language="JavaScript">
<!--
   var speed = 30
   var pause = 5000
   var bannerRunning = false
   var ar = new Array()
   ar[0] = "我在這裡我在這裡!"
   ar[1] = "看到了沒......^_^"
   ar[2] = "這個跑馬燈的每個字是慢慢拼湊出來的喔,"
   ar[3] = "這種的可不常見吧!"
   var message = 0
   var state = ""
   clearState()
  function stopBanner() { 
  if (bannerRunning)  
  clearTimeout(timerID) 
  bannerRunning = false}
  function startBanner() { 
  stopBanner() 
  showBanner()}
  function clearState() { 
  state = "" 
  for (var i = 0; i < ar[message].length; ++i) { 
 state += "0" }}
  function showBanner() { 
  if (getString()) {  
  message++  
  if (ar.length <= message)  
 message = 0  
 clearState()  
 timerID = setTimeout("showBanner()", pause) 
 bannerRunning = true } else { 
        var str = "" 
 for (var j = 0; j < state.length; ++j) {  
 str += (state.charAt(j) == "1") ? ar[message].charAt(j) : "     " 
 }  
 window.status = str  
 timerID = setTimeout("showBanner()", speed) 
      bannerRunning = true }}
     function getString() { 
   var full = true 
   for (var j = 0; j < state.length; ++j) {  
   if (state.charAt(j) == 0)  
 full = false } 
      if (full)  
      return true 
      while (1) { 
    var num = getRandom(ar[message].length)  
    if (state.charAt(num) == "0")  
 break } 
   state = state.substring(0, num) + "1" + state.substring(num + 1, state.length) 
   return false}
   function getRandom(max) { 
    return Math.round((max - 1) * Math.random())}
-->
</script>


var speed = 30 中修改跑馬燈的速度
var pause = 5000 中修改訊息間停留的時間(每1秒=1000)
ar[0] = "我在這裡我在這裡!" ar[1] = "看到了沒......^_^" ar[2] = "這個跑馬燈的每個字是慢慢拼湊出來的喔," ar[3] = "這種的可不常見吧!" 中修改要顯示的文字


將以下程式碼複製,貼在插入<body >標籤裡面。

 onLoad="startBanner()"

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

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


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

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

<script language="JavaScript">
<!--
var showtxt="我在這裡我在這裡!看到了沒......^_^ 這個跑馬燈的字會兩個字兩個字顯示......最後還會閃爍喔!";
var txt_len=showtxt.length;
var width=256;
var count=0;
var left=0;
var bub=0;
function scroll() {
  var txt="";
  var scroller="";
  if (bub>0) {
    if ((bub%2)==1) {
      window.status="";
    } else {
      window.status=showtxt;
    }
    bub++;
    if (bub==8) bub=0;
  } else {
    if (count>0) {
      scroller=showtxt.substring(0,count);
      txt=showtxt.substring(count,count+2);
    } else {
      txt=showtxt.substring(0,2);
    }
    if ((width-left)>2) {
      left+=(width-left)/2;
    } else { left++; }
    for (var i=0; i<(width-left); i++) {
      scroller=scroller+" ";
    }
    if (left>=width) {
      count+=2;
      left=count*2;
    }
    if (count>=txt_len) {
      count=0;
      bub=1;
    }
    scroller=scroller+txt;
    window.status=scroller;
  }
  setTimeout("scroll()",128);
}
-->
</script>

var showtxt="我在這裡我在這裡!看到了沒......^_^ 這個跑馬燈的字會兩個字兩個字顯示......最後還會閃爍喔!"; 中修改要顯示的文字

將以下程式碼複製,貼在插入<body >標籤裡面。

 onLoad="scroll()"

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

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


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

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

<script language="JavaScript">
<!--
var yourwords = "我在這裡我在這裡!看到了沒......^_^ 會閃爍喔!";
var speed = 500;
var control = 1;
function flash()
{
  if (control == 1)
    {
      window.status=yourwords;
      control=0;
    } 
  else
    {
      window.status="";
      control=1;
    }
  setTimeout("flash();",speed);
}
-->
</script>


var yourwords = "我在這裡我在這裡!看到了沒......^_^ 會閃爍喔!"; 中修改要顯示的文字
var speed = 500; 中修改閃爍的速度(每1秒=1000)
 



將以下程式碼複製,貼在插入<body >標籤裡面。

 onLoad="flash();"

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

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


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

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

<script language="JavaScript">
<!--
var speed = 100
var pause = 2000
var timerID = null
var bannerRunning = false
var ar = new Array()
ar[0] = "這個跑馬燈很特別喔"
ar[1] = "不但有打字機效果"
ar[2] = "還可以秀出好幾行不同的文字"
ar[3] = "很好玩吧"
var currentMessage = 0
var offset = 0
function stopBanner() {
 if (bannerRunning)
  clearTimeout(timerID)
 bannerRunning = false
}
function startBanner() {
 stopBanner()
 showBanner()
}
function showBanner() {
 var text = ar[currentMessage]
 if (offset < text.length) {
  if (text.charAt(offset) == " ")
   offset++   
  var partialMessage = text.substring(0, offset + 1)
  window.status = partialMessage
  offset++ // IE sometimes has trouble with "++offset"
  timerID = setTimeout("showBanner()", speed)
  bannerRunning = true
 } else {
  offset = 0
  currentMessage++
  if (currentMessage == ar.length)
   currentMessage = 0
  timerID = setTimeout("showBanner()", pause)
  bannerRunning = true
 }
}
-->
</script>


var speed = 100 中修改跑馬燈的速度
var pause = 2000 中修改訊息間隔的時間(每1秒=1000)
ar[0] = "這個跑馬燈很特別喔" ar[1] = "不但有打字機效果" ar[2] = "還可以秀出好幾行不同的文字" ar[3] = "很好玩吧" 中修改要顯示的文字

 

 

 

將以下程式碼複製,貼在插入<body >標籤裡面。

 onLoad="startBanner()"

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

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


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

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

<script language="JavaScript">
<!--
var msg="我在這裡我在這裡!看到了沒......^_^ 這是打字式+捲動式的跑馬燈,除了打字效果外,還會捲動喔!";
var interval = 100;
var spacelen = 120;
var space10=" ";
var seq=0;
function Scroll() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) {
seq = spacelen;
window.setTimeout("Scroll2();", interval );
}
else
window.setTimeout("Scroll();", interval );
}
function Scroll2() {
var out="";
for (i=1; i<=spacelen/space10.length; i++) out += space10;
out = out + msg;
len=out.length;
window.status=out.substring(seq, len);
seq++;
if ( seq >= len ) { seq = 0; };
window.setTimeout("Scroll2();", interval );
}
-->
</script>


var msg="我在這裡我在這裡!看到了沒......^_^ 這是打字式+捲動式的跑馬燈,除了打字效果外,還會捲動喔!"; 中修改要顯示的文字
var interval = 100; 中修改跑馬燈的速度
var spacelen = 120; 中修改跑馬燈文字再次顯示時,出現在右邊的距離



將以下程式碼複製,貼在插入<body >標籤裡面。

 onLoad="Scroll();"

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

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


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

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

<script language="JavaScript">
<!--
var msg="我在這裡我在這裡!看到了沒......^_^ 這是個打字式的跑馬燈......不錯喔!";
var interval = 250;
seq = 0;
function Scroll() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) { seq = 0 };
window.setTimeout("Scroll();", interval );
}
-->
</script>

var msg="我在這裡我在這裡!看到了沒......^_^ 這是個打字式的跑馬燈......不錯喔!"; 中修改要顯示的文字
var interval = 250; 中修改跑馬燈的速度


將以下程式碼複製,貼在插入<body >標籤裡面。


 onLoad="Scroll();"

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

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


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

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

<script language="JavaScript">
<!--
function scroll(seed)
{
 var m1 = "我在這裡我在這裡!"
 var m2 = "看到了沒......^_^"
 var msg=m1+m2;
 var out = " ";
 var c = 1;
 if (seed > 100) {
 seed--;
 var cmd="scroll(" + seed + ")";
 timerTwo=window.setTimeout(cmd,100);
 }
 else if (seed <= 100 && seed > 0) {
 for (c=0 ; c < seed ; c++) {
 out+=" ";
 }
 out+=msg;
 seed--;
 var cmd="scroll(" + seed + ")";
 window.status=out;
 timerTwo=window.setTimeout(cmd,100);
 }  else if (seed <= 0) {
 if (-seed < msg.length) {
 out+=msg.substring(-seed,msg.length);
 seed--;
 var cmd="scroll(" + seed + ")";
 window.status=out;
 timerTwo=window.setTimeout(cmd,100);
 }
 else {
 window.status=" ";
 timerTwo=window.setTimeout("scroll(100)",7);
 }
 }
}
timerONE=window.setTimeout('scroll(100)',50);
-->
</script>


var m1 = "我在這裡我在這裡!"var m2 = "看到了沒......^_^" 中修改要顯示的文字

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

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


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

將以下程式碼複製,貼在插入<body >標籤裡面。
 
onLoad="init()"



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

<script language="JavaScript">
<!--
bd=new Array();
bd[0]=" 歡迎光臨  "
bd[1]=" 本站網址 http://blog.pixnet.net/como0925"
bd[2]=" 本站還在擴充中 "
bd[3]=" 每天都會有不同的新鮮內容 "
a=0
i=0
rt=false
on=false
f=0
function change() {
msg=bd[a]
msgl=bd[a].length
if(i<msgl) {
i++
if(!rt) document.title='§§'+msg.substring(msgl-i,msgl)+'§§'
else document.title='§§'+msg.substring(i,msgl)+'§§'
setTimeout("change()",2)
}else {
i=0
if(rt==false) {
rt=true
setTimeout("change()",5000)
}
else {
rt=false
if(++a>3)a=0
setTimeout("change()",1000)
}
}
}
window.onload=change
-->
</script>


if(++a>3)a=0 中修改訊息的數量(真實數量-1)
setTimeout("change()",5000) 中修改開啟後停留的時間(每1秒=1000)
setTimeout("change()",1000) 中修改合併後停留的時間(每1秒=1000)

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

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


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


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

<script language="JavaScript1.2">
<!--
var message="歡迎光臨 紫蓮之翼"
var message=message+" "
i="0"
var temptitle=""
var speed="250"

function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i)
temptitle=temptitle+message.charAt(i)
i++
if(i==message.length)
{
i="0"
temptitle=""
}
setTimeout("titler()",speed)
}
window.onload=titler
-->
</script>


var message="歡迎光臨 爪哇島" 中修改跑馬燈的文字
var speed="250" 中修改跑馬燈的速度

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

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


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

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

<script language="JavaScript">
<!--
title_tmp1=document.title
if (title_tmp1.indexOf(">>")!=-1){
title_tmp2=title_tmp1.split(">>");
title_last=" —> "+title_tmp2[1];
title_last=title_last + " —> " + title_tmp2[2];
}else{
if (title_tmp1.indexOf("——")!=-1){
title_tmp2=title_tmp1.split("——");
title_last=" —> "+title_tmp2[1];
if (title_last==" —> "){title_last=" —> "};
if (title_last==" —> "){title_last=" —> "};
}
}
title_new="
紫蓮の翼"
step=0
function flash_title()
{
step++
if (step==9) {step=1}
if (step==1) {document.title='★☆☆☆☆'+title_new+'☆☆☆☆★'}
if (step==2) {document.title='☆★☆☆☆'+title_new+'☆☆☆★☆'}
if (step==3) {document.title='☆☆★☆☆'+title_new+'☆☆★☆☆'}
if (step==4) {document.title='☆☆☆★☆'+title_new+'☆★☆☆☆'}
if (step==5) {document.title='☆☆☆☆★'+title_new+'★☆☆☆☆'}
if (step==6) {document.title='☆☆☆★☆'+title_new+'☆★☆☆☆'}
if (step==7) {document.title='☆☆★☆☆'+title_new+'☆☆★☆☆'}
if (step==8) {document.title='☆★☆☆☆'+title_new+'☆☆☆★☆'}
setTimeout("flash_title()",500);
}
flash_title()
-->
</script>

title_new="紫蓮の翼" 中修改跑馬燈的文字
setTimeout("flash_title()",500); 中修改跑馬燈的速度

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