471,627 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

<div> show/hide without javascript

I have a css tabbed text menu (Home - Services - About - Contact) and
would like to show appropriate text formatted in <divblocks on the
webpage when clicking on the menu. Is it possible to do without
javascript? I was experimenting for a day, but found no solution. So
far it seems the only way is to use js to hide/show <divblocks with
an ID.

many thanks, Bela

Sep 19 '07 #1
2 7993
be*********@gmail.com wrote:
I have a css tabbed text menu (Home - Services - About - Contact) and
would like to show appropriate text formatted in <divblocks on the
webpage when clicking on the menu. Is it possible to do without
javascript? I was experimenting for a day, but found no solution. So
far it seems the only way is to use js to hide/show <divblocks with
an ID.

many thanks, Bela
With a *click* and not reload the page, then yes it would require
JavaScript.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Sep 19 '07 #2
be*********@gmail.com wrote:
I have a css tabbed text menu (Home - Services - About - Contact) and
would like to show appropriate text formatted in <divblocks on the
webpage when clicking on the menu. Is it possible to do without
javascript? I was experimenting for a day, but found no solution. So
far it seems the only way is to use js to hide/show <divblocks with
an ID.

many thanks, Bela
Well, any browser that supports the :target pseudo-class (Wikipedia
tells me that FF >= 1.5, Safari (unknown version), Konqueror >=3.4,
Opera >= 9.5, and MS's non-IE layout engine >= 0.9 support it) can use
clever targeting to do the job. However, :target is in CSS 3, so
practical usage is impossible...

--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
Sep 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by F. Da Costa | last post: by
19 posts views Thread by benzwt | last post: by
2 posts views Thread by MOHSEN KASHANI | last post: by
3 posts views Thread by Josef K. | last post: by
8 posts views Thread by Primal-oooze | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.