亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? myedit.js

?? 全用Javascript編寫的在線編輯器.
?? JS
?? 第 1 頁 / 共 2 頁
字號:
// JavaScript Document
var bq;
var et;
var tab;
var color_type;


function init(id)
{
	create_all(id);	
    
}

function create_all(id)
{
	var div=create_div();
	
	var bq_div_all=document.createElement("div");
	bq_div_all.setAttribute("id","bq_div_all");
	bq_div_all.className="bg_color_div_all";
	
	
	var color_div_all=document.createElement("div");
	color_div_all.setAttribute("id","color_div_all");
	color_div_all.className="bg_color_div_all";
	
	var bg_color_div_all=document.createElement("div");
	bg_color_div_all.setAttribute("id","bg_color_div_all");
	bg_color_div_all.className="bg_color_div_all";
	
	var div_img=document.createElement("div");
	div_img.setAttribute("id","div_img");
	div_img.className="div_img_all";
	
	div.setAttribute("id","div_all");
	
	var toolbar=create_toolbar();
	window.tab=bq_div_all;
	
	var edit=create_edit(id);	
	window.et=edit;
	
//var color=create_color();

	var table=document.createElement("table");	
	table.className="table";
	table.setAttribute("border","1");
	table.setAttribute("cellspacing","0");
	table.setAttribute("cellpadding","0");
	table.setAttribute("width","100%");
	table.setAttribute("heigth","100%");
	var row=new Array();
	
	for(var i=0;i<2;i++)
	{
		row[i]=table.insertRow(i);
		
		row[i].insertCell(0);
		
	}
	table.rows[0].cells[0].setAttribute("valign","top");
	table.rows[1].cells[0].setAttribute("valign","top");
	table.rows[1].cells[0].setAttribute("id","table_top");
	
	table.rows[0].cells[0].appendChild(toolbar);
	table.rows[1].cells[0].appendChild(edit);
	
//	div.appendChild(color);
    div.appendChild(bg_color_div_all);	
	div.appendChild(color_div_all);	
	div.appendChild(bq_div_all);
	div.appendChild(div_img);
	div.appendChild(table);		
	id.appendChild(div);	
	return div;
	
}

function create_div()
{
	var div=document.createElement("div");	
	//div.className="div";
	
	
	return div;	
}

function add_proc(id)
{
	id.attachEvent("onmouseover",function(){id.className="t1"});	
	id.attachEvent("onmouseout",function(){id.className="t2"});
}

