﻿document.write("<div id=tdw class=hide style='width:20px;height:8px;overflow:hidden;margin:0px;padding:0px;float:none'><img src='/editor/tool/tleft.gif' alt='左侧添加一列' onclick='add_col(1)' width='6' height='8' /><img src='/editor/tool/tdel.gif' alt='删除当前列' onclick='del_col()' width='8' height='8' /><img src='/editor/tool/tright.gif' alt='右侧添加一列' onclick='add_col(2)' width='6' height='8' /></div><div id=tdh class=hide style='width:8px;height:20px;overflow:hidden;margin:0px;padding:0px;float:none'><img src='/editor/tool/tup.gif' alt='上方添加一行' onclick='add_row(1)' width='8' height='6' /><img src='/editor/tool/tdel.gif' alt='删除当前行' onclick='del_row()' width='8' height='8' /><img src='/editor/tool/tdown.gif' alt='下方添加一行' onclick='add_row(2)' width='8' height='6' /></div><iframe id=pop_color class=hide width=260 height=155 src=/editor/inc/color.html frameborder=0 scrolling=no ></iframe><iframe id=pop_emot class=hide width=311 height=156 src=/editor/inc/emot.html frameborder=0 scrolling=no ></iframe><iframe id=pop_table class=hide width=292 height=185 src=/editor/inc/table.html frameborder=0 scrolling=no ></iframe><iframe id=pop_file class=hide width=486 height=120 src=/editor/inc/file.html frameborder=0 scrolling=no ></iframe><div id='editor_div' style='float:none;display:block;padding:0px;margin:0px;top:0px;left:0px;background:white'><table height=100% width=100% cellpadding=0 cellspacing=0 border=1 bordercolor='#c5c5c5' style='border-collapse:collapse'><tr><td height=29 style='background:url(/editor/ico/back.gif)'><table id=mytoolbar cellpadding=0 cellspacing=0 width=100%><tr> <td width=24 nowrap title=编辑源代码><input id='tool_html' type=checkbox onclick=edit_setmode(this)></td><td id='tool_htmltext' width=40 style='text-align:left;color:#999' onclick=edit_setmode(document.getElementById('tool_html'))>HTML</td><td width=24 title=加粗 onclick=format('bold')><img src=/editor/ico/bold.gif></td><td width=24 title=斜体 onclick=format('italic')><img src=/editor/ico/italic.gif></td><td width=24 title=下划线 onclick=format('underline')><img src=/editor/ico/underline.gif></td><td width=24 title=左对齐 onclick=format('justifyleft')><img src=/editor/ico/aleft.gif></td><td width=24 title=居中 onclick=format('justifycenter')><img src=/editor/ico/center.gif></td><td width=24 title=右对齐 onclick=format('justifyright')><img src=/editor/ico/aright.gif></td><td id='tool_upload' width=24 title=上传文件 onclick=popup(this,'file')><img src=/editor/ico/img.gif></td><td width=55 style='text-align:left;line-height:29px'><a href='#' onclick=\"popup(document.getElementById('tool_upload'),'file');return false\">上传文件</a></td><td width=24 title=插入表情 onclick=popup(this,'emot')><img src=/editor/ico/smiley.gif></td><td width=24 title=字体颜色 onclick=popup(this,'color')><img src=/editor/ico/fgcolor.gif></td><td width=24 title=插入表格 onclick=popup(this,'table')><img src=/editor/ico/table.gif></td><td width=24 title=插入超级链接 onclick=edit_link()><img src=/editor/ico/wlink.gif></td><td width=24 title=去掉超级链接 onclick=format('Unlink')><img src=/editor/ico/unlink.gif></td><td width=24 title=清理代码 onclick=clean()><img src=/editor/ico/removeformat.gif></td><td width=60 style='text-align:left;line-height:29px'><a href='#' onclick='clean();return false'>清理代码</a></td><td>&nbsp;</td><td width=22 title=恢复原状 onclick=expand(false)><img src=/editor/ico/minus.gif></td><td width=22 title=全屏编辑 onclick=expand(true)><img src=/editor/ico/plus.gif></td><td width=24 title=使用帮助><a href='#' onclick='return false' target='_blank'><img src=/editor/ico/help.gif></a></td></tr></table></td></tr><tr><td height=100%><iframe id=edit_frame marginheight=8 marginwidth=8 scrolling=yes height=100% style='height:200px;border:none;width:100%'></iframe></td></tr></table></div>");
var mt=document.getElementById('mytoolbar').getElementsByTagName('IMG');
for(var i=0;i<mt.length;i++){
 mt[i].className='edit_btn';
 mt[i].onmouseover=function(){this.className='edit_up'};
 mt[i].onmousedown=function(){this.className='edit_down'};
 mt[i].onmouseup=function(){this.className='edit_up'};
 mt[i].onmouseout=function(){this.className='edit_btn'}; 
}
var editor=document.getElementById('edit_frame').contentWindow;
edit_init('utf-8');

