SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Accordion help

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2007
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Accordion help

    Im looking to have a flash menu to the left of the page, and an accordion setup to the right, so when a user clicks the flash links, the accordian triggers to whatever link has been clicked.

    I presume this will mean that each accordion link will have to be triggered by an actual link such as '#linkhere' ?

    A few accordian tutorials i have gone through are triggered by just clicked the header class - so im unsure what to do.

    Is this even possible to do? Am i making sense? Please let me know if i am not

    Any help or links to a suitable script would be much apprechiated!

  2. #2
    SitePoint Evangelist vikrantkorde's Avatar
    Join Date
    Jun 2004
    Location
    Mumbai, India
    Posts
    541
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also try giving the target for the link to be loaded.
    Vikrant Korde
    S Y S T I M E, Mhape,
    Mumbai, Maharashtra, India.

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,705
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    Using fragment identifiers may not be such a good solution as the page will have to load every time someone clicks on the menu.

    You can run javascript functions from inside of flash with:
    getURL("javascript:displayPost(" + postId + "," + feedId +")");

    See http://www.klynch.com/archives/000079.html for more

    So you could theoretically use something like
    getURL("javascript:document.getElementById('accordion2').onclick);
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •