?? loadflow.htm
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>讀取流程信息</title>
<script>
function loadflow(){
if(document.form1.t1.innerText=="")return;
if(document.form1.t1.style.display=="block"){
parent.doLoadFlow(document.form1.t1.innerText);
parent.hidePropertiesPane();
document.form1.t1.innerText="";
}else{
//從文件讀取
if(document.form1.f1.value=="")return;
var fso=new ActiveXObject("Scripting.FileSystemObject");
var ff = fso.OpenTextFile( document.form1.f1.value, 1, false,-2);
var str="";
while (!ff.AtEndOfStream)
str += ff.ReadLine();
ff.Close( );
var b,e;
b=str.indexOf("var nn");
e=str.indexOf("</textarea>");
str=str.substring(b,e)
parent.doLoadFlow(str);
parent.hidePropertiesPane();
document.form1.t1.innerText="";
document.form1.f1.value="";
}
}
function clearText(obj){
if(obj.innerHTML=="請將保存的信息復(fù)制到下面的文本框內(nèi)")
obj.innerHTML="";
}
function tab(bt){
if(bt.value=="切換從文件讀取"){
bt.value="切換從文本讀取";
document.form1.t1.style.display="none";
document.form1.f1.style.display="block";
}else{
bt.value="切換從文件讀取";
document.form1.t1.style.display="block";
document.form1.f1.style.display="none";
}
}
</script>
</head>
<body style="margin:1px;font-size:14px;">
<form name="form1" onsubmit="return false;">
<button tabindex="1" onclick="loadflow()">確定</button> <input tabindex="2" type="button" value="切換從文件讀取" onclick="tab(this)" /> <button onclick="parent.hidePropertiesPane();" tabindex="3">關(guān)閉</button><br />
<textarea tabindex="4" name="t1" style="width:90%;height:100px;display:block" onfocus="clearText(this)">請將保存的信息復(fù)制到下面的文本框內(nèi)</textarea>
<input tabindex="5" type="file" name="f1" style="display:none;width:90%;" />
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -