您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->科信客户关系管理系统源码>>fckeditor/editor/fckdebug.html>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:科信客户关系管理系统源码


当前文件路径: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 35var oWindow ; 36var oDiv ; 37 38if ( !window.FCKMessages ) 39 window.FCKMessages = new Array() ; 40 41window.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 50function Output( message, color, noParse ) 51{ 52 if ( !noParse && message != null && isNaN( message ) ) 53 message = message.replace(/</g, "&lt;") ; 54 55 if ( color ) 56 message = '<font color="' + color + '">' + message + '<\/font>' ; 57 58 window.FCKMessages[ window.FCKMessages.length ] = message ; 59 StartTimer() ; 60} 61 62function 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, '&lt;') + '<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 97function StartTimer() 98{ 99 window.setTimeout( 'CheckMessages()', 100 ) ; 100} 101 102function 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 129function 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
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:科信客户关系管理系统源码

- 多文件无刷新上传源代码 v1.0

- 《浅谈三层结构》示例代码

- Asp.net仿baidu知道系统源码

- 在线订餐系统源码

- 某物流网站源码

- 简单日期选择的控件源码

- ASP.Net网络资源管理器 v2.0

- 入门级留言本源码

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号