Jean's
小狐狸
小狐狸
  • UID28726
  • 注册日期2009-04-28
  • 最后登录2009-04-28
  • 发帖数3
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:2374回复:1

html在线编辑器不兼容Firefox!不知道怎么改!请高手指教!

楼主#
更多 发布于:2009-04-28 09:28
<html>
<head>
<title>HTML编辑器</title>
<script type="text/javascript">
SEP_PADDING = 5
HANDLE_PADDING = 7
var yToolbars = new Array();
var YInitialized = false;
var bLoad=false
var pureText=true
var bodyTag="<head><style type=\"text/css\">body {font-size:9pt}</style><meta http-equiv=Content-Type content=\"text/html; charset=gb2312\"></head><BODY bgcolor=\"#FFFFFF\" MONOSPACE>"
var bTextMode=false

public_description=new Editor

<!-- 页面加载完毕执行 -->
window.onload=function(){
if (YInitialized) return;
YInitialized = true;

var i, s, curr;
editor = document.getElementById("HtmlEdit").contentWindow;
var elements = document.getElementsByTagName("*");
for (i=0; i<elements.length;i++)
{
curr=elements;
if (curr.className == "yToolbar")
{
InitTB(curr);
   yToolbars[yToolbars.length] = curr;
}
}

DoLayout();
window.onresize = DoLayout;

editor.document.open();
editor.document.write(bodyTag);
editor.document.close();
editor.document.designMode="On";
}

<!-- 设置字体样式 -->
function format(what,opt)
{
if (!validateMode()) return;
if (opt=="removeFormat")
{
what=opt;
opt=null;
}

if (opt==null) editor.document.execCommand(what,false,null);
else editor.document.execCommand(what,false,opt);

pureText = false;
editor.focus();
}

function InitBtn(btn)
{
btn.onmouseover = BtnMouseOver;
btn.onmouseout = BtnMouseOut;
btn.onmousedown = BtnMouseDown;
btn.onmouseup = BtnMouseUp;
btn.ondragstart = YCancelEvent;
btn.onselectstart = YCancelEvent;
btn.onselect = YCancelEvent;
btn.YUSERONCLICK = btn.onclick;
btn.onclick = YCancelEvent;
btn.YINITIALIZED = true;
return true;
}

function InitTB(y)
{
y.TBWidth = 0;

if (! PopulateTB(y)) return false;

y.style.posWidth = y.TBWidth;

return true;
}


function YCancelEvent()
{
event.returnValue=false;
event.cancelBubble=true;
return false;
}

function PopulateTB(y)
{
var i, elements, element;

elements = y.children;
for (i=0; i<elements.length; i++) {
element = elements;
if (element.tagName == "SCRIPT" || element.tagName == "!") continue;

switch (element.className) {
  case "Btn":
if (element.YINITIALIZED == null) {
 if (! InitBtn(element))
 return false;
}
element.style.posLeft = y.TBWidth;
y.TBWidth += element.offsetWidth + 1;
break;

  case "TBGen":
element.style.posLeft = y.TBWidth;
y.TBWidth += element.offsetWidth + 1;
break;

  case "TBSep":
element.style.posLeft = y.TBWidth + 2;
y.TBWidth += SEP_PADDING;
break;

  case "TBHandle":
element.style.posLeft = 2;
y.TBWidth += element.offsetWidth + HANDLE_PADDING;
break;

  default:
return false;
  }
}

y.TBWidth += 1;
return true;
}

function DebugObject(obj)
{
var msg = "";
for (var i in TB) {
ans=prompt(i+"="+TB+"\n");
if (! ans) break;
}
}

