View Single Post
Old 02-26-2012, 12:11 AM   PM User | #7
Lerura
Regular Coder

 
Lerura's Avatar
 
Join Date: Aug 2005
Location: Denmark
Posts: 869
Thanks: 0
Thanked 112 Times in 111 Posts
Lerura will become famous soon enough
Quote:
Originally Posted by sunfighter View Post
I did say "You need to work a little on this". because I wasn't gonna. Since it depends on hover and not onclick, my mind tells me it can be done with css and html and if I was doing it, I'd give it a shot.
Of course it can be done.
But to use the demo way, OP have to use a different document structure than originally planned.

Quote:
Originally Posted by footballer27 View Post
their both right. Although realistically, the only good way to do this is with javascript
You are oh so wrong.

If you can avoid using javascript, as you can do here, it is best to do it.
The CSS way will work even if the user have javascript disabled, (which many users have).

If there was anything in the document that required javascript, then you can just as well use javascript for this purpose.
But there isn't, and then there is no reason to make javascript:enabled a requirement
Lerura is offline   Reply With Quote