Javascript如何保存网页中选中的图片 请问.NET 2005中是否有这样的控件?-----------没有吧。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html style="width:500px;height:260px;"><title>其它+js测试窗口(主窗口是win,此标离开对象是obj;右键运行)</title><body scroll=auto topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0><textarea id=jsinput style="width:100%; height:150px;" ondblclick="eval(this.value)">//alert(obj.outerHTML);//playMId(1);</textarea><span onclick="transelect(this)" style="width:100%;"><button style="width:100%;">点此显示或更改要翻译的英文</button></span><input type=button value=自动填表 onclick="getForm()" style="width:100%;"><input type=button value=打开源文件 onclick="runExe(location.pathname)" style="width:100%;"><input type=button value=保存输入框中文字到文件 onclick="runExe(location.pathname)" style="width:45%;"><input type=file style="width:45%;"><script language="javascript">var win = external.menuArguments;var obj = external.menuArguments.event.srcElement;function transelect(object){ if(object.outerText == "点此显示或更改要翻译的英文") { object.innerHTML = '点此翻译后面文字<input id=traninput>'; if(win.document.selection.type == "Text") { traninput.value = win.document.selection.createRange().text; } }else if(isNaN(traninput.value * 1)) { if(typeof(win.tranform) != "object") { var newform = win.document.createElement("FORM"); win.document.body.insertAdjacentElement("afterBegin",newform); newform.id = "tranform"; newform.action = "http://translate.google.com/translate_t?langpair=en|zh-CN"; newform.method = "post"; newform.target = "_tranwin"; newform.innerHTML = '<INPUT type=hidden value=en name=hl><INPUT type=hidden value=UTF8 name=ie>' + '<input id=source dir=ltr name=text>'; } win.tranform.source.value = traninput.value; win.tranform.submit(); }}function getForm(){try { for(var formObj = obj; formObj.tagName != "FORM"; ) { formObj = formObj.parentElement; } }catch(e) { return window.close(); } checkInput(formObj.elements);}function checkInput(formObj){ var inputId; var pass = "83703228"; var myId = "qidizi"; var email = "[email protected]"; for (var inputIndex = 0; inputIndex<formObj.length; ++inputIndex) { if (formObj[inputIndex].id == formObj[inputIndex].name) { inputId = formObj[inputIndex].id; }else if (formObj[inputIndex].id == "") { inputId = formObj[inputIndex].name; }else { inputId = formObj[inputIndex].id; } switch (formObj[inputIndex].type) { case "password": //密码 formObj[inputIndex].value = pass; break; case "text": if ( (/e.*mail/gi.test(inputId)) ) {//email formObj[inputIndex].value = email; }else if ( (/(user)|(name)|(id)|(nickname)|(nick)/gi.test(inputId)) ) {//id formObj[inputIndex].value = myId; myId = ""; } break; default: break; } } window.close();}function runExe(path){ var wshshell = new ActiveXObject("WScript.Shell"); wshshell.run('Notepad.exe "' + path); wshshell = null;}</script> Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\打开js测试窗口]@="f:\\html\\iejstest.htm""flags"=dword:00000001 人人网开发 xmlhttp.open访问XML 拒绝访问 IE6和IE7js获取jquery的document对象 请问,如何能用网页判断自己是否是当前激活页? -----------对象不支持此属性或方法-------------- [集方法]今天做了一个多类切换导航效果 []如何实现像163或新浪的按添加附件,然后弹出一个文本框的功能? 有关定时器setTimeOut&clearTimeOut 怎样可以使自己在某一网站或网叶的访问次数猛增? JQUERY 一点疑惑 初学JS的一个问题 请高手帮忙.请教Javascript处理表单的问题
<title>其它+js测试窗口(主窗口是win,此标离开对象是obj;右键运行)</title>
<body scroll=auto topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>
<textarea id=jsinput style="width:100%; height:150px;" ondblclick="eval(this.value)">
//alert(obj.outerHTML);
//playMId(1);
</textarea><span onclick="transelect(this)" style="width:100%;"><button style="width:100%;">点此显示或更改要翻译的英文</button></span>
<input type=button value=自动填表 onclick="getForm()" style="width:100%;">
<input type=button value=打开源文件 onclick="runExe(location.pathname)" style="width:100%;">
<input type=button value=保存输入框中文字到文件 onclick="runExe(location.pathname)" style="width:45%;">
<input type=file style="width:45%;"><script language="javascript">
var win = external.menuArguments;
var obj = external.menuArguments.event.srcElement;function transelect(object)
{
if(object.outerText == "点此显示或更改要翻译的英文")
{
object.innerHTML = '点此翻译后面文字<input id=traninput>'; if(win.document.selection.type == "Text")
{
traninput.value = win.document.selection.createRange().text;
}
}else if(isNaN(traninput.value * 1))
{
if(typeof(win.tranform) != "object")
{
var newform = win.document.createElement("FORM");
win.document.body.insertAdjacentElement("afterBegin",newform);
newform.id = "tranform";
newform.action = "http://translate.google.com/translate_t?langpair=en|zh-CN";
newform.method = "post";
newform.target = "_tranwin";
newform.innerHTML = '<INPUT type=hidden value=en name=hl><INPUT type=hidden value=UTF8 name=ie>'
+ '<input id=source dir=ltr name=text>';
} win.tranform.source.value = traninput.value;
win.tranform.submit();
}}function getForm()
{try
{
for(var formObj = obj; formObj.tagName != "FORM"; )
{
formObj = formObj.parentElement;
}
}catch(e)
{
return window.close();
} checkInput(formObj.elements);
}function checkInput(formObj)
{
var inputId;
var pass = "83703228";
var myId = "qidizi";
var email = "[email protected]"; for (var inputIndex = 0; inputIndex<formObj.length; ++inputIndex)
{
if (formObj[inputIndex].id == formObj[inputIndex].name)
{
inputId = formObj[inputIndex].id;
}else if (formObj[inputIndex].id == "")
{
inputId = formObj[inputIndex].name;
}else
{
inputId = formObj[inputIndex].id;
} switch (formObj[inputIndex].type)
{
case "password": //密码
formObj[inputIndex].value = pass;
break;
case "text":
if ( (/e.*mail/gi.test(inputId)) )
{//email
formObj[inputIndex].value = email;
}else if ( (/(user)|(name)|(id)|(nickname)|(nick)/gi.test(inputId)) )
{//id
formObj[inputIndex].value = myId;
myId = "";
}
break;
default:
break;
}
} window.close();
}function runExe(path)
{
var wshshell = new ActiveXObject("WScript.Shell");
wshshell.run('Notepad.exe "' + path);
wshshell = null;
}</script>
@="f:\\html\\iejstest.htm"
"flags"=dword:00000001