⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tool8.htm

📁 本软件为绿色软件
💻 HTM
字号:
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script src=inc/5top.js></script></head>
<body scroll=yes><br>
<table width=99% height="90%" border="1" cellpadding=4 cellspacing=0>
<tr>
<td height="26">字符串:<input name="sdf3" type="text" id="sdf3" value="标题[*]">
<input type=button onclick="asdf()" value=" 确 定 ">
<br>
起始数:<input name="sdf3" type="text" size=8 value=1>
结束数:<input name="sdf3" type="text" size=8 value=16>
位数:<input name="sdf3" type="text" size=8 value=2>位数不到前面布0
</td>
</tr>
<tr>
<td><textarea name="af2" id="af2" style="width:100%;height:100%"></textarea></td>
</tr>
<tr>
<td height=26><input type=button onclick="cp3(af2)" value=" 复 制 ">
字符串中[*]表示要替换成数字的部分。
</td>
</tr>
</table>
<script>
function asdfw(n)
{
var a=sdf3[3].value*1
n=String(n)
if(n.length>=a)return n
var b=n.length
for(var x=b;x<a;x++)n="0"+n
return n
}

function asdf()
{
t=""
a=sdf3[0].value
b=sdf3[1].value
c=sdf3[2].value*1
if(parseInt(b)!=b)return M("起始数必须是数字!",sdf3[1])
if(parseInt(c)!=c)return M("结束数必须是数字!",sdf3[2])
if(parseInt(sdf3[3].value)!=sdf3[3].value)return M("位数必须是数字!",sdf3[3])

t=""
c=parseInt(c)
for(x=b;x<c+1;x++)
{
t+=a.replace(/\[\*\]/gi,asdfw(x))+"\r\n"
}
af2.value=t

}


function cp3(n)
{
var a=n.value
if(a=="")return
n.select()
document.execCommand('Copy')
}

</script><script src=inc/5down.js></script></body></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -