response.write "<TEXTAREA style='OVERFLOW: visible;border:0px;'>"
response.write FSOFileRead("a/a.txt")
response.write"</TEXTAREA>"
当你的文件里面包含html标签的时候,这种也适合!
<textarea id="textarea1" style='height:100%;width:100%;OVERFLOW: visible;border:0px;'>
</textarea>
IE屏幕信息.htm
<body><script>
var strInfo="";
strInfo+="/r/n网页可见区域宽:"+document.body.clientWidth;
strInfo+="/r/n网页可见区域高:"+document.body.clientHeight;
strInfo+="/r/n网页可见区域宽:"+document.body.offsetWidth+"(包括边线的宽)";
strInfo+="/r/n网页可见区域高:"+document.body.offsetHeight+"(包括边线的宽)";
strInfo+="/r/n网页正文全文宽:"+document.body.scrollWidth;
strInfo+="/r/n网页正文全文高:"+document.body.scrollHeight;
strInfo+="/r/n网页被卷去的高:"+document.body.scrollTop;
strInfo+="/r/n网页被卷去的左:"+document.body.scrollLeft;
strInfo+="/r/n网页正文部分上:"+window.screenTop;
strInfo+="/r/n网页正文部分左:"+window.screenLeft;
strInfo+="/r/n屏幕分辨率的高:"+window.screen.height;
strInfo+="/r/n屏幕分辨率的宽:"+window.screen.width;
strInfo+="/r/n屏幕可用工作区高度:"+window.screen.availHeight;
strInfo+="/r/n屏幕可用工作区宽度:"+window.screen.availWidth;
window.confirm(strInfo);
</script>
博客给出了包含HTML标签的文件处理代码,使用response.write输出文本域内容。还展示了在IE中获取屏幕信息的代码,包括网页可见区域、正文全文、被卷去部分的宽高,以及屏幕分辨率和可用工作区尺寸等信息。
3568

被折叠的 条评论
为什么被折叠?



