473,322 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to expand a row??

I have a table in which there are several rows , I would like to know how to expand a row when mouse moves over that particular row and give some description about and gets back to normal when mouse out.

this is my table

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>css table</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  6. <style type="text/css">
  7. <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
  8.  
  9. function mouseOver()
  10. {
  11. status="hi"
  12. }
  13.  
  14.  
  15. * {
  16.   margin: 0;
  17.   padding: 0
  18. }
  19.  
  20. .container {
  21.   background-color:#FFA500;
  22.   width: 700px;
  23.   border: 1px solid #000;
  24. }
  25. .header {
  26.   width: 700px;
  27.   border-bottom: 1px solid #000;
  28. }
  29. .header ul {
  30.   list-style: none
  31. }
  32. .header ul li {
  33.   width: 200px;
  34.   border-left: 1px solid #000;
  35.   float: left;
  36.   font-weight: bold;
  37.   padding-left: 2px;
  38. }
  39.  
  40. .data {
  41.   width: 200px;
  42.   float: left;
  43.   padding-left: 2px;
  44. }
  45.  
  46. .rowodd,.roweven {
  47.   position: relative;
  48.   width: 700px;
  49.   border-top: 1px solid #000;
  50.   background-color: #FFFF00;
  51. }
  52. .roweven {
  53.   background-color: #9ACD32;
  54. }
  55.  
  56.  
  57. .clearfix {
  58.   display: inline-block;
  59. }
  60.  
  61. </script>
  62. </head>
  63. </style>
  64.  
  65. <body>
  66. <div class="container"> 
  67.   <div class="header ">
  68.   <ul>
  69.   <li>Name</li>
  70.   <li>Marks</li>
  71.   <li>University</li>
  72.  
  73.   </ul>
  74. </div>
  75.   <div class="rowodd clearfix">
  76.     <div class="data"><p>ABCD</p></div>
  77.     <div class="data"><p>80</p></div>
  78.     <div class="data" onmouseOver="mouseOver();return true"  <p> Jawanharlal Nehru Technological University</p></div>
  79.  
  80.  
  81.  
  82.   <div class="roweven clearfix">
  83.     <div class="data"><p>PQRS</p></div>
  84.     <div class="data"><p>85</p></div>
  85.     <div class="data"><p>Osmania University </p></div>
  86.  
  87.   </div>
  88.   <div class="rowodd clearfix"><div class="data"><p>WXYZ</p></div>
  89.     <div class="data"><p>90</p></div>
  90.     <div class="data"><p>Andhra University</p></div>    
  91.  
  92.   </div>
  93.    <div class="roweven clearfix">
  94.     <div class="data"><p>PQRS</p></div>
  95.     <div class="data"><p>95</p></div>
  96.     <div class="data"><p>Sri Venkateshwara  University </p></div>
  97.  
  98.   </div>
  99. </div>
  100. </body>
  101. </html>
Aug 20 '09 #1
2 2268
RamananKalirajan
608 512MB
Hi Chotu99,
Your title says "Expanding the Row" - but in the code you have used I was not able to see any table element. On seeing your explanation i came to understand that onmouseover an element you want to display some description text. Inorder to do that use "title" attribute in the html element.

ex:
Expand|Select|Wrap|Line Numbers
  1. <div class="myDiv" title="This is the description for the user">
  2.     <!-- Your HTML Codes -->
  3. </div>
Hope this would help you. Please post back if u have any doubts.

Thanks and Regards
Ramanan Kalirajan
Aug 27 '09 #2
Dormilich
8,658 Expert Mod 8TB
@chotu99
you could even use CSS’ :hover pseudo-class


NOTE:
@chotu99
if you don’t make use of XHTML’s XML features, you can as well use HTML
Aug 27 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Adam Endicott | last post by:
I'm having some trouble using an HtmlListBox with a GridBagSizer. I'm not sure how best to explain what's happening, but it seems that every time my frame gets resized, the HtmlListBox grows...
1
by: James Hurrell | last post by:
Hi, I'm using the following javascript function to expand and collapse portions of text in a web page (targeted at IE5.5 and above): function doExpand(paraNum,arrowNum) { if...
8
by: 2centbob | last post by:
Has anyone had an issue with SQL Server not being able to expand against a RAID 5 file system? My current configuration is that the server is started and stopped using the local system account. I...
1
by: Randy Starkey | last post by:
Hi, Is there a way to expand and collapse all if I have multiple implementations of this script on a single page? The script works well individually. Thanks! --Randy Starkey ---
1
by: Steven | last post by:
Hello, I have a problem in using TreeView. I want to know how the TreeView can automatically Expand a path I have accessed before? I have tried to use "path.Expand()", but it seems no good...
4
by: Karim El Jed | last post by:
Hi, I'm trying to expand a special Node of my TreeView from Codebehind. I have a TreeView on a page for navigating to another site. On the other tsite here is the same TreeView more precisely a...
0
by: Shadow Lynx | last post by:
When using ASP.NET 2.0's built-in TreeView on a page with <BASE target = "AnythingBut_Self"></BASE> in the HEAD, the expand/collapse buttons fail to function. The reason for this is that the...
7
by: Benzi Eilon | last post by:
I am executing an Expand command in order to expand a CAB file. This is done by calling CreateProcess with the Expand command and then WaitForSingleObject and checking the process exit code. My C++...
11
by: Nospam | last post by:
I don't know what it is I am doing wrong, I am trying to get the menus to either expand or contract based on their previous states, i.e if already expanded if clicked again contract, and if...
7
by: dorandoran | last post by:
I used this article (http://www.codeproject.com/KB/webforms/EditNestedGridView.aspx) to accomplish expand/collaspe grid. I also added a search and it works. but i need to be now automatically expand...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.