Results 1 to 3 of 3
Mar 28, 2002, 16:45 #1
onclick changing css properties...
Hmm, I think this board would be the best as it does hopefully end with an onclick element...
OK, I have a table, where I have ID'd the headers as such:
<col id="col1"><col id="col2"><col id="3">
Ideally, I would have a function like such:
function set_state(item, state)
if (state == 1)
elseif (state == 2)
Thanks for your help,
Last edited by jared; Mar 28, 2002 at 20:10.signature
Mar 30, 2002, 16:43 #2
- Join Date
- Feb 2002
- Gatwick, UK
- 0 Post(s)
- 0 Thread(s)
You should set a global variable before the lexical scope of the function is initiated, so that the variable's lifetime is eternal for the application classid reference bond, rather than the bond to the funciton.
scenario: an image with name of handler_0 and a div to be shown / hidden called divdier_0. Another button collapses any open dividers. Opening a different divider will close the previous divider, if there was one.
If you have any problems understanding what i mean, or want a more targetted or specific example... just ask.
Hope i can help.
Flawless---=| If you're going to buy a pet - get a Shetland Giraffe |=---
Mar 31, 2002, 01:43 #3
thanks for the reply flawless, I'll have to digest it a bit & post back...