点缀's Blog

用.NET点缀我们的生活
随笔 - 44, 评论 - 378, 引用 - 84

导航

工具

关于

脊柱是我们这种生命的重要特征,在此基础上我们才有了光芒的智慧和丰富的情感。上帝赋予我们自由的意志,同时也赋予我们选择的重担。

标签

每月存档

广告



访客

 

新的方法,通过JScript 来读取服务端文件的方法。

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<script language=jscript >
function init()
{
divBuildStamp.startDownload( "buildnumber.txt", onDownloadDone );
}
function onDownloadDone弯月
{
divBuildStamp.innerText = "Build: " + s;
}
</script>
<body onload="init()">
<SPAN ID="divBuildStamp" STYLE="behavior: url(#default#download); color: silver; font-size: 8pt;"></SPAN>
</body>
</html>


随贴广告(测试期)
相关文章

打印 | 张贴于 2003-10-29 08:37:00 | Tag:工作日记

留言反馈

re: Downloads the specified file 编辑
我是一个大学生啊
2006-10-18 09:21:00 | [匿名用户:徐开辉]
re: Downloads the specified file 编辑
应该是可以有 脚本与IFRAME 的。你可以试试
2004-08-12 08:07:00 | [匿名用户:点缀]
re: Downloads the specified file 编辑
用这种形式包含一个外部的HTML文件,但该HTML文件里就不能再有JAVASCRIPT代码或是一个IFRAME???请答复,谢谢!! ^*_*^
2004-08-10 17:42:00 | [匿名用户:dongdong]
re: Downloads the specified file 编辑
绝对路径是不可以用的!!
2004-08-06 12:04:00 | [匿名用户:点缀]
re: Downloads the specified file 编辑
用这种方法如果读取一个绝对路径的文件?
2004-08-06 09:27:00 | [匿名用户:dongdong]
回复: Downloads the specified file 编辑
function onDownloadDone ( s ) //有一个参数在这里的
2003-10-30 07:59:00 | [匿名用户:点缀]
回复: Downloads the specified file 编辑
divBuildStamp.innerText = "Build: " + s;
这里的S是。。。?
2003-10-30 01:56:00 | [匿名用户:活靶子的靶子]
回复: Downloads the specified file 编辑
怎么判断要下载的文件是否存在?
2003-10-29 13:01:00 | [匿名用户:Oliver]
博客主人设置本博客不允许匿名用户发表言论,请登录后再试

Powered by: Joycode MVC Blogger System