Results 1 to 3 of 3

Thread: Switch Content Script access the switch from two places on same page?

  1. #1
    Join Date
    Jun 2011
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Switch Content Script access the switch from two places on same page?

    1) Script Title: Dynamic Drive Switch Content Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tchcontent.htm

    3) Describe problem:

    I have this script up and running without flaw. Great easy script does exactly what it says.

    I have a question. On my page i have the switch content open to various services offered by the company. On the click of the service, the switch opens and gives a description. These are set up as anchor elements on the page. I have them referenced as anchor points from a css drop down menu to get the person to the exact service they are looking for. Is there a way to have that service open from the click on the title of the switch content, And by clicking on the anchor reference from the drop down css menu? I seem to be able to only have it work from one or the other.

    Essentially. If the click in the css drop down menu i would like it to open the content in the switch at that position.

    thanks,

    nick

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I think you want:

    http://www.dynamicdrive.com/dynamici...daccordion.htm

    where you can open individual elements via javascript and optionally scroll to them when doing so.

    The demo page's first two examples are activated on mouseover but the third is done onclick, so it can do that.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    gotoplanf (04-02-2012)

  4. #3
    Join Date
    Jun 2011
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    This was the better choice of script. Worked out for me.

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
  •