Probably a nooby HTMl/CSS question question, but still....

Soldato
Joined
8 Oct 2005
Posts
4,184
Location
Midlands, UK
Hi,

i have noticed on a few sites that upon clicking a link some text is revealed below e.g. some detail about a link. I'm not sure how this is done tbh. Also is the method (whatever it may be) web standards complaint, as i would like to implement this on a site that must work/look the same in the major browsers.

Thanks for any info.
 
Augmented said:
If I'm thinking of the right thing, then it's usually done using javascript in some manner - an event handler is added to the bit you want 'clickable'. This in turn will toggle the display of the other element with the text in - either dynamically adding and removing it from the DOM, or toggling the CSS display/visibility property.

Yes, it is "web standards complaint".

Couple of examples (google something like "unobtrusive javascript expand collapse"):
http://www.onlinetools.org/tools/domcollapse/index.html
http://www.weberdev.com/get_example-4263.html

excellent link, exactly what i had in mind! esreality gave me the idea. E.g. click the "quake 4 attendies" link from this article
 
Back
Top Bottom