function on_click(id)
{
	var edit=document.getElementById("et");
	
	edit.focus();
	
	switch(id)
	{
	 	case "img1[1]":		
			document.execCommand('bold');			
			break;
		case "img2[1]":
		    var div=document.getElementById("color_div_all");
			if(div.innerHTML=="")
			{
				var color=create_color("forecolor");
			   	div.appendChild(color);	  
				div.style.marginLeft=document.getElementById("tool1").offsetLeft+3;
				div.style.marginTop=document.getElementById("table_top").offsetTop-9;
			}
			else
			{
				div.style.marginLeft=document.getElementById("tool1").offsetLeft+3;
				div.style.marginTop=document.getElementById("table_top").offsetTop-9;
				div.style.display="block";					
			}
		    	
			break;
		case "img1[2]":
			document.execCommand('italic');
			break;
		case "img2[2]":
		    var div=document.getElementById("bg_color_div_all");
			if(div.innerHTML=="")
			{
				var color=create_bgcolor();
			   	div.appendChild(color);	 
				div.style.marginLeft=document.getElementById("tool2").offsetLeft+3;
				div.style.marginTop=document.getElementById("table_top").offsetTop-9;
			}
			else
			{				
				div.style.marginLeft=document.getElementById("tool2").offsetLeft+3;
				div.style.marginTop=document.getElementById("table_top").offsetTop-9;
				div.style.display="block";				
			}
		    	
			break;
		case "img1[3]":
			document.execCommand('underline');
			break;
		case "img2[3]":
			document.execCommand('delete');
			break;
		case "img1[5]":
			document.execCommand('justifyleft');
			break;
	    case "img2[5]":
			document.execCommand('superscript');
			break;
		case "img1[6]":
			document.execCommand('justifycenter');
			break;
		case "img2[6]":
			document.execCommand('subscript');
			break;
		case "img1[7]":
			document.execCommand('justifyright');
			break;
		case "img2[7]":
			document.execCommand('insertorderedlist');
			break;
		case "img1[8]":
			document.execCommand('justifyfull');
			break;
		case "img2[8]":
			document.execCommand('insertunorderedlist');
			break;
		case "img2[10]":
			document.execCommand('undo');
			break;
		case "img2[11]":
			document.execCommand('redo');
			break;
		case "img2[15]":
			var div=document.getElementById("div_img");
			
			if(div.innerHTML=="")
			{
		        var bq=create_insertImge();
			    div.appendChild(bq);
				
                div.style.marginLeft=document.getElementById("tool15").offsetLeft+33;
				div.style.marginTop=document.getElementById("table_top").offsetTop-10;
			}
			else
			{  
			    //var id=document.getElementById("insert_img")
				div.style.marginLeft=document.getElementById("tool15").offsetLeft+33;
				div.style.marginTop=document.getElementById("table_top").offsetTop-10;
				div.style.display="block";
				//id.style.display="block";
			}
			break;
		case "select1":
		    var i=document.getElementById(id);			
			document.execCommand('FontSize',false,i.options[i.selectedIndex].value)			
			break;
		case "select2":
		    var i=document.getElementById(id);
			document.execCommand('FontName',false,i.options[i.selectedIndex].text)				
			break;
		case "img2[12]":
			document.execCommand('CreateLink',true,edit);
			break;
		case "img2[14]":
		    
			break;
		case "img2[13]":
		    var div=document.getElementById("bq_div_all");
			//alert(document.getElementById("tool3").offsetLeft);
			if(tab.innerHTML=="")
			{
		   		var bq=create_bq(et);
				div.appendChild(bq);
                div.style.marginLeft=document.getElementById("tool3").offsetLeft-291;
				div.style.marginTop=document.getElementById("table_top").offsetTop-78;
			}
			else
			{
				div.style.marginLeft=document.getElementById("tool3").offsetLeft-291;
				div.style.marginTop=document.getElementById("table_top").offsetTop-78;
				div.style.display="block";				
			}
			
			break;
	}
}

function set_attribute(obj,id,str_id,styl,torf)
{
	id.className="t2";
	obj.appendChild(id);
	obj.className=styl;		
	if(torf)
	{
		id.attachEvent("onclick",function(){on_click(str_id);});
		add_proc(id);
	}	
}

