真是非常奇怪,BOBLOG的写BLOG编辑窗体有一个选项:提交时自动将内容复制到剪贴板,但是好像在我这里不能生效了。害得我丢失了几次BLOG,今天初步查找了一下。 <HTML> <HEAD> <SCRIPT LANGUAGE="JScript"> function doufucopy() { textRange = test.createTextRange(); textRange.execCommand("Copy"); } function doufupaste() { textRange = taCode.createTextRange(); textRange.execCommand("Paste"); } --> </SCRIPT> 要查找的IP地址:<input type=text ID="test"> <input type=button value="复制" onclick="doufucopy();"> <input type=button value="粘贴" onclick="doufucopy();"> 这段代码是可以生效的,无论是在IE还是GREENBROWSER。 而上传文件之后的复制链接也是可以生效的, function copyText(obj) { var rng = document.body.createTextRange(); rng.moveToElementText(obj); rng.scrollIntoView(); rng.select(); rng.execCommand("Copy"); rng.collapse(false); } 但是就是这个编辑窗口失效,看了一下源码: function cut_copy_paste(e, cmd, obj) { try { e.execCommand(cmd); } catch (e) { if (HTMLArea.is_gecko) { alert("Some revisions of Mozilla/Gecko do not support programatic " + "access to cut/copy/paste functions, for security reasons. " + "Your browser is one of them. Please use the standard key combinations:\n" + "CTRL-X for cut, CTRL-C for copy, CTRL-V for paste."); obj.element.style.display = "none"; } } }; 但是好像又不是这个问题,真是非常奇怪。 还有百度BAIDU快照也有两个奇怪的问题: 例如 您的查询字词都已标明如下:yippeesoft (点击查询词,可以跳到它在文中首次出现的位置) (百度和网页http://www.shengfang.org/的作者无关,不对其内容负责。百度快照谨为网络故障时之索引,不代表被搜索网站的即时页面。) 这个 谨 字按照上下意思应该是 仅 吧。 还有,如果网页的内容包含一些脚本HTML源码,那么快照就会显示HTML效果,例如 要查找的IP地址:<input type=text ID="test"> 就会显示出来一个文本框。 字体:大 中 小 |