function LayoutTBs()
{
NumTBs = yToolbars.length;

if (NumTBs == 0) return;

var i;
var ScrWid = (document.body.offsetWidth) - 6;
var TotalLen = ScrWid;
for (i = 0 ; i < NumTBs ; i++) {
TB = yToolbars;
if (TB.TBWidth > TotalLen) TotalLen = TB.TBWidth;
}

var PrevTB;
var LastStart = 0;
var RelTop = 0;
var LastWid, CurrWid;
var TB = yToolbars[0];
TB.style.posTop = 0;
TB.style.posLeft = 0;

var Start = TB.TBWidth;
for (i = 1 ; i < yToolbars.length ; i++) {
PrevTB = TB;
TB = yToolbars;
CurrWid = TB.TBWidth;

if ((Start + CurrWid) > ScrWid) {
  Start = 0;
  LastWid = TotalLen - LastStart;
}
else {
   LastWid = PrevTB.TBWidth;
   RelTop -= TB.offsetHeight;
}

TB.style.posTop = RelTop;
TB.style.posLeft = Start;
PrevTB.style.width = LastWid;

LastStart = Start;
Start += CurrWid;
}

TB.style.width = TotalLen - LastStart;

i--;
TB = yToolbars;
var TBInd = TB.sourceIndex;
var A = TB.document.all;
var item;
for (i in A) {
item = A.item(i);
if (! item) continue;
if (! item.style) continue;
if (item.sourceIndex <= TBInd) continue;
if (item.style.position == "absolute") continue;
item.style.posTop = RelTop;
}
}

function DoLayout()
{
LayoutTBs();
}

function BtnMouseOver()
{
if (event.srcElement.tagName != "IMG") return false;
var image = event.srcElement;
var element = image.parentElement;

if (image.className == "Ico") element.className = "BtnMouseOverUp";
else if (image.className == "IcoDown") element.className = "BtnMouseOverDown";

event.cancelBubble = true;
}

function BtnMouseOut()
{
if (event.srcElement.tagName != "IMG") {
event.cancelBubble = true;
return false;
}

var image = event.srcElement;
var element = image.parentElement;
yRaisedElement = null;

element.className = "Btn";
image.className = "Ico";

event.cancelBubble = true;
}

function BtnMouseDown()
{
if (event.srcElement.tagName != "IMG") {
event.cancelBubble = true;
event.returnValue=false;
return false;
}

var image = event.srcElement;
var element = image.parentElement;

element.className = "BtnMouseOverDown";
image.className = "IcoDown";

event.cancelBubble = true;
event.returnValue=false;
return false;
}

function BtnMouseUp()
{
if (event.srcElement.tagName != "IMG") {
event.cancelBubble = true;
return false;
}

var image = event.srcElement;
var element = image.parentElement;

if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()");

element.className = "BtnMouseOverUp";
image.className = "Ico";

event.cancelBubble = true;
return false;
}

function getEl(sTag,start)
{
while ((start!=null) && (start.tagName!=sTag)) start = start.parentElement;
return start;
}

function cleanHtml()
{
var fonts = HtmlEdit.document.body.all.tags("FONT");
var curr;
for (var i = fonts.length - 1; i >= 0; i--) {
curr = fonts;
if (curr.style.backgroundColor == "#ffffff") curr.outerHTML = curr.innerHTML;
}
}

function getPureHtml()
{
var str = "";
var paras = HtmlEdit.document.body.all.tags("P");
if (paras.length > 0) {
for (var i=paras.length-1; i >= 0; i--) str = paras.innerHTML + "\n" + str;
}
else {
str = HtmlEdit.document.body.innerHTML;
}
return str;
}


function Editor()
{
this.put_HtmlMode=setMode;
this.put_value=putText;
this.get_value=getText;
}

function getText()
{
if (bTextMode)
return HtmlEdit.document.body.innerText;
else
{
cleanHtml();
cleanHtml();
return HtmlEdit.document.body.innerHTML;
}
}

function putText(v)
{
if (bTextMode)
HtmlEdit.document.body.innerText = v;
else
HtmlEdit.document.body.innerHTML = v;
}

function UserDialog(what)
{
if (!validateMode()) return;

editor.document.execCommand(what, true);

pureText = false;
HtmlEdit.focus();
}

function validateMode()
{
if (! bTextMode) return true;
alert("请取消“查看HTML源代码”选项,然后再使用系统编辑功能!");
HtmlEdit.focus();
return false;
}

