<SCRIPT> <!-- var message = new Array() message[0]="歡迎蒞臨U-CAR" message[1]="我有超炫的特效" message[2]="ABCDEFGHIJKLMNOPQR" message[3]="測試~測試~測試~測試"
var messageurl = new Array() messageurl[0]="http://home.kimo.com.tw/liangmi2/m" messageurl[1]="http://home.kimo.com.tw/liangmi2/m" messageurl[2]="http://home.kimo.com.tw/liangmi2/m" messageurl[3]="http://home.kimo.com.tw/liangmi2/m"
var target_url="_blank"
var textwidth=250 var textheight=100 var borderwidth=2
var font_size=3 var font_face="宋体" var font_color="green" var bg_ticker="fff0dd"
var x_finalpos=184 var y_finalpos=140
var x_slices=12
var pause=2000
var i_loop=0 var i_message=0 var width_slice=Math.ceil(textwidth/x_slices) var cliptop=0 var clipbottom=textheight var i_clipright=1 var content=""
function initiate() { content+="<table border="+borderwidth+" cellpadding='3' width="+textwidth+" height="+textheight+">" content+="<tr><td bgcolor="+bg_ticker+" align='center'>" content+="<a href="+message[i_message]+" target="+target_url+">" content+="<font face="+font_face+" size="+font_size+" color="+font_color+">" content+=message[i_message] content+="</font></a></td></tr></table>" if (document.all) { for (i=0;i<=x_slices;i++) { var thisinners=eval("s"+i) thisinners.innerHTML=content var thiss=eval("document.all.s"+i+".style") thiss.posLeft=x_finalpos thiss.posTop=y_finalpos } i_message++ openlamellar() } if (document.layers) { for (i=0;i<=x_slices;i++) { var thisinners=eval("document.s"+i+".document") thisinners.write(content) thisinners.close() var thiss=eval("document.s"+i) thiss.left=x_finalpos thiss.top=y_finalpos } i_message++ openlamellarNN() } }
function openlamellar() { clipleft=-width_slice clipright=0 if (i_clipright<=width_slice) { for (i=0;i<=x_slices;i++) { var thiss=eval("document.all.s"+i+".style") thiss.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" clipleft+=width_slice clipright=clipleft+i_clipright } i_clipright++ var timer=setTimeout("openlamellar()",20) } else { clearTimeout(timer) var timer=setTimeout("closelamellar()",2000) } }
function openlamellarNN() { clipleft=-width_slice clipright=0 if (i_clipright<=width_slice) { for (i=0;i<=x_slices;i++) { var thiss=eval("document.s"+i) thiss.clip.left=clipleft thiss.clip.right=clipright thiss.clip.top=cliptop thiss.clip.bottom=clipbottom clipleft+=width_slice clipright=clipleft+i_clipright } i_clipright++ var timer=setTimeout("openlamellarNN()",20) } else { clearTimeout(timer) var timer=setTimeout("closelamellarNN()",2000) } }
function closelamellar() { clipleft=-width_slice clipright=0 if (i_clipright>=0) { for (i=0;i<=x_slices;i++) { var thiss=eval("document.all.s"+i+".style") thiss.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")" clipleft+=width_slice clipright=clipleft+i_clipright } i_clipright-- var timer=setTimeout("closelamellar()",20)
} else { clearTimeout(timer) var timer=setTimeout("changeimage()",2000) } }
function closelamellarNN() { clipleft=-width_slice clipright=0 if (i_clipright>=0) { for (i=0;i<=x_slices;i++) { var thiss=eval("document.s"+i) thiss.clip.left=clipleft thiss.clip.right=clipright thiss.clip.top=cliptop thiss.clip.bottom=clipbottom clipleft+=width_slice clipright=clipleft+i_clipright } i_clipright-- var timer=setTimeout("closelamellarNN()",20)
} else { clearTimeout(timer) var timer=setTimeout("changeimageNN()",2000) } }
function changeimage() { content="" if (i_message>message.length-1) {i_message=0} content+="<table border="+borderwidth+" cellpadding='3' width="+textwidth+" height="+textheight+">" content+="<tr><td bgcolor="+bg_ticker+" align='center'>" content+="<a href="+message[i_message]+" target="+target_url+">" content+="<font face="+font_face+" size="+font_size+" color="+font_color+">" content+=message[i_message] content+="</font></a></td></tr></table>" for (i=0;i<=x_slices-1;i++) { var thisinners=eval("s"+i) thisinners.innerHTML=content } i_message++ openlamellar() }
function changeimageNN() { content="" if (i_message>message.length-1) {i_message=0} content+="<table border="+borderwidth+" cellpadding='3' width="+textwidth+" height="+textheight+">" content+="<tr><td bgcolor="+bg_ticker+" align='center'>" content+="<a href="+message[i_message]+" target="+target_url+">" content+="<font face="+font_face+" size="+font_size+" color="+font_color+">" content+=message[i_message] content+="</font></a></td></tr></table>" for (i=0;i<=x_slices-1;i++) { var thisinners=eval("document.s"+i+".document") thisinners.write(content) thisinners.close() } i_message++ openlamellarNN() }
共
55
則