佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 649|回复: 0

xml script read txt file?

[复制链接]
发表于 29-4-2006 05:02 PM | 显示全部楼层 |阅读模式
嗨各位大大,以下code是forum抄下来的
http://www.codingforums.com/showthread.php?t=647

假如我要读取在我电脑上的 (C:\Documents and Settings\jeng\Desktop\king.html)的file content, 我必须修改以下那条code

<html xmlns:behave_yaself>
<head>
<title>Behaviors</title>
<script type="text/javascript">
function downloadEnd(e) {
        document.all.download.value=e;
}
</script>
<style type="text/css">
textarea {
        background-color: #000;
        color: #FFF;
        scrollbar-face-color: #FFF;
}
</style>
</head>
<body>
<behave_yaself:download id="currFile" style="behavior:url(#default#download);" />
Click <a href="javascript:document.getElementById('currFile').startDownload(location.href,downloadEnd)">here</a>
to start the download.
<br />When the download is finished, the text will be displayed in the <b>TEXTAREA</b> below.
<p><textarea rows="20" cols="40" id="download"></textarea></p>
</body>
</html>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 10-3-2025 05:32 AM , Processed in 1.313865 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表