var fso, f, r
   var ForReading = 1, ForWriting = 2;
   fso = new ActiveXObject("Scripting.FileSystemObject")
   f = fso.OpenTextFile("c:\\testfile.txt", ForWriting, true)
   f.Write("Hello world!");
   f.Close();
   f = fso.OpenTextFile("c:\\testfile.txt", ForReading);
   r = f.ReadLine();
document.body.style.cursor="url(xxx.cur)"

解决方案 »

  1.   

    <body onload="document.body.style.cursor='url(http://xml.sz.luohuedu.net/xml/images/meng.cur)'">
      

  2.   

    这样读写文件,在本地是可以执行的(.hta文件&etc),
    但在.htm文件中会出现安全警告,除非你的IE安全等级设为低。据说有方法可以更改安全警告的文字内容不要写恶意脚本哦!
      

  3.   

    Yashmak(双层面纱) 请教怎么样才能不出示警告呢,我只是想做一个计数器而已