定义播放时间,可以定义事件
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>auto play</title>
<script type="text/javascript" src="../jquery-1.8.0.min.js" /></script>
<script type="text/javascript" src="../ul/color.js" ></script>
<style type="text/css" >
#div_show{width:300px; height:200px;}
</style>
<script type="text/javascript">
//数组的第一项为时长,其他项可自定义
data = [["10","a"],["5","b"],["10","c"],["5","d"],["1",""]];
$(document).ready(function(){
//设置触发事件
autoPlay.run = f