473,407 Members | 2,598 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,407 software developers and data experts.

Mouse Over CSS

Hello friends i need some help from you

I have a table in which there are several rows. I wan to describe about each row when mouse moves over that particular row . Here is my table .

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>css table</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">

function mouseOver()
{
status="hi"
}


* {
margin: 0;
padding: 0
}

.container {
background-color:#FFA500;
width: 700px;
border: 1px solid #000;
}
.header {
width: 700px;
border-bottom: 1px solid #000;
}
.header ul {
list-style: none
}
.header ul li {
width: 200px;
border-left: 1px solid #000;
float: left;
font-weight: bold;
padding-left: 2px;
}

.data {
width: 200px;
float: left;
padding-left: 2px;
}

.rowodd,.roweven {
position: relative;
width: 700px;
border-top: 1px solid #000;
background-color: #FFFF00;
}
.roweven {
background-color: #9ACD32;
}


.clearfix {
display: inline-block;
}

</script>
</head>
</style>

<body>
<div class="container">
<div class="header ">
<ul>
<li>Name</li>
<li>Marks</li>
<li>University</li>

</ul>
</div>
<div class="rowodd clearfix">
<div class="data"><p>ABCD</p></div>
<div class="data"><p>80</p></div>
<div class="data" ><p> Jawanharlal Nehru Technological University</p></div>



<div class="roweven clearfix">
<div class="data"><p>PQRS</p></div>
<div class="data"><p>85</p></div>
<div class="data"><p>Osmania University </p></div>

</div>
<div class="rowodd clearfix"><div class="data"><p>WXYZ</p></div>
<div class="data"><p>90</p></div>
<div class="data"><p>Andhra University</p></div>

</div>
<div class="roweven clearfix">
<div class="data"><p>PQRS</p></div>
<div class="data"><p>95</p></div>
<div class="data"><p>Sri Venkateshwara University </p></div>

</div>
</div>
</body>
</html>


Can anyone please explain me how to do it with mouseover event handler
Aug 21 '09 #1
1 2038
drhowarddrfine
7,435 Expert 4TB
That's a javascript question and should be asked on the javascript board.
Aug 21 '09 #2

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

Similar topics

5
by: John Champaign | last post by:
Hi all, I'm working on an educational applet for a child with special needs. He's got a bit of a trick to make my life more difficult... To interact with the applet he needs to click on...
3
by: Csaba2000 | last post by:
I have set onmousedown to change the cursor, but this setting is ignored (IE 5.5; NN 6.1 on Win 2K Pro) until the mouse is either moved or the mouse button is released. On Opera 7.01, the setting...
9
by: punkin | last post by:
I am trying to catch mouse position on the entire screen by dynamically generating mouse click event at every 100 ms. My code only works for IEs but not any Netscape or Gecko-based browsers. The...
5
by: gsb | last post by:
I track the mouse location like this code: function mousePos(e) { var p = new Object(); if(e) { p.x = e.pageX; p.y = e.pageY; } else { p.x = event.x; p.y = event.y; } ... (show) }...
3
by: red | last post by:
mouse events when the mouse is on a "child control" hi everyone; my problem: I have a userControl in this usercontrol, I have a child control (a button) when the mouse moves over the...
3
by: mitsura | last post by:
Hi, I have included a small listing. The test program opens a panel and show a bitmap. What I want is to when the mouse is over the bitmap panel, I want to trap the left mouse click. The...
1
by: Salad | last post by:
I bought a MS Standard Wireless Optical Mouse, ver 3.0 today and I have a question about it. The question is...do you leave the batteries in until they die? Does the red light stay on until the...
3
by: Emjay | last post by:
Newbie needs to know how to set the mouse position.
2
by: markszlazak | last post by:
In the following script, a control displays (black box) in each table cell once you mouse over the cell. Mouse down on the control to change the mode of the table. Drag the mouse over cells in the...
4
by: mike | last post by:
I have the opportunity to rescue a project that uses a mouse to sense the relative position of a machine. The hardware is built...just needs to be programmed. Stop snickering!!! I didn't do it...I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.