473,782 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table border & backgroundcolor

Jen
Hi.

I need to get some "onmouseove r behaviour" to work on table rows. I can make
the row background to change colors with:
"<tr bgcolor="#FFFFF F" onMouseOver="th is.bgColor='#FF FFE3';
onMouseOut="thi s.bgColor='#FFF FFF'">"
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 2554
Jen wrote:

Hi.

I need to get some "onmouseove r behaviour" to work on table rows. I can make
the row background to change colors with:
"<tr bgcolor="#FFFFF F" onMouseOver="th is.bgColor='#FF FFE3';
onMouseOut="thi s.bgColor='#FFF FFF'">"
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 "onmouseove r behaviour" to work on table rows. I can
make
the row background to change colors with:
"<tr bgcolor="#FFFFF F" onMouseOver="th is.bgColor='#FF FFE3';
onMouseOut="thi s.bgColor='#FFF FFF'">"
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.javas cript 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
4578
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 one myself, but I need some help to finish it. I use the getAttribute('rowIndex') to return the position of a row within the table and apply modulo 2 to return a 0 or 1 indicating an even or odd row number, from which I apply the alternating...
1
4333
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 want to make first text as Table Heading/menu category. For examle in the given menu i want to make a heading as "Comp. Languages" which won't be a link. 2) The position of this menu is absolute to the page. I want to make it absolute to the Table...
11
4382
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 text inside </td> 2) <td ...onMouseOver/Out background change>
0
1834
by: Subba Rao via DotNetMonster.com | last post by:
---------------------------HTML---------------------------------------- <html> <head> <title>:: DHTML Table Demo ::</title> <script langauge="javascript" src="InterchangeRows.js"></script> <style> .mainTable { background-color: black; color: white; font-face: tahoma;
4
19560
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 with another color. Also created a class called "Selected". You can only select a row at a time. My problem is, if a row is preselected, when mouseover the selected row, the selected color is screwed. Until you click on the selected row once, the...
2
2181
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; if (ee.target) etarg = ee.target; else if (ee.srcElement) etarg = ee.srcElement;
4
4755
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"; intersectColor="#aa22f0"; function vertClick(col, tbl) { var color="";
2
3036
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 length. <html> <head> <title>Rapid Blocking Interface</title> <style> .calendar {
1
1824
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 how can I write another "append" so I can add line in between the line? i try insertBefore, but not works. Please help. thanks. My html code <table border=0 cellpadding=5 cellspacing=0 id="quotetable">
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10081
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.