SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,430
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is this called please ?

    When you see something on a page, where it says something like, "click here for . . . . . . . ." you click it, and a section then appears on the same page, usually, just under the bit that you just clicked, and there's usually another clickable link there to make that section disappear again - anyone know what the name of the code is for that please ? For the extra icing on the cake, anyone know the actual code as well please ?

    Any help appreciated.

    Dez.

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I forget what it's called, but it's a relatively simple piece of JavaScript.

    (Also moved to the JavaScript board.)

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    That sounds like an accordion effect.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  4. #4
    John 8:24 JREAM's Avatar
    Join Date
    Sep 2007
    Location
    Florida
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  5. #5
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,430
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Many thanks, maybe it's called the accordion then.

    Anyone know if there's a way to do the same thing, but without javascript ?

  6. #6
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Due to the way that Opera, Safari and other browsers (that are not IE and Firefox, specifically) handle :focus, it's not possible using CSS alone.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •