Solution to the problem of too long JSP display text

Time:2021-4-11
Copy codeThe code is as follows:
<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( schedule.content EQ null?’none ‘: schedule.content )>70}”>${fn:substring( schedule.content EQ null?’none ‘: schedule.content ,0,70)}…</c:if></a>
        <span><c:if test=”${fn:length( schedule.content EQ null?’none ‘: schedule.content )<=70}”>
        ${ schedule.content Null? ‘none’: schedule.content }</c:if></span>
    </td>
     <div style=”display:none”>
            ${ schedule.content EQ null?’none ‘: schedule.content }
    </div>   
</tr>
<script type=”text/javascript”>
Function showdiv1 (objstr, STR, EV) {/ / displays the object according to the mouse position, and the parameter EV is event
Var Objx, objy; / / position of object (x, y)
Var mousex = 10; / / the distance between the (x) horizontal position of the object and the width of the mouse
Var mousey = – 2; / / the height of the (y) vertical position of the object from the mouse
                    var obj = document.getElementById(objstr);
                    obj.style.display=str ; / / show or hide objects
                    obj.style.left =’200px’;
                    obj.style.top =’110px’;
                }
</script>

Recommended Today

A detailed explanation of the differences between Perl and strawberry Perl and ActivePerl

Perl is the abbreviation of practical extraction and report language “practical report extraction language”. Application of activestateperl and strawberry PERL on Windows platformcompiler。 Perl   The relationship between the latter two is that C language and Linux system have their own GCC. The biggest difference between activestate Perl and strawberry Perl is that strawberry Perl […]