Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Highlight table row without table?
Name: jb60606 Date: July 26, 2007 at 08:36:14 Pacific OS: I don't know CPU/Ram: Why are you asking me thi Product: It's web development
Comment:
I know how to use JavaScript to highlight table rows.
In a static table, for example, some data may look like this.
However, I have an AJAX script that outputs rows from a database within <DIV> tags, formatted by CSS classes, to give the appearance of a table instead of an actual table.
Does anyone know if it's possible to apply some kind of highlight script to <DIV> tags?
Name: jb60606 Date: July 26, 2007 at 08:41:51 Pacific
Reply:
Or any method of highlighting,
...because I really don't know how I would adjust script to output to a table, instead of DIV tags.
0
Response Number 2
Name: Laler Date: July 29, 2007 at 12:27:51 Pacific
Reply:
Actually you just have to put the onmouseover and onmouseout on the desired DIVs (the DIV that act as the row), assuming if that DIV's background color change will really change the output (ie: the DIVs inside that DIV, has no background colors).
As long as class "cells" does not have background colors, changing the background color of class "rows" with onmouseover will change the whole "row's" color.
--- Fubar
0
Response Number 3
Name: jb60606 Date: August 3, 2007 at 11:21:57 Pacific
Summary: Smitty, thanks for the response, but that is not related to my problem. My problem has to do with the way IE and FireFox interpret the rows with ID's when I am changing the display property. The table...
Summary: agreed the idea of tables is to give you more control of the positioning of elements in your page... if you can get things just the way you want without tables, go for it if you cant then use tables i...
Summary: It would help if you supplied some of your code. If you are hard-coding the width of the columns, then there is no reason for them to change based on the size of the window - unless you are setting a ...