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

📄 icollect.php

📁 PHP免费网摘程序 详细说明: 安装说明: 1、把文件上穿上去以后
💻 PHP
📖 第 1 页 / 共 4 页
字号:
	<style>	
div.FTB_StatusBar {
	text-align: left;
	padding:1px;
	width:100px; 
	height: 100%;
	border:1 solid #808080;
	font: 8pt MS Sans Serif;
}
select.FTB_Select {
	font: 10pt Arial;
}
</style>

	<script language="JavaScript">
function FTB_JustifyRight(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'justifyright'); 
}
</script>

	
<script language="JavaScript">
function FTB_FreeTextBox1_onPaste() {}
</script>

	<script language="JavaScript">
function FTB_NumberedList(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'insertorderedlist'); 
}
</script>

	<script language="JavaScript">
function FTB_InsertRule(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'inserthorizontalrule'); 
}
</script>

	<script language="JavaScript">
function FTB_Subscript(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'subscript'); 
}
</script>

	<script language="JavaScript">
function FTB_Indent(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'indent'); 
}
</script>

	<script language="JavaScript">
function FTB_Undo(editor,htmlmode) {
	editor.focus();
	editor.document.execCommand('undo','',null);
}
</script>

	<script language="JavaScript">
function FTB_InsertImageFromGallery_FreeTextBox1(editor,htmlmode) {
	if (htmlmode) return;
	editor.focus();

	obj = FTB_GetRangeReference(editor);
	if (obj.tagName == 'IMG') {
		editor.document.execCommand('insertimage',1,'');
		return;
	}

	var folder = 'images';
	var galleryscript = FTB_HelperFilesPath + 'images.php?rif='+folder+'&cif='+folder;
	if (FTB_HelperFilesParameters != '') galleryscript += '&' + FTB_HelperFilesParameters;
	imgArr = showModalDialog(galleryscript,window,'dialogWidth:560px; dialogHeight:500px;help:0;status:0;resizeable:1;');

	if (imgArr != null) {
		imagestring = '<IMG SRC="' + imgArr['filename'] + '" HEIGHT=' + imgArr['height'] + ' WIDTH=' + imgArr['width'] + ' BORDER=0>';
		sel = editor.document.selection.createRange();
		sel.pasteHTML(imagestring);
	} else {
		//alert("您没有选择图片。");
	}
}
</script>

	<script language="JavaScript">
function FTB_SetFontForeColor(editor,htmlmode,name,value) {
	if (htmlmode) return;
	editor.focus();
	editor.document.execCommand('forecolor','',value);
}
</script>

	<script language="JavaScript">
function FTB_JustifyLeft(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'justifyleft'); 
}
</script>

	<script language="JavaScript">
function FTB_Paste(editor,htmlmode) {
	editor.focus();
	editor.document.execCommand('paste','',null);
}
</script>

	<script language="JavaScript">
