smart-gallery.js怎么改时间

JavaScript04

smart-gallery.js怎么改时间,第1张

在我的SmartIncludeDemo网站中添加一个DLL文件夹,在 原文 的源码中复制

EcmaScript.NET.modified.dll、Iesi.Collections.dll、Kaliko.SmartInclude.dll、Yahoo.Yui.Compressor.NET20.dll!

<!DOCTYPE html>

<html>

<head>

    <meta charset="utf-8">

    <title>ECharts</title>

    <!-- 引入 echarts.js -->

    <script src="echarts.min.js"></script>

</head>

<body>

    <!-- 为ECharts准备一个具备大小(宽高)的Dom -->

    <div id="main" style="width: 600pxheight:400px"></div>

    <script type="text/javascript">            

        var myChart = echarts.init(document.getElementById('main'))

        //替换GALERY中代码

    </script>

</body>

</html>

将GALERY中代码替换到上述内容中应该就可以运行了

function prepareGallery(){

if(!document.getElementsByTageName) return false

if(!document.getElementById) return false

if (!document.getElementById ("imagegallery")) return false

var gallery=document.getElementById("imagegallery")

var links=gallery.getElementsByTagName("a")

for(var i=0i<links.lengthi++){

links[i].onclick=function(){

return showPic(this)? false:true

}

}

}

if(typeof(document.addEventListener) != "undefined"){

window.addEventListener("load",function(){prepareGallery()},false)

}else{

window.attachEvent("onload",function(){prepareGallery()},false)

}