function create_toolbar()
{ 
	var toolbar=document.createElement("table");
	toolbar.className="tool_table";
//	toolbar.setAttribute("border","1");
	toolbar.setAttribute("cellspacing","0");
	toolbar.setAttribute("cellpadding","0");
	toolbar.setAttribute("width","100%");
	toolbar.setAttribute("heigth","100%");

   // toolbar.setAttribute("borderColor","black");
  
	
	var first=toolbar.insertRow(0);
	var two=toolbar.insertRow(1);	
	for(var i=0;i<14;i++)
	{
	  	var td=first.insertCell(i);
		var td2=two.insertCell(i);
		
	}
	var img1=new Array();
	var img2=new Array();
    img1[0]=document.createElement("image");
	img2[0]=document.createElement("image");
	img1[0].setAttribute("src","image/Start.gif");
	img2[0].setAttribute("src","image/Start.gif");
	set_attribute(toolbar.rows[0].cells[0],img1[0],"img1[0]","first",false);
	set_attribute(toolbar.rows[1].cells[0],img2[0],"img2[0]","first",false);	
	
	img1[1]=document.createElement("image");
	img1[1].setAttribute("src","image/bold.gif");
	img2[1]=document.createElement("image");
	img2[1].setAttribute("src","image/backcolor.gif");	
	img2[1].setAttribute("id","img2[1]");
	toolbar.rows[1].cells[1].setAttribute("id","tool1");
	set_attribute(toolbar.rows[0].cells[1],img1[1],"img1[1]","two",true);	
	set_attribute(toolbar.rows[1].cells[1],img2[1],"img2[1]","two",true);
	
	img1[2]=document.createElement("image");
	img1[2].setAttribute("src","image/italic.gif");
	img2[2]=document.createElement("image");
	img2[2].setAttribute("src","image/bgcolor.gif");
	img2[2].setAttribute("id","img2[2]");
	toolbar.rows[1].cells[2].setAttribute("id","tool2");
	set_attribute(toolbar.rows[0].cells[2],img1[2],"img1[2]","two",true);	
	set_attribute(toolbar.rows[1].cells[2],img2[2],"img2[2]","two",true);	
	
	img1[3]=document.createElement("image");
	img1[3].setAttribute("src","image/underline.gif");
	img2[3]=document.createElement("image");
	img2[3].setAttribute("src","image/delete.gif");
	set_attribute(toolbar.rows[0].cells[3],img1[3],"img1[3]","two",true);	
	set_attribute(toolbar.rows[1].cells[3],img2[3],"img2[3]","two",true);	
	
	img1[4]=document.createElement("image");
	img2[4]=document.createElement("image");
	img1[4].setAttribute("src","image/Seperator.gif");
	img2[4].setAttribute("src","image/Seperator.gif");
	set_attribute(toolbar.rows[0].cells[4],img1[4],"img1[4]","first",false);
	set_attribute(toolbar.rows[1].cells[4],img2[4],"img2[4]","first",false);
	
	img1[5]=document.createElement("image");
	img1[5].setAttribute("src","image/justifyleft.gif");
	img2[5]=document.createElement("image");
	img2[5].setAttribute("src","image/superscript.gif");
	set_attribute(toolbar.rows[0].cells[5],img1[5],"img1[5]","two",true);	
	set_attribute(toolbar.rows[1].cells[5],img2[5],"img2[5]","two",true);	
	
	img1[6]=document.createElement("image");
	img1[6].setAttribute("src","image/justifycenter.gif");
	img2[6]=document.createElement("image");
	img2[6].setAttribute("src","image/subscript.gif");
	set_attribute(toolbar.rows[0].cells[6],img1[6],"img1[6]","two",true);	
	set_attribute(toolbar.rows[1].cells[6],img2[6],"img2[6]","two",true);	
	
	img1[7]=document.createElement("image");
	img1[7].setAttribute("src","image/justifyright.gif");
	img2[7]=document.createElement("image");
	img2[7].setAttribute("src","image/insertorderedlist.gif");
	set_attribute(toolbar.rows[0].cells[7],img1[7],"img1[7]","two",true);	
	set_attribute(toolbar.rows[1].cells[7],img2[7],"img2[7]","two",true);	
	
	img1[8]=document.createElement("image");
	img1[8].setAttribute("src","image/justifyfull.gif");
	img2[8]=document.createElement("image");
	img2[8].setAttribute("src","image/insertunorderedlist.gif");
	set_attribute(toolbar.rows[0].cells[8],img1[8],"img1[8]","two",true);	
	set_attribute(toolbar.rows[1].cells[8],img2[8],"img2[8]","two",true);	
	
	img1[9]=document.createElement("image");
	img2[9]=document.createElement("image");
	img1[9].setAttribute("src","image/Seperator.gif");
	img2[9].setAttribute("src","image/Seperator.gif");
	set_attribute(toolbar.rows[0].cells[9],img1[9],"img1[9]","first",false);
	set_attribute(toolbar.rows[1].cells[9],img2[9],"img2[9]","first",false);
	
	select1=document.createElement("select");
	select1.attachEvent("onchange",function(){on_click("select1");});
	select1.className="select1";
	set_selectoptions(select1,"select1");
	
	toolbar.rows[0].cells[10].appendChild(select1);
	toolbar.rows[0].cells[10].setAttribute("width","100px");
	
	toolbar.rows[0].cells[10].setAttribute("colspan","3");
	img1[10]=document.createElement("image");
	img1[10].setAttribute("src","image/Seperator.gif");
	set_attribute(toolbar.rows[0].cells[11],img1[10],"img1[10]","first",false);
	

	select2=document.createElement("select");	
	select2.className="select2";	
	set_selectoptions(select2,"select2");
	select2.attachEvent("onchange",function(){on_click("select2");});
	toolbar.rows[0].cells[12].appendChild(select2);

    img1[11]=document.createElement("image");
	img1[11].setAttribute("src","image/Start.gif");
	set_attribute(toolbar.rows[0].cells[13],img1[11],"img1[11]","first",false);
    f_name(toolbar.rows[0].cells[13]);
	
	var a=new Array();
	var tb2=document.createElement("table");
	var row=tb2.insertRow(0);
	for(var i=0;i<3;i++)
	{
	 	a[i]=row.insertCell(i);
		a[i].setAttribute("width","25px");
	}
	toolbar.rows[1].cells[10].appendChild(tb2);
	toolbar.rows[1].cells[10].setAttribute("id","tool3");
	
	img2[10]=document.createElement("image");
	img2[10].setAttribute("src","image/undo.gif");
	set_attribute(a[0],img2[10],"img2[10]","two",true);
	
	img2[11]=document.createElement("image");
	img2[11].setAttribute("src","image/redo.gif");

	set_attribute(a[1],img2[11],"img2[11]","two",true);	
	img2[13]=document.createElement("image");
	img2[13].setAttribute("id","img2[13]");
	img2[13].setAttribute("src","image/QQ/e102.gif");
	set_attribute(a[2],img2[13],"img2[13]","two",true);
	
	img2[12]=document.createElement("image");
	img2[12].setAttribute("src","image/createlink.gif");
	set_attribute(toolbar.rows[1].cells[11],img2[12],"img2[12]","two",true);
	img2[14]=document.createElement("image");
	img2[14].setAttribute("src","image/unlink.gif");
	set_attribute(toolbar.rows[1].cells[12],img2[14],"img2[14]","two",true);	
	img2[15]=document.createElement("image");
	img2[15].setAttribute("src","image/img.gif ");
	img2[15].style.width="20px"
	img2[15].style.height="20px";
	img2[15].style.marginLeft="8px";
	img2[15].setAttribute("id","img2[15]");
	toolbar.rows[1].cells[12].setAttribute("id","tool15");
	set_attribute(toolbar.rows[1].cells[12],img2[15],"img2[15]","two",true);
	
	toolbar.onselectstart = function () { return false; }//禁止toolbar被選中
	
	return toolbar;
}

