Results 1 to 2 of 2

Thread: Help Implementing this script

  1. #1
    Join Date
    Jul 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Help Implementing this script

    1) Script Title: Adding arbitrary links on page that expand/ collapse the contents

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...t.htm?mypets=0

    3) Describe problem: Unclear how to install script.



    I want to use this on my web page. I can't find a place where I can copy paste the code to edit it to my own needs. I tried to implement it on my page but I think I'm missing a .js file which I don't know how to get. I'm good with HTML and CSS but not so much with java. I would appreciate any help!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There isn't much to implement actually beyond just having the script installed on your page and working. If it is, adding arbitrary links to expand/contract contents merely involves creating a link like:

    Code:
    <a href="#" onClick="ddaccordion.expandone('mypets', 0); return false">Expand 1st header</a>
    Where "mypets' is the shared CSS class name of the header group you wish to expand, and 0 means expanding the first header (1=2nd header etc).
    DD Admin

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
  •