随笔-179  评论-666  文章-29  trackbacks-0

< HTML >
< HEAD >
< TITLE >  New Document  </ TITLE >
< META  NAME ="Generator"  CONTENT ="EditPlus" >
< META  NAME ="Author"  CONTENT ="" >
< META  NAME ="Keywords"  CONTENT ="" >
< META  NAME ="Description"  CONTENT ="" >
</ HEAD >

< BODY >
< table  width ="728"  border ="0"  cellpadding ="0"  cellspacing ="0"  bgcolor ="#ffffff" >   
  
< tr >   
    
< td  align ="left" >  英文短句 </ td >   
   
</ tr >   
< tr >< td >   
< script >   

// 这里配置滚动字幕的属性  
var  scrollerwidth = 728   
var  scrollerheight = 30   
var  scrollerbgcolor = " #ffffff "   
var  scrollerbackground = " scrollerback.gif "   

// 修改下面的文字及文字所指向的链接  
var  messages = new  Array()  
messages[
00 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>What are you up to? 你在忙什么呢?</a></font> "   
messages[
01 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>Whatever you think is fine with me. 我随你。</a></font> "   
messages[
02 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>What are you talking about? 你在说什么?</a></font> "   
messages[
03 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>Where do you live? 你住在哪儿?</a></font> "   
messages[
04 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>I'm glad you enjoyed it. 你喜欢我就高兴。</a></font> "   
messages[
05 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>Absolutely. (用于答话)是这样;当然是;正是如此;绝对如此。</a></font> "   
messages[
06 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>Absolutely impossible! 绝对不可能的!</a></font> "   
messages[
07 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>I'll do my best. 我将会尽我最大努力。</a></font> "   
messages[
08 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>It won't work. 行不通。</a></font> "   
messages[
09 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>Maybe it will work. 也许这个办法会有效。</a></font> "   
messages[
10 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>How long will it take me to get there? 到那儿要多长时间?</a></font> "   
messages[
11 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>I'll see what I can do. 我看一看能怎么办。</a></font> "   
messages[
12 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>My phone was out of order. 我的电话坏了。</a></font> "   
messages[
13 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>Let's go visit them. 让我们去拜访他们吧。</a></font> "   
messages[
14 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>Do you have some change? 你有零钱吗?</a></font> "   
messages[
15 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>You deserve it. 这是你应得的。 </a></font> "   
messages[
16 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>Do you have any hobbies? 你有什么爱好吗?</a></font> "   
messages[
17 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>Do you have a room available? 你们有空房间吗?</a></font> "   
messages[
18 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>You are just saying that. 你只是说说而已。</a></font> "   
messages[
19 ] = " <font face='Arial'><a href='http://www.zlfamily.com'>What's your job? 你做什么工作?</a></font> "   

// /////不要修改下面的内容///////////////////////  

if  (messages.length > 1 )  
i
= 2   
else   
i
= 0   

function  move1(whichlayer) {  
tlayer
= eval(whichlayer)  
if  (tlayer.top > 0 && tlayer.top <= 5 ) {  
tlayer.top
= 0   
setTimeout(
" move1(tlayer) " , 6000 )  
setTimeout(
" move2(document.main.document.second) " , 6000 )  
return   
}
  
if  (tlayer.top >= tlayer.document.height *- 1 ) {  
tlayer.top
-= 5   
setTimeout(
" move1(tlayer) " , 200 )  
}
  
else {  
tlayer.top
= scrollerheight  
tlayer.document.write(messages[i])  
tlayer.document.close()  
if  (i == messages.length - 1 )  
i
= 0   
else   
i
++   
}
  
}


function  move2(whichlayer) {  
tlayer2
= eval(whichlayer)  
if  (tlayer2.top > 0 && tlayer2.top <= 5 ) {  
tlayer2.top
= 0   
setTimeout(
" move2(tlayer2) " , 6000 )  
setTimeout(
" move1(document.main.document.first) " , 6000 )  
return   
}
  
if  (tlayer2.top >= tlayer2.document.height *- 1 ) {  
tlayer2.top
-= 5   
setTimeout(
" move2(tlayer2) " , 200 )  
}
  
else {  
tlayer2.top
= scrollerheight  
tlayer2.document.write(messages[i])  
tlayer2.document.close()  
if  (i == messages.length - 1 )  
i
= 0   
else   
i
++   
}
  
}
  

function  move3(whichdiv) {  
tdiv
= eval(whichdiv)  
if  (tdiv.style.pixelTop > 0 && tdiv.style.pixelTop <= 5 ) {  
tdiv.style.pixelTop
= 0   
setTimeout(
" move3(tdiv) " , 6000 )  
setTimeout(
" move4(second2) " , 6000 )  
return   
}
  
if  (tdiv.style.pixelTop >= tdiv.offsetHeight *- 1 ) {  
tdiv.style.pixelTop
-= 5   
setTimeout(
" move3(tdiv) " , 200 )  
}
  
else {  
tdiv.style.pixelTop
= scrollerheight  
tdiv.innerHTML
= messages[i]  
if  (i == messages.length - 1 )  
i
= 0   
else   
i
++   
}
  
}
  

function  move4(whichdiv) {  
tdiv2
= eval(whichdiv)  
if  (tdiv2.style.pixelTop > 0 && tdiv2.style.pixelTop <= 5 ) {  
tdiv2.style.pixelTop
= 0   
setTimeout(
" move4(tdiv2) " , 6000 )  
setTimeout(
" move3(first2) " , 6000 )  
return   
}
  
if  (tdiv2.style.pixelTop >= tdiv2.offsetHeight *- 1 ) {  
tdiv2.style.pixelTop
-= 5   
setTimeout(
" move4(second2) " , 200 )  
}
  
else {  
tdiv2.style.pixelTop
= scrollerheight  
tdiv2.innerHTML
= messages[i]  
if  (i == messages.length - 1 )  
i
= 0   
else   
i
++   
}
  
}
  

function  startscroll() {  
if  (document.all) {  
move3(first2)  
second2.style.top
= scrollerheight  
second2.style.visibility
= 'visible'  
}
  
else   if  (document.layers) {  
document.main.visibility
= 'show'  
move1(document.main.document.first)  
document.main.document.second.top
= scrollerheight + 5   
document.main.document.second.visibility
= 'show'  
}
  
}
  

window.onload
= startscroll  

</ script >   
< ilayer  id ="main"  width =&{scrollerwidth};  height =&{scrollerheight};  bgColor =&{scrollerbgcolor};  background =&{scrollerbackground};  visibility =hide >   
< layer  id ="first"  top =1  width =&{scrollerwidth}; >   
< script >   
if  (document.layers)  
document.write(messages[
0 ])  
</ script >   
</ layer >< layer  id ="second"  top =0  width =&{scrollerwidth};  visibility =hide >   
< script >   
if  (document.layers)  
document.write(messages[
1 ])  
</ script >   
</ layer ></ ilayer >

< script >   
if  (document.all) {  
document.writeln('
< span id = " main2 "  style = " position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+') " > ')  
document.writeln('
< div style = " position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:5;top:0 " > ')  
document.writeln('
< div id = " first2 "  style = " position:absolute;width:'+scrollerwidth+';left:5;top:1; " > ')  
document.write(messages[
0 ])  
document.writeln('
</ div > ')  
document.writeln('
< div id = " second2 "  style = " position:absolute;width:'+scrollerwidth+';left:5;top:0;visibility:hidden " > ')  
document.write(messages[
1 ])  
document.writeln('
</ div > ')  
document.writeln('
</ div > ')  
document.writeln('
</ span > ')  
}
  
</ script >   
</ td ></ tr >   
</ table >  

</ BODY >
</ HTML >
posted on 2006-10-18 10:47 Alpha 阅读(3055) 评论(0)  编辑  收藏 所属分类: JavaScript

只有注册用户登录后才能发表评论。


网站导航: