How to handle the problem of JSP display text too long _jsp programming

Source: Internet
Author: User
Copy Code code as follows:

<tr>
&LT;TD height= "60px;" width= "20%" align= "right" valign= "top" >
<font style= "Font-weight:bold;" > Title:</font>
</td>
&LT;TD height= "60px;" width= "80%" align= "left" valign= "Top" >
<a id= "span_content" 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?) No ': schedule.content) >70} ' >${fn:substring (schedule.content eq null?) No ': schedule.content,0,70)}...</c:if></a>
<span id= "Span_content_span ><c:if test=" ${fn:length (schedule.content eq null?) No ': schedule.content) <=70} ' >
${schedule.content null? ' No ':schedule.content}</c:if></span>
</td>
<div id= "Span_div" class= "Showdiv" style= "Display:none" >
${schedule.content eq null? ' None ': Schedule.content}
</div>
</tr>
<script type= "Text/javascript" >
function Showdiv1 (Objstr,str,ev) {//Display object based on mouse position, parameter EV as event
Position of the Var objx,objy;//object (x,y)
The (x) horizontal position of the Var mousex=10;//object from the width of the mouse
The (Y) vertical position of the Var mousey=-2;//object is away from the height of the mouse
var obj = document.getElementById (OBJSTR);
obj.style.display=str;//Show or hide objects
Obj.style.left = ' 200px ';
Obj.style.top = ' 110px ';
}
</script>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.