| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
|
|
#2 (permalink) |
|
Semantics, yay.
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,128
|
Just a bit of JavsScript really - you put all the stuff you want hidden in a div, with an ID, and hide it with CSS. Then, you set an event handler on the tab that is to be clicked to show the originally hidden div. Another event handler will hide the div if the tab is clicked a second time. |
|
|
|
#4 (permalink) |
|
say werd.
Join Date: Oct 2004
Location: Japan
Posts: 1,274
|
This could be what you're after moo.fx - size does matter |
|
|
|
#5 (permalink) | |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
Quote:
One easy way to do this is through object detection. If the browser passes the tests, give the <body> a class name that indicates that JavaScript is available. A bit safer that way with little extra effort. Code:
Then you can use CSS to set your default: Code:
|
|
|
|
|
#6 (permalink) | |
|
Semantics, yay.
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,128
|
Quote:
|
|
|
|
|
#8 (permalink) | |
|
Registered User
|
Quote:
mhh so i tried using that, however i cannot get it to work. Can you tell me what i am doing wrong ? This is just a mock try to see how it looks : webdevelopmentcorner.com/wdc |
|
|
![]() |