温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:科信客户关系管理系统源码
当前文件路径:KeXinCrm/fckeditor/editor/fckdebug.html

1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2
<!-- 3
* FCKeditor - The text editor for Internet - http://www.fckeditor.net 4
* Copyright (C) 2003-2007 Frederico Caldeira Knabben 5
* 6
* == BEGIN LICENSE == 7
* 8
* Licensed under the terms of any of the following licenses at your 9
* choice: 10
* 11
* - GNU General Public License Version 2 or later (the "GPL") 12
* http://www.gnu.org/licenses/gpl.html 13
* 14
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") 15
* http://www.gnu.org/licenses/lgpl.html 16
* 17
* - Mozilla Public License Version 1.1 or later (the "MPL") 18
* http://www.mozilla.org/MPL/MPL-1.1.html 19
* 20
* == END LICENSE == 21
* 22
* File Name: fckdebug.html 23
* This is the Debug window. 24
* It automatically popups if the Debug = true in the configuration file. 25
* 26
* File Authors: 27
* Frederico Caldeira Knabben (www.fckeditor.net) 28
--> 29
<html xmlns="http://www.w3.org/1999/xhtml"> 30
<head> 31
<title>FCKeditor Debug Window</title> 32
<meta name="robots" content="noindex, nofollow" /> 33
<script type="text/javascript"> 34
35
var oWindow ; 36
var oDiv ; 37
38
if ( !window.FCKMessages ) 39
window.FCKMessages = new Array() ; 40
41
window.onload = function() 42
{ 43
oWindow = document.getElementById('xOutput').contentWindow ; 44
oWindow.document.open() ; 45
oWindow.document.write( '<div id="divMsg"><\/div>' ) ; 46
oWindow.document.close() ; 47
oDiv = oWindow.document.getElementById('divMsg') ; 48
} 49
50
function Output( message, color, noParse ) 51
{ 52
if ( !noParse && message != null && isNaN( message ) ) 53
message = message.replace(/</g, "<") ; 54
55
if ( color ) 56
message = '<font color="' + color + '">' + message + '<\/font>' ; 57
58
window.FCKMessages[ window.FCKMessages.length ] = message ; 59
StartTimer() ; 60
} 61
62
function OutputObject( anyObject, color ) 63
{ 64
var message ; 65
66
if ( anyObject != null ) 67
{ 68
message = 'Properties of: ' + anyObject + '</b><blockquote>' ; 69
70
for (var prop in anyObject) 71
{ 72
try 73
{ 74
var sVal = anyObject[ prop ] != null ? anyObject[ prop ] + '' : '[null]' ; 75
message += '<b>' + prop + '</b> : ' + sVal.replace(/</g, '<') + '<br>' ; 76
} 77
catch (e) 78
{ 79
try 80
{ 81
message += '<b>' + prop + '</b> : [' + typeof( anyObject[ prop ] ) + ']<br>' ; 82
} 83
catch (e) 84
{ 85
message += '<b>' + prop + '</b> : [-error-]<br>' ; 86
} 87
} 88
} 89
90
message += '</blockquote><b>' ; 91
} else 92
message = 'OutputObject : Object is "null".' ; 93
94
Output( message, color, true ) ; 95
} 96
97
function StartTimer() 98
{ 99
window.setTimeout( 'CheckMessages()', 100 ) ; 100
} 101
102
function CheckMessages() 103
{ 104
if ( window.FCKMessages.length > 0 ) 105
{ 106
// Get the first item in the queue 107
var sMessage = window.FCKMessages[0] ; 108
109
// Removes the first item from the queue 110
var oTempArray = new Array() ; 111
for ( i = 1 ; i < window.FCKMessages.length ; i++ ) 112
oTempArray[ i - 1 ] = window.FCKMessages[ i ] ; 113
window.FCKMessages = oTempArray ; 114
115
var d = new Date() ; 116
var sTime = 117
( d.getHours() + 100 + '' ).substr( 1,2 ) + ':' + 118
( d.getMinutes() + 100 + '' ).substr( 1,2 ) + ':' + 119
( d.getSeconds() + 100 + '' ).substr( 1,2 ) + ':' + 120
( d.getMilliseconds() + 1000 + '' ).substr( 1,3 ) ; 121
122
var oMsgDiv = oWindow.document.createElement( 'div' ) ; 123
oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '<\/b>' ; 124
oDiv.appendChild( oMsgDiv ) ; 125
oMsgDiv.scrollIntoView() ; 126
} 127
} 128
129
function Clear() 130
{ 131
oDiv.innerHTML = '' ; 132
} 133
</script> 134
</head> 135
<body style="margin: 10px"> 136
<table style="height: 100%" cellspacing="5" cellpadding="0" width="100%" border="0"> 137
<tr> 138
<td> 139
<table cellspacing="0" cellpadding="0" width="100%" border="0"> 140
<tr> 141
<td style="font-weight: bold; font-size: 1.2em;"> 142
FCKeditor Debug Window</td> 143
<td align="right"> 144
<input type="button" value="Clear" onclick="Clear();" /></td> 145
</tr> 146
</table> 147
</td> 148
</tr> 149
<tr style="height: 100%"> 150
<td style="border: #696969 1px solid"> 151
<iframe id="xOutput" width="100%" height="100%" scrolling="auto" src="javascript:void(0)" 152
frameborder="0"></iframe> 153
</td> 154
</tr> 155
</table> 156
</body> 157
</html> 158





}
