Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JSP中单元格列上的工具提示,使用Javascript_Javascript_Tooltip_Cell - Fatal编程技术网

JSP中单元格列上的工具提示,使用Javascript

JSP中单元格列上的工具提示,使用Javascript,javascript,tooltip,cell,Javascript,Tooltip,Cell,我想在一列单元格上显示工具提示,这些单元格使用HTML和Bean写标记显示在JSP上 我已经尝试使用Title属性来显示工具提示,但它没有显示 我还尝试过使用onMouseOver、onMouseOver、onMouseOver属性,我试图调用Javascript中的函数,该函数可能会显示工具提示 但是,问题是,忘记了工具提示dispaly逻辑,它甚至不显示在事件调用函数中编写的单个警报语句。但实际上,它停止显示表的整个数据,这可能是JSP编译问题 表的显示逻辑粘贴在下面 表- var one_

我想在一列单元格上显示工具提示,这些单元格使用HTML和Bean写标记显示在JSP上

我已经尝试使用Title属性来显示工具提示,但它没有显示

我还尝试过使用onMouseOver、onMouseOver、onMouseOver属性,我试图调用Javascript中的函数,该函数可能会显示工具提示

但是,问题是,忘记了工具提示dispaly逻辑,它甚至不显示在事件调用函数中编写的单个警报语句。但实际上,它停止显示表的整个数据,这可能是JSP编译问题

表的显示逻辑粘贴在下面

表-

var one_rte_HTML = 
            '<td><table width="890" align="left" cellspacing="0" cellpadding="0" style="border-top:solid 1px black;">'+
            '   <tr class="<bean:write name="couleurListe"/>" height="25" style="font-size:10pt">'+
            '       <td align="center" width="155"><bean:write name="elementSelectionnableRTE" property="rte.d_date"/></td>'+
            '       <td align="center" width="70"><bean:write name="elementSelectionnableRTE" property="rte.v_typeRTE" /></td>'+
            '       <td align="center" width="70"><bean:write name="elementSelectionnableRTE" property="rte.v_priorite"/></td>'+
            '       <td width="1" style="border-left:solid 1px black"><div style="width:1px"></div></td>'+
            '   </tr>'+
            '</table></td>';
            rt_index = add_node(foldersTree,'',one_rte_HTML);

function add_node(parentfolderObject, itemLabel, string_HTML) {
var newObj;

newObj = insFld(parentfolderObject, gFld(itemLabel, "javascript:parent.op()"))
newObj.prependHTML = string_HTML
return newObj
}

在这里,我需要显示having property=rte.v_typeRTE的工具提示。

我已经得到了问题的答案 事情并不像我想象的那么大。。通过使用简单的DIV标记解决了这个问题

除了最初的问题,我的要求是关于动态工具提示。。i、 e.如果属性返回CREPAR,我需要显示X工具提示,如果属性返回CIDPAR,我需要显示Y工具提示

这是我的新代码。。你会看到很少 逻辑:平等 和 div 添加到它的标签

var one_rte_HTML = 
        '<td><table width="890" align="left" cellspacing="0" cellpadding="0" style="border-top:solid 1px black;">'+
        '   <tr class="<bean:write name="couleurListe"/>" height="25" style="font-size:10pt">'+
        '       <td align="center" width="155"><bean:write name="elementSelectionnableRTE" property="rte.d_date"/></td>'+
        '       <logic:equal name="elementSelectionnableRTE" property="rte.v_typeRTE" value="CREPAR">'+
        '       <td align="center" width="70"><div title="Création d’un PAR"><bean:write name="elementSelectionnableRTE" property="rte.v_typeRTE"/></div></td></logic:equal>'+
        '       <logic:equal name="elementSelectionnableRTE" property="rte.v_typeRTE" value="CIDPAR">'+
        '       <td align="center" width="70"><div title="Changement d’identifiant d’un PAR"><bean:write name="elementSelectionnableRTE" property="rte.v_typeRTE"/></div></td></logic:equal>'+
        '       <td align="center" width="70"><bean:write name="elementSelectionnableRTE" property="rte.v_priorite"/></td>'+
        '       <td width="1" style="border-left:solid 1px black"><div style="width:1px"></div></td>'+
        '   </tr>'+
        '</table></td>';
        rt_index = add_node(foldersTree,'',one_rte_HTML);

谢谢你

@BalusC-同意,这不是JSP问题,但我之所以这么说是因为我在JSP中使用了代码。我原以为可以通过在JSP中使用一些CSS和JS来解决这个问题。谢谢你让它更准确!!:
var one_rte_HTML = 
        '<td><table width="890" align="left" cellspacing="0" cellpadding="0" style="border-top:solid 1px black;">'+
        '   <tr class="<bean:write name="couleurListe"/>" height="25" style="font-size:10pt">'+
        '       <td align="center" width="155"><bean:write name="elementSelectionnableRTE" property="rte.d_date"/></td>'+
        '       <logic:equal name="elementSelectionnableRTE" property="rte.v_typeRTE" value="CREPAR">'+
        '       <td align="center" width="70"><div title="Création d’un PAR"><bean:write name="elementSelectionnableRTE" property="rte.v_typeRTE"/></div></td></logic:equal>'+
        '       <logic:equal name="elementSelectionnableRTE" property="rte.v_typeRTE" value="CIDPAR">'+
        '       <td align="center" width="70"><div title="Changement d’identifiant d’un PAR"><bean:write name="elementSelectionnableRTE" property="rte.v_typeRTE"/></div></td></logic:equal>'+
        '       <td align="center" width="70"><bean:write name="elementSelectionnableRTE" property="rte.v_priorite"/></td>'+
        '       <td width="1" style="border-left:solid 1px black"><div style="width:1px"></div></td>'+
        '   </tr>'+
        '</table></td>';
        rt_index = add_node(foldersTree,'',one_rte_HTML);