function set_selectoptions(id,str_id)
{
	var op=new Array();
	var text=new Array();
	id.setAttribute("id",str_id);
	switch(str_id)
	{
	 	case "select1":		    
			op[0]=document.createElement("option");
			text[0]=document.createTextNode("五號");

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一个色综合av| 欧美极品另类videosde| 亚洲成av人片在线| 在线观看日韩电影| 婷婷国产在线综合| 日韩午夜激情免费电影| 精品一区二区免费视频| 久久蜜桃av一区二区天堂| 国产a久久麻豆| 亚洲欧美日韩国产综合| 精品视频一区二区不卡| 蜜桃视频免费观看一区| 国产欧美精品国产国产专区 | 91精品黄色片免费大全| 免费在线观看视频一区| 国产午夜久久久久| 色婷婷香蕉在线一区二区| 日日夜夜免费精品| 久久精品亚洲麻豆av一区二区| av一区二区三区在线| 亚洲.国产.中文慕字在线| 精品国产乱码久久久久久免费| 高清国产一区二区三区| 亚洲欧美日本在线| 日韩欧美国产精品一区| 成人av电影在线网| 91精品午夜视频| ㊣最新国产の精品bt伙计久久| 色综合久久综合网97色综合| 天堂一区二区在线免费观看| 久久久五月婷婷| 欧美在线观看一二区| 狠狠色丁香婷婷综合| 亚洲少妇最新在线视频| 日韩精品最新网址| 在线区一区二视频| 国产成人在线色| 视频一区二区三区在线| 欧美国产精品中文字幕| 日韩一级高清毛片| 在线观看免费亚洲| 国产不卡一区视频| 毛片av中文字幕一区二区| 日韩理论电影院| 久久蜜桃香蕉精品一区二区三区| 欧美高清视频不卡网| 99国产精品久| 国产v日产∨综合v精品视频| 另类调教123区| 国产一区二区三区视频在线播放| 一区二区三区欧美视频| 中文乱码免费一区二区| 精品国产一区二区三区四区四| 欧美无乱码久久久免费午夜一区 | 国产色一区二区| 在线综合+亚洲+欧美中文字幕| 91视频免费观看| 国产高清久久久| 久久99热99| 毛片不卡一区二区| 秋霞国产午夜精品免费视频| 亚洲一区二区综合| 亚洲免费观看在线视频| 国产精品视频免费看| 国产午夜精品一区二区| 欧美精品一区二区三区视频| 欧美一区二区人人喊爽| 91精品一区二区三区在线观看| 欧美日韩亚洲高清一区二区| 在线观看日韩精品| 精品视频一区三区九区| 欧美日韩在线三级| 欧美另类一区二区三区| 在线播放91灌醉迷j高跟美女| 欧美撒尿777hd撒尿| 欧美在线观看视频一区二区| 91社区在线播放| 一本一本久久a久久精品综合麻豆| 波多野结衣在线一区| av在线综合网| 91在线视频网址| 色爱区综合激月婷婷| 在线精品视频免费播放| 欧美三级视频在线观看| 欧美日韩二区三区| 欧美一级黄色大片| 欧美精品一区二区不卡| 久久久91精品国产一区二区三区| 久久久高清一区二区三区| 国产日韩精品一区二区浪潮av| 国产欧美精品在线观看| 亚洲女人小视频在线观看| 一区二区三区免费在线观看| 亚洲aaa精品| 久久精品久久综合| 国产成人午夜高潮毛片| 日本中文字幕不卡| 亚洲视频一区二区在线| 亚洲欧美日韩成人高清在线一区| 亚洲欧美视频在线观看视频| 亚洲妇女屁股眼交7| 青青草国产成人av片免费| 国产一区视频在线看| 丁香婷婷综合网| 在线免费不卡视频| 精品三级在线看| 国产精品美女久久久久久2018| 亚洲综合色在线| 久久成人免费网| 99精品视频一区二区三区| 欧美日韩另类一区| 久久综合国产精品| 亚洲精品欧美激情| 久久国产精品色| 99精品视频一区二区三区| 欧美蜜桃一区二区三区| 国产日韩三级在线| 一二三四社区欧美黄| 久久精品国产第一区二区三区| www.欧美色图| 欧美美女一区二区三区| 国产女主播一区| 亚洲国产精品久久人人爱蜜臀| 国产麻豆日韩欧美久久| 欧美精品乱人伦久久久久久| 久久久九九九九| 日本亚洲视频在线| 91首页免费视频| xf在线a精品一区二区视频网站| 一区二区三区欧美日韩| 国产成人av电影在线观看| 欧美日韩卡一卡二| 亚洲欧洲一区二区三区| 久国产精品韩国三级视频| 欧美综合视频在线观看| 国产精品欧美综合在线| 久久99久久久欧美国产| 欧美视频在线不卡| 自拍偷拍亚洲综合| 国产精品一区二区在线播放 | 亚洲va韩国va欧美va| 91免费小视频| 国产片一区二区三区| 免费欧美在线视频| 欧美人狂配大交3d怪物一区| 成人欧美一区二区三区视频网页| 韩国av一区二区三区| 欧美一区二区三区视频免费 | 国产不卡视频一区二区三区| 欧美一区二区播放| 亚洲国产精品一区二区尤物区| 成人看片黄a免费看在线| 欧美成人a∨高清免费观看| 亚洲一区二区三区在线| 色综合久久99| 亚洲精品亚洲人成人网| 不卡av在线网| 综合久久久久综合| 91色porny蝌蚪| 综合亚洲深深色噜噜狠狠网站| 成人三级伦理片| 欧美国产精品一区二区| 成人午夜电影网站| 国产精品乱人伦一区二区| 国产成人av自拍| 国产精品国产成人国产三级| 成人爱爱电影网址| 日韩一区在线看| 91精品福利视频| 一区二区在线看| 欧美日韩午夜在线视频| 午夜精品福利视频网站| 欧美久久一二三四区| 青青青伊人色综合久久| 精品少妇一区二区三区日产乱码| 精品一区二区综合| 日本一二三四高清不卡| 97精品超碰一区二区三区| 亚洲人成亚洲人成在线观看图片| 一本一道久久a久久精品综合蜜臀| 久久91精品国产91久久小草| 国产日韩成人精品| 色av综合在线| 免费一级片91| 久久精品一区蜜桃臀影院| 成人福利视频网站| 一区二区三区高清不卡| 欧美美女bb生活片| 国产另类ts人妖一区二区| 国产精品美女久久福利网站| 色婷婷精品大视频在线蜜桃视频| 亚州成人在线电影| 2024国产精品| 91论坛在线播放| 五月天中文字幕一区二区| 久久在线免费观看| 成人精品国产福利| 午夜私人影院久久久久| 26uuu国产电影一区二区| 色综合色综合色综合|