473,387 Members | 1,569 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,387 software developers and data experts.

Table border & backgroundcolor

Jen
Hi.

I need to get some "onmouseover behaviour" to work on table rows. I can make
the row background to change colors with:
"<tr bgcolor="#FFFFFF" onMouseOver="this.bgColor='#FFFFE3';
onMouseOut="this.bgColor='#FFFFFF'">"
but I can't figure out how to get the row (or cell or the whole table)
bordercolor to change also at the same time. The table consists of only one
cell & (obviously) one row.

Any help would be greatly appreciated. Sorry for my bad english, Jen.
Jul 24 '05 #1
3 2534
Jen wrote:

Hi.

I need to get some "onmouseover behaviour" to work on table rows. I can make
the row background to change colors with:
"<tr bgcolor="#FFFFFF" onMouseOver="this.bgColor='#FFFFE3';
onMouseOut="this.bgColor='#FFFFFF'">"
but I can't figure out how to get the row (or cell or the whole table)
bordercolor to change also at the same time. The table consists of only one
cell & (obviously) one row.

Any help would be greatly appreciated. Sorry for my bad english, Jen.


At least some of this is non-standard and will not work with some
browsers. Instead, do this with style-sheets.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Jul 24 '05 #2
Jen
Thanks for your answer. However I know (if possible) yet less how to
accomplish this with stylesheets.

"David Ross" <no****@nowhere.not> wrote in message
news:42***************@nowhere.not...
Jen wrote:

Hi.

I need to get some "onmouseover behaviour" to work on table rows. I can
make
the row background to change colors with:
"<tr bgcolor="#FFFFFF" onMouseOver="this.bgColor='#FFFFE3';
onMouseOut="this.bgColor='#FFFFFF'">"
but I can't figure out how to get the row (or cell or the whole table)
bordercolor to change also at the same time. The table consists of only
one
cell & (obviously) one row.

Any help would be greatly appreciated. Sorry for my bad english, Jen.


At least some of this is non-standard and will not work with some
browsers. Instead, do this with style-sheets.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.

Jul 24 '05 #3
Jen wrote:
Thanks for your answer. However I know (if possible) yet less how to
accomplish this with stylesheets.

It is accomplished with the :hover pseudo-class. It works great in
modern browsers. Alas, IE only supports it for <a>.
Since you were trying this with javascript, you could check with the
comp.lang.javascript newsgroup.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 24 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alistair Birch | last post by:
Hi I want rows of a table to appear in alternating background colours. Having looked around the web I can't find any solution apart from waiting for the next version of CSS, so I tried building...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
11
by: VK | last post by:
Hi, I'm playing around with tables (TOM vs. DOM etc.) I cannot figure out an effective highlight mechanics for the cells: 1) No problems with: <td ...onMouseOver/Out background change> some...
0
by: Subba Rao via DotNetMonster.com | last post by:
---------------------------HTML---------------------------------------- <html> <head> <title>:: DHTML Table Demo ::</title> <script langauge="javascript" src="InterchangeRows.js"></script>...
4
by: Amy | last post by:
I need some help. I have this table with alternate row colors. Class gray and class white. I have javascript that do highlight when mouseover row ... and onclick to select row and highlight it...
2
by: querry | last post by:
Hi all, I am trying to change the background color of individual Table Cells using the javascript as follows. function changecolor(e) { var etarg; if (!ee) var ee = window.event; ...
4
iam_clint
by: iam_clint | last post by:
This is one way to make it possible to highlight rows and cols in a table with an intersecting color <script> /* Javascript written by iam_clint */ vertColor="#66ffcc"; horzColor="#b7efff";...
2
by: markszlazak | last post by:
I'm a relatively slow response of table cells changing their background color with mouseover/our in IE6 (Win 2K) but the response is fine (fast) in Firefox. Why? The code is below. Sorry about the...
1
by: perhapscwk | last post by:
Currently, my code is alright if I just need to add a new line the end of the line. First, my code to clone the second and third tr from the table, then add the clone line the end of list. But ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.