how to get small rectangular box or small window
Dear sir,
First i am calling a one jsp in a url ,it will display that perticular jsp.In this jsp i am showing a one table ,that contains attributes like id,subject,matter,matterfile from,status..etc.In a matter column i have to show a small content with hyperlink onmousemoves over it it has to show a small retangularbox or small window in that it has to show a full content of a message within a large window on mouse moves on a particular hyperlink .How to do it sir please help me .
The following is my code using this am getting starting few words and also a full message ,so please help me if any changes in a code...
MassMailDetailsDTO massDetails = (MassMailDetailsDTO) hashtable.get(i);
strMatter = massDetails.getMatter();
String strString = "<b><u>"+"Message "+((String)strMatter).replaceAll(",","<br>");
String[] subStringArray=strMatter.split("<br>");
<tr>
<td><%=value%></td>
<td><%=intId%></td>
<td><%=strSubject%></td>
<td valign="middle" align="center"> <a href="#"><%=subStringArray[0]%><span> <%=strString %></span></a></td>
<td><a href="<%=strMatterFile%>"><%=strMatterFile%></a></td>
<td><%=strStatus%></td>
<td><%=strFrom%></td>
</tr>
Thanks and Regards
Harini Veerapur.
View Answers
May 11, 2010 at 5:15 PM
Hi Friend,
Try the following code:
<%@page import="java.sql.*"%>
<script type="text/javascript">
function show(item,message){
hp = document.getElementById("div");
hp.innerHTML = message;
hp.style.top = item.offsetTop + 18;
hp.style.left = item.offsetLeft + 20;
hp.style.visibility = "Visible";
}
function hide(){
hp = document.getElementById("div");
hp.style.visibility = "Hidden";
}
</script>
<body onload="hide();">
<table border=1>
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection connection = DriverManager.getConnection("jdbc:
mysql://localhost:3306/test","root";, "root");
Statement st=connection.createStatement();
ResultSet rs=st.executeQuery("select * from email");
String message="";
while(rs.next()){
String from=rs.getString(2);
String to=rs.getString(3);
String subject=rs.getString(4);
message=rs.getString(5);
String n=message.trim().substring(0, 5);
String mess=n+".............";
%>
<tr><td><%=from%></td><td><%=to%></td><td><%=subject%></td><td style="cursor:default;" onMouseOver="show(this,'<%=message%>');" onMouseOut="hide();"><%=mess%><div id="div" style="border: 2px solid rgb(0, 0, 0); width: 250px; height: 100px;background-color:blue;visibility:hidden; position:absolute; top:0; left:0;"></div></td>
</tr>
<%
}%>
</table>
</body>
Thanks
Related Tutorials/Questions & Answers:
Small clarificationSmall clarification This function is used to search and select particular word.
In this function document.getElementById('d')); getElementById is used to
get the element by using id,but here there is no id with 'd', what
Advertisements
Small Bug How to solve in my codeSmall Bug
How to solve in my code String season="";
pst = con.prepareStatement("SELECT DISTINCT(Season) season FROM specialdates where Regid...") + ",";
it shows bug in findbugs tool.. but it executes successfully
how to solve
ModuleNotFoundError: No module named 'small'ModuleNotFoundError: No module named '
small' Hi,
My Python program is throwing following error:
ModuleNotFoundError: No module named '
small'
How to remove the ModuleNotFoundError: No module named '
small'
ModuleNotFoundError: No module named 'small'ModuleNotFoundError: No module named '
small' Hi,
My Python program is throwing following error:
ModuleNotFoundError: No module named '
small'
How to remove the ModuleNotFoundError: No module named '
small'
Small business administration classesSmall business administration classes Hi,
How Small business...
Hi,
The manage of any
small business are doing a lot of different types... process of the business.
So, if you are a manager of
small business then you
small query - JSP-Servletsmall query
how to set value to textbox on browser side which is retrived from the database? Hi friend,
Plz explain problem in details which technology you have used e.g. JSP/Servlet/Java etc...
For more
Small Business Marketing ServicesSmall Business Marketing Services
These days
Small Business around the work is looking for cheap, reliable and
result oriented
Small Business Marketing Services. The priority of
Small
Business is to find the best
Small Business
Cloud Computing Solutions for Small BusinessCloud Computing Solutions for
Small Business Hi,
Which Cloud Computing Solutions for
Small Business is good.
How to choose best Cloud Computing... looking for the computing solutions.
How Cloud Computing Solutions for
Small Business
small code - JDBCsmall code Hi Team,
I want to write program for my team in this code i have list of websites
when ever this site is down this code shows site is down message and if site is up it will give message site is up.
Thanks
small java project - Java Beginnerssmall java project i've just started using java at work and i need to
get my self up to speed with it, can you give me a
small java for beginners project to work on.
your concern will be highly appreciated
small java project - Java Beginnerssmall java project i've just started using java at work and i need to
get my self up to speed with it, can you give me a
small java for beginners project to work on.
your concern will be highly appreciated
Small business management courses onlineSmall business management courses online
Small-scale business today has... for running a
small-scale business or becoming a large business entrepreneur. Management... is of utmost important like big business organisation.
For
small scale business
Small typo at SCJP Module-1 Question-6Small typo at SCJP Module-1 Question-6 Hi Team, This is a awesome site which is serving lot of peoples in learning java effectivly, thanks alot for that,
A
small typo at "SCJP Module-1 Question-6", in spite of "a.method
Struts small complite project - StrutsStruts
small complite project I am a beginner in struts I want to do a project in Srtuts .can u please send me a
small complete struts project .
So that I can by taking the reference of that I can write good and effective
Social Media Marketing for Small BusinessSocial Media Marketing for
Small Business
We are providing Social Media Marketing for
Small Business and
small website
owners at very attractive cost. Our Social Media Marketing services for
Small
Business are well designed and gives
Human resources for small business when it comes the matter of
small-scale industries. Needless to say HR is also... it is difficult situation for the
small-scale industries with its HR effect...
Such
small-scale industries, which have not its own HR desk, can contact
how to get combo box value - JSP-Servlethow to
get combo
box value i have created 1 servlet & 1 jsp page... in combo
box in jsp page:
(
small part of my code)
">
now i want... to store that id in database.
how to
get that value??? Hi Friend
What are prospects of small Business management?Small business management is the process by which all the available resources.... As by name, it is the case of
small business management so such business activity starts with a very low cost and on a part time basis.
Small business starts
Html+jsp+database is enough to do the small operationHtml+jsp+database is enough to do the
small operation Hai ,
If u want to do simple insetion and data retrival operation throw jsp ?.you need not to bother about whole code.just u consentration on html,ajax,jsp,any db.here i
Top 10 CRM Software for Small Business across the business establishments,
small or big. Though business biggies... highest productivity and business output,
small businesses only for few years... of CRM software for
small business and though some of them charge almost a premium
how to get selected name from combo box how to
get selected name from combo
box i have fetched all records of worker i.e worker name. on a test.jsp
and dispayed it into combo
box ...my question is that.............
i havt to
get particular id of worker on selection
how to get selected name from combo box how to
get selected name from combo
box i have fetched all records of worker i.e worker name. on a test.jsp
and dispayed it into combo
box ...my question is that.............
i havt to
get particular id of worker on selection
how to get selected name from combo boxhow to
get selected name from combo box i have fetched all records of worker i.e worker name. on a test.jsp
and dispayed it into combo
box ...my question is that.............
i havt to
get particular id of worker on selection
how to get selected name from combo boxhow to
get selected name from combo box i have fetched all records of worker i.e worker name. on a test.jsp
and dispayed it into combo
box ...my question is that.............
i havt to
get particular id of worker on selection
how to get selected name from combo boxhow to
get selected name from combo box i have fetched all records of worker i.e worker name. on a test.jsp
and dispayed it into combo
box ...my question is that.............
i havt to
get particular id of worker on selection
Best Cloud Computing Applications for Small Business of computing. In relating here best cloud computing applications for
small business... in selecting some of the best cloud computing applications for
small business we... cloud computing applications for
small business. ADS_TO_REPLACE_1
Google Drive
Top 10 Benefits of Cloud Computing for Small BusinessTop 10 Benefits of Cloud Computing for
Small Business
For some years... for
small business are simply enormous. Just until a few years back a
small... specific. Cloud computing is continuing to change the way
small business
How to Make iPhone Window ApplicationHow to Make iPhone
Window Application Hi,
For Making iphone
window application, what parameters i have to follow or provide example related to iphone
window application.
Thanks
WindowWindow
how to create an
window of a person like regestration form