function setMode(newMode)
{
var cont;
bTextMode = newMode;
if (bTextMode) {
cleanHtml();
cleanHtml();

cont=HtmlEdit.document.body.innerHTML;
HtmlEdit.document.body.innerText=cont;
}
else {
cont=HtmlEdit.document.body.innerText;
HtmlEdit.document.body.innerHTML=cont;
}
HtmlEdit.focus();
}

function foreColor()
{
if (! validateMode()) return;
var arr = showModalDialog("selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
if (arr != null) format('forecolor', arr);
else HtmlEdit.focus();
}


function BackColor()
{
if (! validateMode()) return;
var arr = showModalDialog("selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
if (arr != null) format('BackColor', arr);
else HtmlEdit.focus();
}

function InsertTable()
{
if (! validateMode()) return;
HtmlEdit.focus();
var range = HtmlEdit.document.selection.createRange();
var arr = showModalDialog("table.html", "", "dialogWidth:300pt;dialogHeight:236pt;help:0;status:0");

if (arr != null){
range.pasteHTML(arr);
}
HtmlEdit.focus();
}


function InsertImg()
{
if (! validateMode()) return;
HtmlEdit.focus();
var range = HtmlEdit.document.selection.createRange();
var arr = showModalDialog("image.asp", "", "dialogWidth:430px; dialogHeight:230px; status:0");
if (arr != null)
{
range.pasteHTML(arr);
parent.myform.IncludePic.checked=true;
}
HtmlEdit.focus();
}

function specialtype(Mark){
if (!Error()) return;
var sel,RangeType
sel = HtmlEdit.document.selection.createRange();
RangeType = HtmlEdit.document.selection.type;
if (RangeType == "Text"){
sel.pasteHTML("<" + Mark + ">" + sel.text + "</" + Mark + ">");
sel.select();
}
HtmlEdit.focus();
}

function help()
{
var arr = showModalDialog("help.html", "", "dialogWidth:580px; dialogHeight:460px; status:0");
}

function save()
{
if (bTextMode){
//编辑器嵌入其他网页时使用下面这一句(请将myform改成相应表单名)
//parent.myform.Content.value=HtmlEdit.document.body.innerText;
parent.myform.Content.value=HtmlEdit.document.body.innerText;
//单独打开编辑器时使用下面这一句(请将form1改成相应表单名)  
//  self.opener.myform.content.value+=HtmlEdit.document.body.innerText;
}
else{
//编辑器嵌入其他网页时使用下面这一句(请将myform改成相应表单名)
parent.myform.Content.value=HtmlEdit.document.body.innerHTML;
//单独打开编辑器时使用下面这一句(请将form1改成相应表单名)  
//  self.opener.myform.content.value+=HtmlEdit.document.body.innerHTML;
}
HtmlEdit.focus();
return false;
}

function pic()
{
var arr = showModalDialog("pic.html", "", "dialogWidth:30em; dialogHeight:15em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
a=ss[0];
b=ss[1];
c=ss[2];
d=ss[3];
e=ss[4];
f=ss[5];
g=ss[6];
h=ss[7];
i=ss[8];

var str1;
str1="<img src='"+a+"' alt='"+b+"'"
if(d.value!='')str1=str1+"width='"+d+"'"
if(e.value!='')str1=str1+"height='"+e+"' "
str1=str1+" border='"+i+"' align='"+h+"' vspace='"+f+"' hspace='"+g+"'  style='"+c+"'"
str1=str1+">"
content=HtmlEdit.document.body.innerHTML;
content=content+str1;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}

function hr()
{
var arr = showModalDialog("hr.htm", "", "dialogWidth:30em; dialogHeight:12em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
a=ss[0];
b=ss[1];
c=ss[2];
d=ss[3];
e=ss[4];
var str1;
str1="<hr"
str1=str1+" color='"+a+"'"
str1=str1+" size="+b+"'"
str1=str1+" "+c+""
str1=str1+" align="+d+""
str1=str1+" width="+e
str1=str1+">"
content=HtmlEdit.document.body.innerHTML;
content=content+str1;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}

function FIELDSET()
{
var arr = showModalDialog("fieldset.htm", "", "dialogWidth:25em; dialogHeight:10em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
a=ss[0];
b=ss[1];
c=ss[2];
d=ss[3];
var str1;
str1="<FIELDSET "
str1=str1+"align="+a+""
str1=str1+" style='"
if(c.value!='')str1=str1+"color:"+c+";"
if(d.value!='')str1=str1+"background-color:"+d+";"
str1=str1+"'><Legend"
str1=str1+" align="+b+""
str1=str1+">标题</Legend>内容</FIELDSET>"
content=HtmlEdit.document.body.innerHTML;
content=content+str1;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}

function iframe()
{
var arr = showModalDialog("iframe.htm", "", "dialogWidth:30em; dialogHeight:13em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
a=ss[0];
b=ss[1];
c=ss[2];
d=ss[3];
e=ss[4];
f=ss[5];
g=ss[6];
var str1;
str1="<iframe src='"+a+"'"
str1+=" scrolling="+b+""
str1+=" frameborder="+c+""
if(d!='')str1+=" marginheight="+d
if(e!='')str1+=" marginwidth="+e
if(f!='')str1+=" width="+f
if(g!='')str1+=" height="+g
str1=str1+"></iframe>"
content=HtmlEdit.document.body.innerHTML;
content=content+str1;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}

function swf()
{
var arr = showModalDialog("flash.html", "", "dialogWidth:30em; dialogHeight:10em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
path=ss[0];
row=ss[1];
col=ss[2];
var string;
string="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'  codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width="+row+" height="+col+"><param name=movie value="+path+"><param name=quality value=high><embed src="+path+" pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width="+row+" height="+col+"></embed></object>"
content=HtmlEdit.document.body.innerHTML;
content=content+string;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}

function wmv()
{
var arr = showModalDialog("media.html", "", "dialogWidth:30em; dialogHeight:10em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
path=ss[0];
row=ss[1];
col=ss[2];
var string;
string="<object classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' width="+row+" height="+col+"><param name=Filename value="+path+"><param name='BufferingTime' value='5'><param name='AutoSize' value='-1'><param name='AnimationAtStart' value='-1'><param name='AllowChangeDisplaySize' value='-1'><param name='ShowPositionControls' value='0'><param name='TransparentAtStart' value='1'><param name='ShowStatusBar' value='1'></object>"
content=HtmlEdit.document.body.innerHTML;
content=content+string;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}


function rm()
{
var arr = showModalDialog("rm.html", "", "dialogWidth:30em; dialogHeight:10em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
path=ss[0];
row=ss[1];
col=ss[2];
var string;
string="<object classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' width="+row+" height="+col+"><param name='CONTROLS' value='ImageWindow'><param name='CONSOLE' value='Clip1'><param name='AUTOSTART' value='-1'><param name=src value="+path+"></object><br><object classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'  width="+row+" height=60><param name='CONTROLS' value='ControlPanel,StatusBar'><param name='CONSOLE' value='Clip1'></object>"
content=HtmlEdit.document.body.innerHTML;
content=content+string;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}
function Cmov()
{
var arr = showModalDialog("Cmov.html", "", "dialogWidth:30em; dialogHeight:10em; status:0;help:0");
if (arr != null){
var ss;
ss=arr.split("*")
path=ss[0];
row=ss[1];
col=ss[2];
var string;
//string="[qt="+row+","+col+"]"+path+"[/qt]"
//string="<object classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' width="+row+" height="+col+"><param name='CONTROLS' value='ImageWindow'><param name='CONSOLE' value='Clip1'><param name='AUTOSTART' value='-1'><param name=src value="+path+"></object><br><object classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'  width="+row+" height=60><param name='CONTROLS' value='ControlPanel,StatusBar'><param name='CONSOLE' value='Clip1'></object>"
string="<embed src="+path+" width="+row+" height="+col+" autoplay=true loop=false controller=true playeveryframe=false cache=false scale=TOFIT bgcolor=#000000 kioskmode=false targetcache=false pluginspage=http://www.apple.com/quicktime/>"


content=HtmlEdit.document.body.innerHTML;
content=content+string;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}

function fly()
{
var arr = showModalDialog("fly.html", "", "dialogWidth:30em; dialogHeight:10em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
path=ss[0];
//row=ss[1];
//col=ss[2];
var string;
string="<marquee width=90% behavior=alternate scrollamount=3>"+path+"</marquee>"
content=HtmlEdit.document.body.innerHTML;
content=content+string;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}
function move()
{
var arr = showModalDialog("move.html", "", "dialogWidth:30em; dialogHeight:10em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
path=ss[0];
//row=ss[1];
//col=ss[2];
var string;
string="<MARQUEE scrollamount=3>"+path+"</marquee>"
content=HtmlEdit.document.body.innerHTML;
content=content+string;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}


function glow()
{
var arr = showModalDialog("glow.html", "", "dialogWidth:30em; dialogHeight:10em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
path=ss[0];
row=ss[1];
var kk;
kk=row.split(",")
row1=kk[0]
row2=kk[1]
row3=kk[2]
var string;

//string="[glow="+row+"]"+path+"[/glow]"
string="<table width="+row1+" style='filter:glow(color="+row2+", strength="+row3+")'>"+path+"</table>"
content=HtmlEdit.document.body.innerHTML;
content=content+string;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}

function shadow()
{
var arr = showModalDialog("shadow.html", "", "dialogWidth:30em; dialogHeight:10em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
path=ss[0];
row=ss[1];
var kk;
kk=row.split(",")
row1=kk[0]
row2=kk[1]
row3=kk[2]
var string;
string="<table width="+row1+" style='filter:shadow(color="+row2+", strength="+row3+")'>"+path+"</table>"
content=HtmlEdit.document.body.innerHTML;
content=content+string;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}

function csound()
{
var arr = showModalDialog("csound.html", "", "dialogWidth:30em; dialogHeight:10em; status:0;help:0");

if (arr != null){
var ss;
ss=arr.split("*")
path=ss[0];
//row=ss[1];
//col=ss[2];
var string;
//string="[sound]"+path+"[/sound]"
string="<a href='"+path+"' target=_blank><IMG SRC=image/mid.gif border=0 alt='mid背景音乐'></a><bgsound src='"+path+"' loop='-1'>"
content=HtmlEdit.document.body.innerHTML;
content=content+string;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}

function insertsmilie(smilieface){
content=HtmlEdit.document.body.innerHTML;
string="<a href='"+smilieface+"' target=_blank><IMG SRC=image/mid.gif border=0 alt='mid背景音乐'></a><bgsound src='"+smilieface+"' loop='-1'>"

content=content+string;

HtmlEdit.document.body.innerHTML=content;
// document.frmAnnounce.Content.value+=smilieface;
}
</script>
<script type="text/javascript">

function init(){
var date = new Date();
var year = date.getFullYear();
var month = date.getMonth() + 1;
var day = date.getDate();
var monthNew = new String(month);
var dayNew = new String(day);
if (monthNew.length < 2) {
monthNew = "0" + monthNew;
}
if (dayNew.length < 2) {
dayNew = "0" + dayNew;
}
document.("taskVO.startTime").value = year + "-" + monthNew + "-" + dayNew;
}

if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.txt{display: none;}\n')
document.write('</style>\n')
}

function sloths(obj){
var t1=document.getElementById("t1");
var t2=document.getElementById("t2");
if(obj=="t1"){
//显示t1,隐藏t2
t2.style.display="none";
t1.style.display="block";
SlideBar.setValue("cai","100");
}else if(obj=="t2"){
//显示t2,隐藏t1
t1.style.display="none";
t2.style.display="block";
SlideBar.setValue("cai","70.00");
}
}
</script>
<style type="text/css">
.box { padding:0px}
.slidebox { height:24px; width:213px; overflow:hidden; position:relative;}
.lineBox { padding:0 6px;}
.slidebox .line {background:url(projectManagement/images/bg.gif) repeat-x left bottom; width:100%; height:24px; cursor:pointer}
.slidebox .cursor { position:absolute; z-index:20; top:0px; left:0px; height:21px; width:11px;  overflow:hidden; background:url(projectManagement/images/cursor.gif) no-repeat; cursor:pointer; filter:alpha(opacity=90); opacity:0.9}
#t1 {display:block;}
</style>
</head>
<body>
<form name="form1" method="post" action="">
  <table width="63%" height="278" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#CCCCCC" class="table_style_add">
    <tr>
      <td width="6%" height="276" colspan="1" class="table_tr_bg01"> 描述</td>
      <td width="94%"  class="table_tr_bg01"><table width="98%" border="1" cellpadding="4" cellspacing="0" bordercolor="#CCCCCC"  class="table_tr_bg">
          <tr>
            <td>字体
              <select name="selectFont" onChange="format('fontname', selectFont.options[selectFont.selectedIndex].value);selectFont.options[0].selected = true;"  style="font-family: 宋体; font-size: 9pt" onmouseover="window.status='选择选定文字的字体。';return true;" onmouseout="window.status='';return true;">
                <option selected>选择字体</option>
                <option value="宋体">宋体</option>
                <option value="楷体_GB2312">楷体</option>
                <option value="新宋体">新宋体</option>
                <option value="黑体">黑体</option>
                <option value="隶书">隶书</option>
                <option value="幼圆">幼圆</option>
                <option value="Andale Mono">Andale Mono</option>
                <option value=Arial>Arial</option>
                <option value="Arial Black">Arial Black</option>
                <option value="Book Antiqua">Book Antiqua</option>
                <option value="Century Gothic">Century Gothic</option>
                <option value="Comic Sans MS">Comic Sans MS</option>
                <option value="Courier New">Courier New</option>
                <option value=Georgia>Georgia</option>
                <option value=Impact>Impact</option>
                <option value=Tahoma>Tahoma</option>
                <option value="Times New Roman" >Times New Roman</option>
                <option value="Trebuchet MS">Trebuchet MS</option>
                <option value="Script MT Bold">Script MT Bold</option>
                <option value=Stencil>Stencil</option>
                <option value=Verdana>Verdana</option>
                <option value="Lucida Console">Lucida Console</option>
              </select>
              <select language="javascript"  id="select2" title="字号大小" onChange="format('fontsize',this[this.selectedIndex].value);this[0].selected = true;" name="select" onmouseover="window.status='选择选定文字的字号大小。';return true;" onmouseout="window.status='';return true;">
                <option class="heading" selected>字号 </option>
                <option value="7">一号 </option>
                <option value="6">二号 </option>
                <option value="5">三号 </option>
                <option value="4">四号 </option>
                <option value="3">五号 </option>
                <option value="2">六号 </option>
                <option value="1">七号</option>
              </select>
              <img src="b.gif" align="middle" alt="粗体" onClick="format('bold', '')" style="cursor: hand;" /> <img src="i.gif" align="absmiddle" alt="斜体" onClick="format('italic', '')" style="cursor: hand;" /> <img src="u.gif" align="absmiddle" alt="下划线" onClick="format('underline', '')" style="cursor: hand;" /> <img src="left.gif" align="absmiddle" onClick="format('Justifyleft', '')" style="cursor: hand;" alt="左对齐" /> <img src="center.gif" align="absmiddle" border="0" alt="居中" onClick="format('JustifyCenter', '')" style="cursor: hand;" /> <img src="right.gif" align="absmiddle" onClick="format('JustifyRight', '')" style="cursor: hand;" alt="右对齐" /> </td>
          </tr>
          <tr>
            <td height="228" class="table_tr_bg01"><iframe class="HtmlEdit" id="HtmlEdit" marginheight="1" marginwidth="1" width="100%" height="80" style="width: 542px; height: 220px; margin: 0px; padding: 0px;"> </iframe></td>
          </tr>
        </table>
        <input type="submit" name="Submit" value="获取输入" onClick="alert(document.getElementById('HtmlEdit').value)">
    </tr>
  </table>
</form>
</body>
</html>
less is more
ferret
千年狐狸
千年狐狸
  • UID21816
  • 注册日期2007-11-11
  • 最后登录2013-03-22
  • 发帖数1114
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
1楼#
发布于:2009-04-28 09:28
把所有没通过w3c验证的地方和在firefox载入时错误控制台报错的地方都改了就肯定支持firefox了...
哪可能有人有耐心帮你一处处的改.
游客

返回顶部