当前位置: 首页 > 图文教程 > 网络编程 > Javascript > 文字幻灯片

Javascript
form中限制文本字节数js代码
use jscript with List Proxy Server Information
use jscript List Installed Software
List Installed Software Features
List Information About the Binary Files Used by an Application
List the Codec Files on a Computer
List the UTC Time on a Computer
List Installed Hot Fixes
excel操作之Add Data to a Spreadsheet Cell
Add Formatted Data to a Spreadsheet
Apply an AutoFormat to an Excel Spreadsheet
JavaScript语法着色引擎(demo及打包文件下载)
类之Prototype.js学习
一款JavaScript压缩工具:X2JSCompactor
iis6+javascript Add an Extension File
jscript之Open an Excel Spreadsheet
jscript之Read an Excel Spreadsheet
jscript之List Excel Color Values
去除图像或链接黑眼圈的两种方法总结
Add a Formatted Table to a Word Document

Javascript 中的 文字幻灯片


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 241 ::
收藏到网摘: n/a

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>51du.cn-代码演示专用页面</title>
<style type="text/css">
.trans {filter:revealTrans(Transition=12,Duration=2)}
</style>
</head>
<body>
<script language="JavaScript">
Text = new Array(
"<a href='http://www.51du.cn' target='_blank' class='cr4'>班级留言“说”出口,校友录开通语音留言服务</a>",
"<a href='http://www.51du.cn' class='cr4'>星级会员新体验,享受无广告的清新校友录</a>",
"<a href='http://www.51du.cn' target='_blank' class='cr4'>星级会员免费多彩留言,表情,贴图,个性无限...</a>",
"<a href='http://www.51du.cn' target='_blank' class='cr4'>星级会员免费留言下载,导出更多昔日记忆</a>",
"<a href='http://www.51du.cn' target='_blank' class='cr4'>在5千万用户中脱颖而出,我是星级会员</a>"
)
var IDX= -1;
function playAd() {
if (IDX==Text.length-1) {
IDX=0;
} else {
IDX++;
}
var prefix = "";
divText.filters[0].apply();
divText.innerHTML = prefix + Text[IDX];
divText.filters[0].play();
to = setTimeout("playAd()",6000);
}
</script>
<table width=453 border=0 cellspacing=3 cellpadding=0>
<tr bgcolor=CCF4B9>
<td height=24 bgcolor=CCF4B9 id=divText class=trans></td>
</tr>
<script>playAd()</script>
</table>
</body>
</html>