// *******************************************
// Universal Editor Functions
// *******************************************
function FTB_CopyHtmlToHidden(editor,hiddenHtml,htmlmode) {
	if (htmlmode) {
		hiddenHtml.value = editor.document.body.innerText;  
	} else {
		hiddenHtml.value = editor.document.body.innerHTML;  
	}
	if (hiddenHtml.value == '<P>&nbsp;</P>') {
		hiddenHtml.value = '';
	}
}
function FTB_Format(editor,htmlmode,format) {
	if (htmlmode) return; 
	editor.focus();
	editor.document.execCommand(format,'',null);
}	
function FTB_CheckTag(item,tagName) {
	if (item.tagName.search(tagName)!=-1) {
		return item;
	}
	if (item.tagName=='BODY') {
		return false;
	}
	item=item.parentElement;
	return FTB_CheckTag(item,tagName);
}
function FTB_CharBefore(sel) {
	if (sel.move('character',-1) == -1) {
		sel.expand('character');
		return sel.text;
	} else {
		return 'start';
	}
}
function FTB_CharAfter(sel) {
	var sel2 = sel;
	if (sel.expand('character')) {
		sel2.move('character',1);
		sel2.expand('character');
		return sel2.text;
	} else {
		return 'end';
	}
}
function FTB_CharBefore(r) {
	if (r.move('character',-1) == -1) {
		r.expand('character');
		return r.text;
	} else {
		return 'start';
	}
}
function FTB_CharAfter(r) {
	var r2 = r;
	if (r.expand('character')) {
		r2.move('character',1);
		r2.expand('character');
		return r2.text;
	} else {
		return 'end';
	}
}
function FTB_GetRangeReference(editor) {
	editor.focus();
	var objReference = null;
	var RangeType = editor.document.selection.type;
	var selectedRange = editor.document.selection.createRange();

	switch(RangeType) {
		case 'Control' :
			if (selectedRange.length > 0 )  {
				objReference = selectedRange.item(0);
			}
			break;

		case 'None' :
			objReference = selectedRange.parentElement();
			break;

		case 'Text' :
			objReference = selectedRange.parentElement();
			break;
	}
	return objReference
}
// ********************************************
// Style Functions
// ********************************************
function FTB_SetButtonStyle(buttonTD,style,checkstyle) {
	if (buttonTD == null) return;
	if (buttonTD.className != checkstyle)
		buttonTD.className = style;
}
function FTB_GetClassSubName(className) {
	underscore = className.indexOf("_");
	if (underscore < 0) return className;
	return className.substring(underscore+1);
}
function FTB_ButtonOver(theTD,editorname,imageOver,imageDown) {
	FTB_SetButtonStyle(theTD,editorname+'_ButtonOver',null);
	if (eval(editorname+'_OverImage').src != '') theTD.background=eval(editorname+'_OverImage').src;
	
	if(theTD.children.length && theTD.children[0].tagName == "IMG" && imageOver){
		oldSrc = theTD.children[0].src;
		if (oldSrc.indexOf('.over.') == -1) {
			theTD.children[0].src=oldSrc.substring(0, oldSrc.length-4) + ".over.gif";
		}
	}
}
function FTB_ButtonOut(theTD,editorname,imageOver,imageDown) {
	FTB_SetButtonStyle(theTD,editorname+'_ButtonNormal',null);
	document.body.style.cursor = 'default';
	theTD.background='';
	if(theTD.children.length && theTD.children[0].tagName == "IMG"){
		oldSrc = theTD.children[0].src;
		if (oldSrc.indexOf('.over.') > 0) {
			theTD.children[0].src=oldSrc.substring(0, oldSrc.length-9) + ".gif";
		}
		if (oldSrc.indexOf('.down.') > 0) {
			theTD.children[0].src=oldSrc.substring(0, oldSrc.length-9) + ".gif";
		}
	}
}
function FTB_ButtonDown(theTD,editorname,imageOver,imageDown) {
	document.body.style.cursor = 'default';
	FTB_SetButtonStyle(theTD,editorname+'_ButtonDown',null);
	if (eval(editorname+'_DownImage').src != '') theTD.background=eval(editorname+'_DownImage').src;
	if(theTD.children.length && theTD.children[0].tagName == "IMG" && imageDown == 1){
		oldSrc = theTD.children[0].src;
		if (oldSrc.indexOf('.over.') > 0) {
			theTD.children[0].src=oldSrc.substring(0, oldSrc.length-9) + ".down.gif";
		}
	}
}
function FTB_ButtonUp(theTD,editorname,imageOver,imageDown) {
	document.body.style.cursor = 'auto';
	FTB_SetButtonStyle(theTD,editorname+'_ButtonOver',null);
	if (eval(editorname+'_OverImage').src != '') theTD.background=eval(editorname+'_OverImage').src;
	if(theTD.children.length && theTD.children[0].tagName == "IMG" && imageOver == 1){
		oldSrc = theTD.children[0].src;
		if (oldSrc.indexOf('.over.') == -1) {
			theTD.children[0].src=oldSrc.substring(0, oldSrc.length-4) + ".over.gif";
		}
	}
}
function FTB_SetActiveTab(theTD,editorname) {
	parentTR = theTD.parentElement;
	selectedTab = 1;
	totalButtons = parentTR.cells.length-1;
	for (var i=1;i< totalButtons;i++) {
		parentTR.cells[i].className = editorname + "_TabOffRight";
		if (theTD == parentTR.cells[i]) { selectedTab = i; }

	}

	if (selectedTab==1) {
		parentTR.cells[0].className = editorname + "_StartTabOn";
	} else {
		parentTR.cells[0].className = editorname + "_StartTabOff";
		parentTR.cells[selectedTab-1].className = editorname + "_TabOffLeft";
	}

	theTD.className = editorname + "_TabOn";
}
function FTB_TabOver() {
	document.body.style.cursor='default';
}
function FTB_TabOut() {
	document.body.style.cursor='auto';
}
</script>

	<script language="JavaScript">
function FTB_Print(editor,htmlmode) { 
	editor.document.execCommand('print','',null); 
}
</script>

	<script language="JavaScript">
function FTB_BulletedList(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'insertunorderedlist'); 
}
</script>

	<script language="JavaScript">
function FTB_SetFontFace(editor,htmlmode,name,value) {
	if (htmlmode) return;
	editor.focus();
	editor.document.execCommand('fontname','',value);
}
</script>

	<script language="JavaScript">
function FTB_Underline(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'underline'); 
}
</script>

	<script language="JavaScript">
function FTB_Superscript(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'superscript'); 
}
</script>

	<script language="JavaScript">
function FTB_Bold(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'bold'); 
}
</script>

	<script language="JavaScript">
function FTB_JustifyFull(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'justifyfull'); 
}
</script>

	<script language="JavaScript">
function FTB_JustifyCenter(editor,htmlmode) { 
	FTB_Format(editor,htmlmode,'justifycenter'); 
}
</script>

	
<style>
td.FreeTextBox1_StartTabOn {
	font: 10pt MS Sans Serif;
	padding:1px;
	border-left: 1 solid #81A9E2;
	border-right: 1 solid #FFFFFF;
	border-top: 1 solid #808080;
	border-bottom: 1 solid #81A9E2;
	background-color: #81A9E2;
}
td.FreeTextBox1_StartTabOff {
	font: 10pt MS Sans Serif;
	padding:1px;
	border-left: 1 solid #81A9E2;
	border-right: 1 solid #808080;
	border-top: 1 solid #808080;
	border-bottom: 1 solid #81A9E2;
	background-color: #81A9E2;
}
td.FreeTextBox1_TabOn {
	font: 8pt MS Sans Serif;
	padding:1px;
	padding-left:5px;
	padding-right:5px;
	border-left: 1 solid #FFFFFF;
	border-right: 1 solid #808080;
	border-top: 1 solid #9EBEF5;
	border-bottom: 1 solid #808080;
	background-color: #9EBEF5;
}

⌨️ 快捷键说明

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