John Ramsden
|
| Posted: 03/11/2003, 1:36 AM |
|
In PHP, using CCS, I need to code a text marker (link?) such that when
the mouse moves over it a vertical list of links appears, and the user
can click on one. Furthermore, the links and associated text need to be
initialized under program control rather than being hard-coded.
I'm sure this is easy enough to hack in Javascript; but has anyone had experience of setting it up under the rubric of CCS? If so I'd very much
appreciate step-by-step instructions. (A reply like 'just use Javascript'
won't be much use!)
Cheers
John Ramsden (john_ramsden@sagitta-ps.com)
|
|
|
 |
RonB
|
| Posted: 03/12/2003, 5:06 AM |
|
just thinking out loud here...
If you put the grid containing the list of links in a layer, set it to be invisible and use javascript to make it visible on mouse over..... wouldn't that do the trick?
Ron
|
|
|
 |
John Ramsden
|
| Posted: 03/13/2003, 7:30 AM |
|
Thanks for your reply, Ron. I found a site http://www.dynamicdrive.com
containing, among many other goodies, a fairly simple pop-up menu tied
to a link, and I incorporated this in my page.
Your idea of an invisible layer could be useful for another problem
I have though, as my app includes a page with a variable-row table,
i.e. a table that can contain varying numbers of columns depending
on which set of data it contains (the header and detail lines being
read from a MySQL table).
Currently I define the maximum number of columns that will ever be
needed, and the problem is that the blank columns on the right still
have vertical bars separating each header/sorter cell, which looks
ridiculous.
So what I may be able to do is enclose each td spec in a layer and
have the PHP set the layer spec to invisible from the first unused
column onwards. That's the theory anyway!
Cheers
John Ramsden (john_ramsden@sagitta-ps.com)
|
|
|
 |
|