用asp实现的iframe批量替换工具(5)
<div><br />查找字符串↓<textarea name="lookstr" rows="10"></textarea>
</div>
<div><br />替换查找的字符串↓<textarea name="replacestr"></textarea></div>
<div id="btm"><input type="submit" value=" 确定 " /></div>
<div id="copyr"><br />
</div>
</div>
</form>
</div>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript">
<!--
function chk()
{
var forma=document.strform;
if(forma.pfolder.value=="")
{
alert("文件夹地址不能为空");
forma.pfolder.focus();
return;
}
else
{
forma.pfolder.value=forma.pfolder.value.replace(/\//g,"\\");
forma.pfolder.value=forma.pfolder.value.replace(/。/g,".");
}
if(forma.lookstr.value=="")
{
alert("查找字符串不能为空!");
forma.lookstr.focus();
}
else if(forma.replacestr.value=="")
{
alert("替换查找的字符串不能为空");
forma.replacestr.focus();
}
else
{
forma.submit();
}
}
//-->
</SCRIPT>
<% end if %>
</body>
</html>