两种字幕的效果(很有用)

发表于:2007-06-30来源:作者:点击数: 标签:
script language= vb script src=infoshow.vbs/script script language=vbscript src=friendshow.vbs/script 用来调用这两个.vbs文件, table width=100% border=0 cellspacing=0 cellpadding=2tr td height=25 align=center valign=bottom id=infonbsp;/td /
<script language="vbscript" src="infoshow.vbs"></script>
<script language="vbscript" src="friendshow.vbs"></script>
用来调用这两个.vbs文件,

<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr>
<td height="25" align="center" valign="bottom" id="info">&nbsp;</td>
</tr></table>

<table width="100%" border="0" cellspacing="1" cellpadding="2" class=bdall><tr>
<td height="15" align="center" id="friend" ></td>
</tr></table>


+++++++ friendshow.vbs ++++++++++++++++++++++++++++++++++++
‘’显示友情连接
arf=0
dim inff(4)
inff(0)="<a href=‘’http://www.chinausbiz.com‘’ target=‘’_blank‘’>纽约中美商务网</a> | " & _
"<a href=‘’../ad/luck.asp‘’ target=‘’_blank‘’>保定乐凯光学电子有限公司</a> | " & _
"<a href=‘’http://www.chinamet.com/‘’ target=‘’_blank‘’>中国机电贸易网</a> | " & _
"<a href=‘’http://www.ccct.org.cn/‘’ target=‘’_blank‘’>中国纺织品进出口商会</a>"
inff(1)="<a href=‘’http://www.icecf.com/‘’ target=‘’_blank‘’>中国出口商品交易会</a> | " & _
"<a href=‘’http://www.chinaim-export.com/cn/‘’ target=‘’_blank‘’>中华进出口在线</a> | " & _
"<a href=‘’http://www.cn.bizipoint.com/gb/index.php3‘’ target=‘’_blank‘’>中国电子商会</a> | " & _
"<a href=‘’http://www.chinafiw.com/e_m/site/mysystem154.asp‘’ target=‘’_blank‘’>中国外资网</a> | " & _
"<a href=‘’http://www.cctvcr.com.cn‘’ target=‘’_blank‘’>央视国际</a> | " & _
"<a href=‘’http://www.mc-ccpit.com‘’ target=‘’_blank‘’>中国冶金贸易会 </a>"
inff(2)="<a href=‘’http://www.base56.com.cn‘’ target=‘’_blank‘’>中国物流基地联盟网</a> | " & _
"<a href=‘’http://www.clii.com‘’ target=‘’_blank‘’>中国轻工业联合会</a> | " & _
"<a href=‘’http://www.china-retailers.com/xr/dahui/‘’ target=‘’_blank‘’>2003中国城市商业服务业对外开放与利用外资大会</a>"
inff(3)="<href=‘’http://www.chinabidding.com/pub/other/consultcenter/index.jsp‘’ target=‘’_blank‘’>中国国际招标网采购咨询站点</a> | " & _
"<a href=‘’http://www.bjtzhwjmw.gov.cn‘’ target=‘’_blank‘’>北京市通州区对外经济贸易委员会</a> | " & _
"<a href=‘’http://www.soufun.com‘’ target=‘’_blank‘’>房地产门户-搜房网</a>"
inff(4)="<a href=‘’http://www.agriffchina.com/‘’ target=‘’_blank‘’>中国食品土畜进出口商会</a> | " & _
"<a href=‘’http://www.chinaip.net‘’ target=‘’_blank‘’>中国投资项目网</a> | " & _
"<a href=‘’http://www.oil.hc360.com‘’ target=‘’_blank‘’>hc360慧聪网石油 </a>"

function friend_show()
friend.innerhtml=inff(arf)
arf=arf+1
if arf>ubound(inff) then arf=0
settimeout "friend_show()",5000
end function
friend_show

+++++++ infoshow.vbs +++++++++++++++++++++++++++++++++++++++++
‘’显示每日提示
op=0
flag=0
ar=0
dim inf(3)
inf(0)="<font color=‘’#FF0000‘’>服务热线:020-67665548</font>"
inf(1)="<font color=‘’#0099FF‘’>您的关注就是我们的动力。</font>"
inf(2)="<font color=‘’#FF9900‘’>欢迎加入手机贸易网会员服务。</font>"
inf(3)=""
function info_show()
if op=0 then
info.innerhtml=inf(ar)
ar=ar+1
if ar>ubound(inf) then ar=0
end if
info.style.filter="alpha(opacity=" & op & ")"
if flag=0 then op=op+20
if op>=300 then flag=100
if flag=100 then op=op-20
if op<=0 then flag=0
settimeout "info_show()",200
end function
info_show


原文转自:http://www.ltesting.net