1.<tr onmouseover="this.style.background='BDDFFF'" onmouseout="this.style.background='#FFFFFF'" >

解决方案 »

  1.   

    <script>
    function over(){
    var o = event.srcElement;
    if(o.tagName == "TD"){
    o.bgColor = "red";
    }
    }
    function out(){
    var o = event.srcElement;
    if(o.tagName == "TD"){
    o.bgColor = "#eeeeee";
    }
    }
    document.onmouseover = over;
    document.onmouseout = out;
    </script>
    <table>
        <tr>
          <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="1"></td>
          <td bgcolor="#EEEEEE">方法法方法法方法法法</td>
          <td bgcolor="#EEEEEE">方法法方法</td>
        </tr>
        <tr>
          <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="2"></td>
          <td bgcolor="#EEEEEE">方法法方法法方法法法</td>
          <td bgcolor="#EEEEEE">方法法方法</td>
        </tr>
        <tr>
          <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="3"></td>
          <td bgcolor="#EEEEEE">方法法方法法方法法法</td>
          <td bgcolor="#EEEEEE">方法法方法</td>
        </tr>
    </table>
      

  2.   

    <script>
    function over(){
    var o = event.srcElement;
    if(o.tagName == "TD"){
    for(i=0;i<o.parentNode.childNodes.length;i++){
    o.parentNode.childNodes.item(i).bgColor = "red";
    }
    }
    }
    function out(){
    var o = event.srcElement;
    if(o.tagName == "TD"){
    if(!o.parentNode.childNodes.item(0).childNodes.item(0).checked){
    for(i=0;i<o.parentNode.childNodes.length;i++){
    o.parentNode.childNodes.item(i).bgColor = "#eeeeee";
    }
    }
    }
    }
    function check(){
    var o =event.srcElement;
    if(o.tagName == "INPUT"){
    for(i=0;i<document.getElementsByTagName("TD").length;i++){
    document.getElementsByTagName("TD")[i].bgColor = "#eeeeee";
    }
    if(o.checked){
    for(i=0;i<o.parentNode.parentNode.childNodes.length;i++){
    o.parentNode.parentNode.childNodes.item(i).bgColor = "red";
    }
    }
    }
    }
    document.onmouseover = over;
    document.onmouseout = out;
    document.onclick = check;
    </script>
    <table>
        <tr bgcolor="red">
          <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="1"></td>
          <td bgcolor="#EEEEEE">方法法方法法方法法法</td>
          <td bgcolor="#EEEEEE">方法法方法</td>
        </tr>
        <tr>
          <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="2"></td>
          <td bgcolor="#EEEEEE">方法法方法法方法法法</td>
          <td bgcolor="#EEEEEE">方法法方法</td>
        </tr>
        <tr>
          <td bgcolor="#EEEEEE"><input type="radio" name="radiobutton" value="3"></td>
          <td bgcolor="#EEEEEE">方法法方法法方法法法</td>
          <td bgcolor="#EEEEEE">方法法方法</td>
        </tr>
    </table>
      

  3.   

    <P><IMG src="/upload/200503041000564211.gif" id ="woyingjie1"></P>
    <input type="hidden" name="image" id="woyingjie2">iframe中
    window.top.document.getElementById("woyingjie1").src = imageSrc;
    window.top.document.getElementById("woyingjie2").value = imageSrc; 
      

  4.   

    <style>
    tr
    {
      over:expression(this.onmouseover=function(){this.style.backgroundColor='lightblue'});
      out:expression(this.onmouseout=function(){this.style.backgroundColor='white'});
      click:expression(this.onclick=function(){this.childNodes[0].childNodes[0].checked=true});
    }</style><body>
    <table>
        <tr>
          <td><input type="radio" name="radiobutton" value="1"></td>
          <td>方法法方法法方法法法</td>
          <td>方法法方法</td>
        </tr>
        <tr>
          <td><input type="radio" name="radiobutton" value="2"></td>
          <td>方法法方法法方法法法</td>
          <td>方法法方法</td>
        </tr>
        <tr>
          <td><input type="radio" name="radiobutton" value="3"></td>
          <td>方法法方法法方法法法</td>
          <td>方法法方法</td>
        </tr>
    </table>
    </body>
      

  5.   

    自己看看 MSDN 中的例子就能解决的呢~~
      

  6.   

    你用的是eWebEditor的在线编辑器
    要是还没解决的话MSN中给你讲现在想睡觉了
    MSN已发给你的短信中
      

  7.   

    gzty(风逍遥) 我加了你了  请教下怎么解决 我用的是 飞鱼修改的jsp半的eWebEditorwoyingjie(沃英杰) 图片那里是没id的 只有
    <IMG src="/upload/200503041000564211.gif">
      

  8.   

    window.top.document.getElementsByTagName("woyingjie1")[0].src = imageSrc;
    window.top.document.getElementByTagName("woyingjie2")[0].value = imageSrc; 
      

  9.   

    window.top.document.getElementsByTagName("woyingjie2")[0].value = imageSrc; 
      

  10.   

    表格TR变色就不说了
    上面都说尽了2。
    <input type="hidden" name="content">
    <input type="hidden" name="image">
    //以下iframe加了参数&savepathfilename=image
    <iframe id="eWebEditor1" src="../editor/eWebEditor.jsp?id=content&style=standard&savepathfilename=image" frameborder="0" scrolling="no" width="650" height="350"></iframe>
    //ps,如果上传了多个文件,这个image的内容以|格开,自己处理一下
      

  11.   

    scoutlin(梅川库子) 你这个方法不行 我用的是修改过的jsp版本 不是官方的asp版本 我在官方网站上看到过这个方法 采用了 却不行
      

  12.   

    怎么可以在 提交时用js 得到content里的图片名 附给 一个隐藏域 象这里的http://community.csdn.net/Expert/topic/3837/3837779.xml?temp=3.289431E-02