Welcome to IWETHEY!
Post #6,113
8/21/01 3:09:34 PM
|

Take 2
The following should work under IE4.x and later. May have problem on other browsers because (a). TABLE elements being nested within SPAN elements are not officially supported by the standards; (b). I don't think the ONSCROLL event is standard. For the most part, I just made everything 75 units wide, with a height of 150. Unfortunately, the scrollbar itself occupies space, so I had to compensate by 15 pixels in some places to get it to register correctly. +++++++++++++++++++++++++++++++++++++++++++++++++++++++ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1' /> <title>test</title> <script language='JavaScript' type='text/javascript'> function myScroll() { document.all.columns.scrollLeft = document.all.data.scrollLeft; document.all.freezedata.scrollTop = document.all.data.scrollTop; return true; } </script> </head> <body> <div> <span id='freezecolumn' style='width:75;'> <table height='40' width='75' border='1'> <tr> <td width='75'>Column A</td> </tr> </table> </span> <span id='columns' style='width:150; overflow:hidden;'> <table height='40' width='225' border='1'> <tr> <td width='75'>Column B</td> <td width='75'>Column C</td> <td width='75'>Column D</td> </tr> </table> </span> </div> <div> <span id='freezedata' style='width:75; height:150; vertical-align:top; overflow:hidden;'> <table width='75' border='1'> <tr> <td width='75'>1</td> </tr> <tr> <td width='75'>4</td> </tr> <tr> <td width='75'>7</td> </tr> <tr> <td width='75'>1</td> </tr> <tr> <td width='75'>4</td> </tr> <tr> <td width='75'>7</td> </tr> <tr> <td width='75'>1</td> </tr> <tr> <td width='75'>4</td> </tr> <tr> <td width='75'>7</td> </tr> </table> </span> <span id='data' style='width:165; height:165; overflow:auto;' onscroll='myScroll();'> <table width='225' border='1'> <tr> <td width='75'>1</td> <td width='75'>2</td> <td width='75'>3</td> </tr> <tr> <td width='75'>4</td> <td width='75'>5</td> <td width='75'>6</td> </tr> <tr> <td width='75'>7</td> <td width='75'>8</td> <td width='75'>9</td> </tr> <tr> <td width='75'>1</td> <td width='75'>2</td> <td width='75'>3</td> </tr> <tr> <td width='75'>4</td> <td width='75'>5</td> <td width='75'>6</td> </tr> <tr> <td width='75'>7</td> <td width='75'>8</td> <td width='75'>9</td> </tr> <tr> <td width='75'>1</td> <td width='75'>2</td> <td width='75'>3</td> </tr> <tr> <td width='75'>4</td> <td width='75'>5</td> <td width='75'>6</td> </tr> <tr> <td width='75'>7</td> <td width='75'>8</td> <td width='75'>9</td> </tr> </table> </span> </div> </body> </html>
|
Post #6,130
8/21/01 4:04:32 PM
|

THANKS AGAIN!
|
Whats the best way to do this?
- (
mmoffitt)
- (13)
- Aug. 20, 2001, 11:06:52 AM EDT
Nevermind.
- (
mmoffitt)
- Aug. 20, 2001, 12:52:17 PM EDT
I've always avoided Active-X
- (
ChrisR)
- (11)
- Aug. 20, 2001, 12:53:14 PM EDT
Just for thoroughness...
- (
ChrisR)
- (10)
- Aug. 20, 2001, 01:22:50 PM EDT
OT: div and span.
- (
static)
- (6)
- Aug. 21, 2001, 03:47:09 AM EDT
The html checking is zIWETHEY
- (
ben_tilly)
- (5)
- Aug. 22, 2001, 06:35:33 PM EDT
Oh can he?
- (
static)
- (4)
- Aug. 23, 2001, 01:14:22 AM EDT
It shouldn't be a problem
- (
ben_tilly)
- (3)
- Aug. 23, 2001, 07:36:03 AM EDT
Have ability, not time right now.
-NT
- (
admin)
- (2)
- Aug. 23, 2001, 02:29:44 PM EDT
It was nice when you didn't have a job...
-NT
- (
ben_tilly)
- Aug. 23, 2001, 04:57:51 PM EDT
That's one reason I haven't been requesting stuff.
-NT
- (
static)
- Aug. 24, 2001, 02:20:17 AM EDT
Thanks. Anyway to "freeze" column A at the same time?
-NT
- (
mmoffitt)
- (2)
- Aug. 21, 2001, 01:10:20 PM EDT
Take 2
- (
ChrisR)
- (1)
- Aug. 21, 2001, 03:09:34 PM EDT
THANKS AGAIN!
-NT
- (
mmoffitt)
- Aug. 21, 2001, 04:04:32 PM EDT
Remember, people in 1900 didn't know what an atom was. They didn't know its structure.
They also didn't know what a radio was, or an airport, or a movie, or a television, or a computer, or a cell phone, or a jet, an antibiotic, a rocket, a satellite, an MRI, ICU, IUD, IBM, IRA, ERA, EEG, EPA, IRS, DOD, PCP, HTML, internet. interferon, instant replay, remote sensing, remote control, speed dialing, gene therapy, gene splicing, genes, spot welding, heat-seeking, bipolar, prozac, leotards, lap dancing, email, tape recorder, CDs, airbags, plastic explosive, plastic, robots, cars, liposuction, transduction, superconduction, dish antennas, step aerobics, smoothies, twelve-step, ultrasound, nylon, rayon, teflon, fiber optics, carpal tunnel, laser surgery, laparoscopy, corneal transplant, kidney transplant, AIDS... None of this would have meant anything to a person in the year 1900. They wouldn't know what you are talking about.
125 ms