首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

请帮着看一下。多谢

2012-02-19 
请帮着看一下。谢谢。在输入文本时,为什么无法改变颜色,字体等功能。总是说缺少对象。请帮着看一下formnamef

请帮着看一下。谢谢。
在输入文本时,为什么无法改变颜色,字体等功能。总是说缺少对象。请帮着看一下

<form   name=form1   method   = "post "   action= "txlsadd.jsp "   onsubmit= "return   checks() ">
<table   width= "747 "   height= "549 "   border= "1 ">
    <tr>
        <td   width= "55 "   align=right   bgcolor= "#f1f1f1 "   height= "65 "> <img   src= "/bwl/images/images/lwcontent.gif "   width= "41 "   height= "42 "> </td>
        <td   width= "538 "   bgcolor= "#e1ebba "> <b> 通讯录内容 </b> </td>
    </tr>
    <tr>
        <td   height= "42 "bgcolor= "#f1f1f1 ">
            <div   align= "right "> 标题:   </div> </td>
        <td   bgcolor= "#e1ebba "> <input   name= "title "   type= "text "   size= "40 "   maxlength= "100 ">
                <b> &nbsp; <font   color= "#FF0000 "> 必填 </font> </b> </td>
    </tr>
    <tr>
        <td   height= "52 "   valign=top   bgcolor= "#f1f1f1 "> <div   align= "right "> 正文: </div> </td>
        <td   bgcolor= "#e1ebba ">
            <select   name= "selectFont "   id= "select "   onChange= "setFont(this.options[this.selectedIndex].value) ">
                <option   selected> 选择字体 </option>
                <option   value= "宋体 "> 宋体 </option>
                <option   value= "黑体 "> 黑体 </option>
                <option   value= "隶书 "> 隶书 </option>
                <option   value= "幼圆 "> 幼圆 </option>
                <option   value= "仿宋_GB2312 "> 仿宋_GB2312 </option>
                <option   value= "Arial "> Arial </option>
                <option   value= "Times   New   Roman "> Times   New   Roman </option>
            </select>
            <select   name= "selectSize "   id= "select2 "   onChange= "setSize(this.options[this.selectedIndex].value) ">
                <option   selected> 字体大小 </option>
                <option   value= "6 "> 6 </option>
                <option   value= "8 "> 8 </option>
                <option   value= "10 "> 10 </option>


                <option   value= "12 "> 12 </option>
                <option   value= "14 "> 14 </option>
                <option   value= "18 "> 18 </option>
                <option   value= "24 "> 24 </option>
                <option   value= "36 "> 36 </option>
            </select>
            <select   name= "selectColor "   id= "select3 "   onChange= "setColor(this.options[this.selectedIndex].value) ">
                <option   value= " "   selected> 选择颜色 </option>
                <option   value= "red "> 红色 </option>
                <option   value= "blue "> 蓝色 </option>
                <option   value= "yellow "> 黄色 </option>
                <option   value= "green "> 绿色 </option>
            </select>
            <br>
            <a   href= "javascript: "   onClick= "addBold() "> <img   src= "images/ubb/bold.gif "   alt= "字体加粗 "   width= "20 "   height= "20 "   border= "0 "> </a>   <a   href= "javascript: "   onClick= "addEm() "> <img   src= "images/ubb/italic.gif "   alt= "字体倾斜 "   width= "20 "   height= "20 "   border= "0 "> </a>   <img   src= "images/ubb/separator.gif "   width= "6 "   height= "20 ">   <a   href= "javascript: "   onClick= "addLeft() ">   <img   src= "images/ubb/left.gif "   alt= "字体左对齐 "   width= "20 "   height= "20 "   border= "0 "> </a>   <a   href= "javascript: "   onClick= "addCenter() ">   <img   src= "images/ubb/center.gif "   alt= "字体居中 "   width= "20 "   height= "20 "   border= "0 "> </a>   <a   href= "javascript: "   onClick= "addRight() ">   <img   src= "images/ubb/right.gif "   alt= "字体靠右 "   width= "20 "   height= "20 "   border= "0 "> </a>   <img   src= "images/ubb/separator.gif "   width= "6 "   height= "20 ">   <a   href= "javascript: "   onClick= "addimages() "> <img   src= "images/ubb/image.gif "   alt= "引用外部图片 "   width= "20 "   height= "20 "   border= "0 "> </a> &nbsp;   <img   src= "images/ubb/date.gif "   alt= "插入日期 "   width= "20 "   height= "20 ">   <img   src= "images/ubb/separator.gif "   width= "6 "   height= "20 ">   <a   href= "javascript: "   onClick= "addQuote() "> <img   src= "images/ubb/quote.gif "   alt= "插入引用 "   width= "20 "   height= "20 "   border= "0 "> </a> &nbsp;   <a   href= "javascript: "   onClick= "addURL() "> <img   src= "images/ubb/link.gif "   alt= "加入超链接 "   width= "20 "   height= "20 "   border= "0 "> </a> &nbsp;   <a   href= "javascript: "   onClick= "addEmail() "> <img   src= "images/ubb/email.gif "   alt= "插入Email "   width= "20 "   height= "20 "   border= "0 "> </a>


            <p>
        <p>
            <textarea   name= "content "   cols= "75 "   rows= "13 "     class= "form "     id= "textarea "   wrap= "VIRTUAL "   style= "background-color:#E4E4E4 "> </textarea>  
        </td>
        <br>
    </tr>
    <tr>

[解决办法]
代码贴完了吗

setFont setColor setSize。。。。这些function都没有定义

热点排行