psuedo classes
am 16.06.2007 11:26:21 von Jon Slaughter
I have some formating working where I want the user to click on a block and
have it hide/show another block.
The issue is that if I use active then it only hides it as long as the mouse
button is down and if I use link then it only displays it when its clicked.
I need a way to toggle the state from display to block(or back where it
was).
Is this at all possible with css? (else it makes it completely useless for
what I'm trying to do ;/) (which I guess ends up forcing me to use js ;/)
I got an idea to trick css into doing a toggle but want to make sure that
its the only thing left to try before I spend any time doing it.
Thanks,
Jon
Re: psuedo classes
am 16.06.2007 11:31:46 von Jon Slaughter
"Jon Slaughter" wrote in message
news:11Oci.33402$Um6.1083@newssvr12.news.prodigy.net...
>I have some formating working where I want the user to click on a block and
>have it hide/show another block.
>
> The issue is that if I use active then it only hides it as long as the
> mouse button is down and if I use link then it only displays it when its
> clicked.
>
> I need a way to toggle the state from display to block(or back where it
> was).
>
> Is this at all possible with css? (else it makes it completely useless for
> what I'm trying to do ;/) (which I guess ends up forcing me to use js ;/)
>
>
> I got an idea to trick css into doing a toggle but want to make sure that
> its the only thing left to try before I spend any time doing it.
>
> Thanks,
> Jon
Again, to be clear, everything works when I use active except that the
effect I want only lasts while the user is holding down the button. I want
it do the effect when the user clicks the button and then "undo" it when he
clicks again.
Re: psuedo classes
am 16.06.2007 11:42:18 von Ben C
On 2007-06-16, Jon Slaughter wrote:
>
> "Jon Slaughter" wrote in message
> news:11Oci.33402$Um6.1083@newssvr12.news.prodigy.net...
>>I have some formating working where I want the user to click on a block and
>>have it hide/show another block.
>>
>> The issue is that if I use active then it only hides it as long as the
>> mouse button is down and if I use link then it only displays it when its
>> clicked.
>>
>> I need a way to toggle the state from display to block(or back where it
>> was).
>>
>> Is this at all possible with css? (else it makes it completely useless for
>> what I'm trying to do ;/) (which I guess ends up forcing me to use js ;/)
>>
>>
>> I got an idea to trick css into doing a toggle but want to make sure that
>> its the only thing left to try before I spend any time doing it.
>>
>> Thanks,
>> Jon
>
> Again, to be clear, everything works when I use active except that the
> effect I want only lasts while the user is holding down the button. I want
> it do the effect when the user clicks the button and then "undo" it when he
> clicks again.
You need to use JavaScript.