Help.Web/editor/scripts/search2.htm

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="style/editor.css" rel="stylesheet" type="text/css">
<script>
	var sLangDir=dialogArguments.sLangDir;
	document.write("<scr"+"ipt src='language/"+sLangDir+"/search.js'></scr"+"ipt>");
</script>
<script>writeTitle()</script>
<script>
function bodyOnLoad()
	{
	var oEditor=dialogArguments.idSource;
	oEditor.focus()
	inpSearch.focus()
	}
function doSearch()
	{	
	var oEditor=dialogArguments.idSource;
	var oSel=oEditor.document.selection.createRange();	
	
	if(chkMatchCase.checked && chkMatchWord.checked) sType=6;
	else if(chkMatchCase.checked) sType=4;
	else if(chkMatchWord.checked) sType=2;
	else sType=0;
	oSel.collapse(false)
	if(oSel.findText(inpSearch.value,1000000000,sType)) oSel.select();
	else
		{
		if(confirm("Finished searching the document.\nSearch again from the top?"))
			{
			oSel.expand("textedit");
			oSel.collapse("true");
			oSel.select();
			doSearch();
			}
		}
	}
function doReplace()
	{
	var oEditor=dialogArguments.idSource;
	var oSel=oEditor.document.selection.createRange();	
	
	if(oSel.text.toLowerCase()==inpSearch.value.toLowerCase())
		{	
		oSel.text=inpReplace.value;
		doSearch();
		}
	else
		{
		doSearch();
		}
	}	
var nReplaced=0;	
function doReplaceAll()
	{
	var oEditor=dialogArguments.idSource;
	var oSel=oEditor.document.selection.createRange();	
	
	if(chkMatchCase.checked && chkMatchWord.checked) sType=6;
后面还有 114 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。