SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Dec 2004
    Location
    england
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    on click roll over?

    im not sure if thats techincally the correct thread title....i need to make a page which displays a list of questions...and when the user clicks on the question it displays the answer below it? how is this achieved without making two pages (ie one for the question and one for the answer), or by using js? is there a way to make it a bit more pretty/slick too?

    if it cant be done in css does anyone have an tutorials on how to make it as user friendly in js as possible?

    thanks in advance

  2. #2
    SitePoint Wizard bronze trophy Tailslide's Avatar
    Join Date
    Feb 2006
    Location
    Bedford, UK
    Posts
    1,687
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've used this technique: http://www.tjkdesign.com/articles/toggle_elements.asp

    It uses JS but as a progressive enhancement - so with JS off you get the list displayed.
    Little Blue Plane Web Design
    Blood, Sweat & Rust - A Land Rover restoration project

  3. #3
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The method shown here uses only css.

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2007
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Centauri View Post
    The method shown here uses only css.
    Oh wow.. I didn't know Stu had another site?

    Thanks so much for posting this link!

  5. #5
    SitePoint Addict
    Join Date
    Dec 2004
    Location
    england
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oooo thanks guys


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
  •