易截截图软件、单文件、免安装、纯绿色、仅160KB

Javascript之图片跑马灯

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>图片跑马灯</title>
</head>
<body>
    <div align="center" id="demo" style="overflow: hidden; height: 33px; width: 400px;
        border-width: 1px 1px 1px 1px; border-style: dotted dotted dotted dotted;">
        <table border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td id="demo1">
                    <img src="images/logo_1.gif"><img src="images/logo/flashempire.gif"><img src="images/logo.gif"><img
                        src="images/logo_1.gif"><img src="images/logo_1.gif"><img src="images/logo/flashempire.gif"><img
                            src="images/logo.gif"><img src="images/logo_1.gif"><img src="images/logo/flashempire.gif"></td>
                <td id="demo2">
                </td>
            </tr>
        </table>
    </div>
<script language="javascript" type="text/javascript">
<!--
var demo = document.getElementById("demo");
var demo1 = document.getElementB


相关文档:

JavaScript学习_Chrome与Internet Explorer

Chrome 拥有更快速的JavaScript;
编写如下小程序:
<html>
<script language = "javascript">

var sum = 0;
var start = new Date;
for(var i = 0; i < 1000001; i++){
sum+=i;
}
var stop = new Date;
document.write("从1到1000000的累加结果:" + sum + ";" + "<br/> ......

javascript数组操作

  <script language="javascript" type="text/javascript">
        function arrayTest() {
            //使用new Array()
            var array1 = ......

Javascript级联操作代码

 js.js
var xmlDoc;
function cleanData(getObj)
{
if(getObj)
{
getObj.options.length = 0;
}
}
function getxmlDoc()
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
......

JavaScript学习笔记(三)

1.把对象的所有引用都设置为null,可以强制性的废除对象(即通知存储单元收集程序销毁对象来释放内存)。这是个好习惯。
2.Array类即数组类,可以如下定义:
      var aColors=new Array();
      aColors[0]="blue";
      aC ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号