动态加载js文件 document.createElement

时间:2006-10-14    点击:83   
复制代码 代码如下:

var Rash=true;
var msg="";

function norash()
{
if (confirm("确定要取消吗"))
Rash=false;
}

 function rashit()
{
setInterval('getrss()',Inttime);
}

function getrss()
{
        if (Rash==true)
        {
        head=document.getElementsByTagName('head').item(0);
        script=document.createElement('script');
        script.src='INCLUDE/AutoUpdate.asp';
        script.type='text/javascript';
        script.defer=true;
        void(head.appendChild(script));
        window.status=msg;
        }
}
rashit();
菜单效果
Using the TextRange Object
使用TextRange获取输入框中光标的位
JS代码格式化和语法着色V2
静态页面也可以实现预览 列表不同的显示方式 原创
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved