SoFunction
Updated on 2025-04-07

Solution to the problem of long text display of jsp


<tr>
    <td height="60px;" width="20%" align="right" valign="top">
<font style="font-weight: bold;">Title:</font>
     </td>
    <td height="60px;" width="80%" align="left" valign="top">
        <a href="#" style="color: white;" onmousemove="showdiv('span_div','',event)" onmouseover="showdiv('span_div','',event)" onmouseout="showdiv('span_div','none',event)">
<c:if test="${fn:length( eq null?'none':)>70}">${fn:substring( eq null?'none':,0,70)}...</c:if></a>
<span ><c:if test="${fn:length( eq null?'none':)<=70}">
${ null?'None':}</c:if></span>
    </td>
     <div class="showDiv" style="display:none">
${ eq null?'None':}
    </div>   
</tr>
<script type="text/javascript">
function showdiv1(objstr,str,ev) {//Show the object according to the mouse position, the parameter ev is event
var ObjX,ObjY;//The position of the object (x,y)
var mouseX=10;//The (x) horizontal position of the object is from the width of the mouse
var mouseY=-2;//The vertical position of the object (y) is from the height of the mouse
                    var obj = (objstr);
=str;//Show or hide objects
                    ='200px';
                    ='110px';
                }
</script>