Results 1 to 3 of 3

Thread: making two things happen from one link

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

    Smile making two things happen from one link

    1) Script Title: accordion content script

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

    3) Describe problem:



    I have create a link at the top of my page, to open one of the layers in my accordian script which site much lower down on the page... and it works great...


    But, is there anyway I can have that layer expand, but then for the page to autoscroll down to that bit…. A bit like having a <a name tag> down there, and we link to go to it…


    I have basic html knowledge and can’t seem to get it to work.

    Any tips would be greatly appreciated…


    This is my code on the link at the moment….

    <a href="#" onClick="ddaccordion.expandone('technology', 0); return false;"> DOWNLOAD / VIEW GALLERY ▼ ▼ ▼ </a>





    Thanks,
    jx

  2. #2
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    458
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    something like this one?

    accordion + anchor
    _____________________

    David Demetrius // davejob
    _____________________

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

    Default

    hi, thnaks for your reply!

    its close but not quite what im after.




    i have a separate link at the top of my page.

    it links to my accordion script that sits way way down my html page.


    I want the link at the top of my page to do two things.... 1) open one of the layers in the accordain script and 2) scroll my html page right down to it so it's in view.


    any help would this would be super appreciated. been wracking my brains for ages on it, finding it super tricky.


    thanks.

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
  •